CN106293983A - A kind of detect the method that server is the most properly functioning - Google Patents
A kind of detect the method that server is the most properly functioning Download PDFInfo
- Publication number
- CN106293983A CN106293983A CN201610650128.1A CN201610650128A CN106293983A CN 106293983 A CN106293983 A CN 106293983A CN 201610650128 A CN201610650128 A CN 201610650128A CN 106293983 A CN106293983 A CN 106293983A
- Authority
- CN
- China
- Prior art keywords
- server
- properly functioning
- result set
- lddsmmainapp
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Abstract
The present invention relates to a kind of detect the method that server is the most properly functioning, described method provides a judge module, a WinHTTP module and the service routine lddsmMainApp of a server, judge module is embedded in Windows service, said method comprising the steps of: judge module calls WinHTTP module every a Preset Time, the service routine lddsmMainApp of WinHTTP module accesses server, and obtain return result set from the service routine lddsmMainApp of server;Judge module judges to return whether result set is empty;Judge module obtains the data acquisition system returned in result set, and whether comprises preset keyword according to the data acquisition system returned in result set and determine that server is the most properly functioning;Restart the service routine lddsmMainApp of server.The a kind of of the present invention detects the method that server is the most properly functioning, solves in program due to known reason or unknown cause cisco unity malfunction, but " feeding Canis familiaris L. " mechanism in program is the most upon execution, the situation that WatchDog Timer cannot play a role.
Description
Technical field
The present invention relates to server field, particularly relate to a kind of detect the method that server is the most properly functioning.
Background technology
In existing WatchDog Timer technology, there is a down counter inside WatchDog Timer, when this counting
The when that device being decremented to 0, will automatically restart system, if having such program, this program is successively decreased at timer counter
Before being 0, its down counter is reset (feeding Canis familiaris L.), then reboot operation will be produced.If machinery equipment goes out
As crashed under existing abnormal conditions, the situations such as CPU performs to make mistakes, program fleet, CPU will be absorbed in improper execution flow process, just
Will not go the operation performing to reset enumerator, when enumerator is decremented to 0, perform reboot operation, server will be restarted, and recovers
Normal execution flow.
But, this technology can only be program is the most clearly collapsed when, it is impossible to perform " the feeding Canis familiaris L. " in watchdog technique
During mechanism (this technology is known technology), competence exertion effect.In program due to known reason (such as: memory overflow) or unknown former
Because of cisco unity malfunction, but " feeding Canis familiaris L. " mechanism in program is the most upon execution, and WatchDog Timer technology just cannot play a role
?.
In view of this, the present inventor's specialized designs is a kind of detects the method that server is the most properly functioning, and this case is thus
Produce.
Summary of the invention
It is an object of the invention to provide and a kind of detect the method that server is the most properly functioning, which solve program by
In known reason or unknown cause cisco unity malfunction, but " feeding Canis familiaris L. " mechanism in program is the most upon execution, WatchDog Timer
Situation about cannot play a role.
To achieve these goals, the technical solution used in the present invention is:
A kind of detecting the method that server is the most properly functioning, described method provides judge module, a WinHTTP
The service routine lddsmMainApp of module and a server, it is judged that module is embedded in Windows service, described method bag
Include following steps:
S01: judge module calls WinHTTP module, the service of WinHTTP module accesses server every a Preset Time
Program lddsmMainApp, and obtain return result set from the service routine lddsmMainApp of server;
S02: judge module judges to return whether result set is empty, if it is not empty for returning result set, then performs step S03,
If it is empty for returning result set, then perform step S04;
S03: judge module obtains the data acquisition system returned in result set, and according to the data acquisition system returned in result set is
The no preset keyword that comprises is to determine that server is the most properly functioning, if comprising preset keyword, then explanation server is normally transported
Going and return execution step S01, if not comprising preset keyword, then explanation server does not has properly functioning and performs step S04;
S04: restart the service routine lddsmMainApp of server.
Preferably, described Windows service keeps 24 hours running without interruption at server end.
Preferably, described Preset Time is 5 minutes.
Preferably, described preset keyword includes j_username and j_password.
Preferably, the service routine lddsmMainApp of described server externally provides URL access function.
The present invention can solve the problem that the problem that WatchDog Timer can solve the problem that, such as system in case of system halt, program fleet etc. causes
The problem that program is not normally functioning, also can solve in program owing to known reason (such as: memory overflow) or unknown cause can not
Normal work, but " feeding Canis familiaris L. " mechanism in program is the most upon execution, the situation that WatchDog Timer cannot play a role.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the present invention, this
Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the inventive method schematic flow sheet.
Detailed description of the invention
In order to make the technical problem to be solved, technical scheme and beneficial effect clearer, clear, below tie
Close drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
As it is shown in figure 1, the present invention provides a kind of detects the method that server is the most properly functioning, described method provides one
Judge module, a WinHTTP module and the service routine lddsmMainApp of a server, it is judged that module is embedded in
In Windows service, said method comprising the steps of:
S01: judge module calls WinHTTP module, the service of WinHTTP module accesses server every a Preset Time
Program lddsmMainApp, and obtain return result set from the service routine lddsmMainApp of server, result set is from being adjusted
Obtain in the middle of the return value of function or the relevant parameter of called function;
S02: judge module judges to return whether result set is empty, if it is not empty for returning result set, then performs step S03,
If it is empty for returning result set, then perform step S04;
S03: judge module obtains the data acquisition system returned in result set, and according to the data acquisition system returned in result set is
The no preset keyword that comprises is to determine that server is the most properly functioning, if comprising preset keyword, then explanation server is normally transported
Going and return execution step S01, if not comprising preset keyword, then explanation server does not has properly functioning and performs step S04;
S04: restart the service routine lddsmMainApp of server.
Concrete, in an embodiment of the present invention, it is provided that a kind of to detect the method that server is the most properly functioning,
Embedded judge module in Windows service, described Windows service keeps 24 hours running without interruption at server end, described
Judge module called WinHTTP and accesses the service routine lddsmMainApp of a server, wherein method of calling every 5 minutes
Have multiple, be specially and directly called by function name, and obtain return from the service routine lddsmMainApp of server
Result set, wherein, result set obtains in the middle of the return value of called function or the relevant parameter of called function, it is judged that module
Obtain the data acquisition system returned in result set, and it is next really whether to comprise some keyword according to the middle data acquisition system returning result set
Determining server the most properly functioning, keyword can have multiple, can be specifically j_username and j_password, if comprising
J_username and j_password keyword then illustrates that server is properly functioning and persistently monitors, if not comprising j_username
Then illustrate that server does not has service routine that is properly functioning and that restart server with j_password keyword, described server
Service routine externally provides URL to access the function of server.The full name of WinHTTP is Microsoft Windows HTTP
Services。
It should be noted that Preset Time can freely define, as long as service routine lddsmMainApp can be pre-at this
If having started in the time.
The present invention is different from watchdog technique, it is generally required to restart whole system in watchdog technique, and the present invention carries
The technology of confession, in the case of need not restart whole system, only need to restart the service in server, and can allow cannot normal work
The system recovery normal flow made;And watchdog technique typically can embed monitored internal system, the skill that the present invention provides
Art does not embed inside institute's monitoring system, but runs with an independent part.
Described above illustrate and describes the preferred embodiments of the present invention, as previously mentioned, it should be understood that the present invention not office
Be limited to form disclosed herein, be not to be taken as the eliminating to other embodiments, and can be used for other combinations various, amendment and
Environment, and can be changed by above-mentioned teaching or the technology of association area or knowledge in invention contemplated scope described herein
Dynamic.And the change that those skilled in the art are carried out and change are without departing from the spirit and scope of the present invention, the most all should be appended by the present invention
In scope of the claims.
Claims (5)
1. one kind is detected the method that server is the most properly functioning, it is characterised in that described method provide judge module, one
Individual WinHTTP module and the service routine lddsmMainApp of a server, it is judged that module is embedded in Windows service,
Said method comprising the steps of:
S01: judge module calls WinHTTP module, the service routine of WinHTTP module accesses server every a Preset Time
LddsmMainApp, and obtain return result set from the service routine lddsmMainApp of server;
S02: judge module judges to return whether result set is empty, if it is not empty for returning result set, then performs step S03, if returning
It is empty for returning result set, then perform step S04;
Whether S03: judge module obtains the data acquisition system returned in result set, and wrap according to the data acquisition system returned in result set
Determining that server is the most properly functioning containing preset keyword, if comprising preset keyword, then explanation server is properly functioning also
Returning and perform step S01, if not comprising preset keyword, then explanation server does not has properly functioning and performs step S04;
S04: restart the service routine lddsmMainApp of server.
The most according to claim 1 a kind of detect the method that server is the most properly functioning, it is characterised in that: described
Windows service keeps 24 hours running without interruption at server end.
The most according to claim 1 a kind of detect the method that server is the most properly functioning, it is characterised in that: described preset
Time is 5 minutes.
The most according to claim 1 a kind of detect the method that server is the most properly functioning, it is characterised in that: described preset
Keyword includes j_username and j_password.
The most according to claim 1 a kind of detect the method that server is the most properly functioning, it is characterised in that: described service
The service routine lddsmMainApp of device externally provides URL access function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610650128.1A CN106293983B (en) | 2016-08-09 | 2016-08-09 | A kind of method of detection service device whether normal operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610650128.1A CN106293983B (en) | 2016-08-09 | 2016-08-09 | A kind of method of detection service device whether normal operation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106293983A true CN106293983A (en) | 2017-01-04 |
CN106293983B CN106293983B (en) | 2019-06-07 |
Family
ID=57667606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610650128.1A Active CN106293983B (en) | 2016-08-09 | 2016-08-09 | A kind of method of detection service device whether normal operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106293983B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11306047A (en) * | 1998-04-24 | 1999-11-05 | Matsushita Electric Ind Co Ltd | Runaway detecting device |
CN103024526A (en) * | 2012-12-31 | 2013-04-03 | 上海全景数字技术有限公司 | Multi-screen interaction system based on digital television set-top box |
CN104809045A (en) * | 2015-04-27 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Operation method and device of monitoring script |
-
2016
- 2016-08-09 CN CN201610650128.1A patent/CN106293983B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11306047A (en) * | 1998-04-24 | 1999-11-05 | Matsushita Electric Ind Co Ltd | Runaway detecting device |
CN103024526A (en) * | 2012-12-31 | 2013-04-03 | 上海全景数字技术有限公司 | Multi-screen interaction system based on digital television set-top box |
CN104809045A (en) * | 2015-04-27 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Operation method and device of monitoring script |
Also Published As
Publication number | Publication date |
---|---|
CN106293983B (en) | 2019-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8601493B2 (en) | Application controlling apparatus and storage medium which stores software for the apparatus | |
US8977905B2 (en) | Method and system for detecting abnormality of network processor | |
US8639991B2 (en) | Optimizing performance of an application | |
CN106533805B (en) | Micro-service request processing method, micro-service controller and micro-service architecture | |
CN103412812B (en) | Browser execution state monitoring method and device | |
WO2015169199A1 (en) | Anomaly recovery method for virtual machine in distributed environment | |
CN106790463B (en) | Access method and system for Web configuration file reloading process | |
CN106656604A (en) | Microservice request management method, microservice controller and high-concurrence microservice architecture | |
CN103914302A (en) | Webpage loading progress monitoring method and webpage loading progress monitoring device | |
CN110825490A (en) | Kubernetes container-based application health check method and system | |
CN102768630A (en) | Method and device for detecting webpage running environment and storage medium | |
CN106775860B (en) | Method and system for reloading Web configuration file | |
CN112000518A (en) | Application program fault risk processing method, device and system, terminal and equipment | |
CN106874126A (en) | Host process method for detecting abnormality in a kind of software development | |
JPH10214208A (en) | System for monitoring abnormality of software | |
CN101216792A (en) | Real-time operating system tasks management process, device and real-time operating system | |
JP6568033B2 (en) | Method and system for anomaly detection | |
CN106293983A (en) | A kind of detect the method that server is the most properly functioning | |
CN104158843A (en) | Storage unit invalidation detecting method and device for distributed file storage system | |
CN106411643A (en) | BMC (Baseboard Management Controller) detection method and device | |
CN113688021B (en) | Load balancing service processing method, device, equipment and readable storage medium | |
US7607051B2 (en) | Device and method for program correction by kernel-level hardware monitoring and correlating hardware trouble to a user program correction | |
CN107133130B (en) | Computer operation monitoring method and device | |
CN107179911B (en) | Method and equipment for restarting management engine | |
CN115167896A (en) | Method and device for updating software version, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |