CN101771563B - Method for monitoring network service program - Google Patents

Method for monitoring network service program Download PDF

Info

Publication number
CN101771563B
CN101771563B CN2008102473324A CN200810247332A CN101771563B CN 101771563 B CN101771563 B CN 101771563B CN 2008102473324 A CN2008102473324 A CN 2008102473324A CN 200810247332 A CN200810247332 A CN 200810247332A CN 101771563 B CN101771563 B CN 101771563B
Authority
CN
China
Prior art keywords
instance
program
module
monitoring
primary control
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.)
Expired - Fee Related
Application number
CN2008102473324A
Other languages
Chinese (zh)
Other versions
CN101771563A (en
Inventor
曾培祥
董辉
沈闻天
闫枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Founder Holdings Development Co ltd
Founder International Beijing Co Ltd
Original Assignee
Founder International Beijing Co Ltd
Peking University Founder Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Founder International Beijing Co Ltd, Peking University Founder Group Co Ltd filed Critical Founder International Beijing Co Ltd
Priority to CN2008102473324A priority Critical patent/CN101771563B/en
Publication of CN101771563A publication Critical patent/CN101771563A/en
Application granted granted Critical
Publication of CN101771563B publication Critical patent/CN101771563B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for monitoring a network service program. The method comprises the following steps: starting the network service program, running two examples of the network service program, setting one of the examples as a monitoring program and setting the other example as a main control program; when the main control program monitors running abnormity of the monitoring program, closing and restarting the monitoring program which runs abnormally; and when the monitoring program monitors the running abnormity of the main control program, closing the main control program which runs abnormally, setting the monitoring program as the main control program and restarting the main control program which runs abnormally as the monitoring program. After the method is adopted, a hot standby network service program in which the main control program and the monitoring program monitor each other is formed, so the failure processing efficiency of the network service program and the safety and stability of the network service program can be effectively enhanced.

Description

The method for supervising of network server
Technical field
The present invention relates to information processing and programming technique, particularly relate to the method for supervising and the equipment of network server.
Background technology
Along with information technology, development of internet technology, the application of network services program also more and more widely.Especially to distributed large-scale information processing system, network server plays a part crucial especially.
Network server is that the client-side program of distributed setting carries out focusing on of information, and concentrating for the information of information system provides possible condition, for information security provides basic guarantee, for the maintenance of system provides great facility.But this just information focuses on, and makes network server become the key link of information management system.In case the network server fault possibly cause whole information system paralysis.This has just proposed very high requirement to network server, requires the network server perfect in shape and function, and is reliable.For the information management system of a complicacy, guarantee that network server operation troubles do not occur during trial run or perfect in shape and function, almost be impossible.Even network server has no problem, operate in the network server under the operating system, receive the attack of computer virus, it also is contingent causing the network server operation exception.
For above-mentioned reasons, the monitoring problem to network server in the large-scale information management system is exactly very important.Through the operation conditions of monitoring network service routine, when the network server operation exception, close and restart network server, make fault be reduced to minimum to the influence of whole information management system.
In the prior art, adopt third party software that network server is monitored,, and write the interactive information of monitoring, realize monitoring network server through the monitoring program of operational network service routine.When monitoring the network server operation exception, manual work is closed and is restarted network server.
There is following defective in prior art to the method for supervising of network server:
When network server breaks down, need manual work to handle, its speed and efficient are lower, and is also very big to the influence of network system operation.
Summary of the invention
The present invention provides a kind of method for supervising and equipment of network server, is used to improve the troubleshooting efficient to network server.
The present invention provides a kind of method for supervising of network server, and this method comprises:
Start network server, move two instances of this network server, one of them instance is set to monitoring program, and another instance is set to primary control program;
When primary control program monitors the monitoring program operation exception, close and restart the monitoring program of operation exception;
When monitoring program monitors the primary control program operation exception, close the primary control program of operation exception, self is set to primary control program, and the primary control program that restarts operation exception is as monitoring program.
The present invention provides a kind of watch-dog of network server, and this equipment comprises:
The operation module is used to start network server, moves two instances of this network server, and one of them instance is set to monitoring module, and another instance is set to main control module;
The monitoring module of operation exception is closed and restarted to main control module when being used to monitor the monitoring module operation exception;
Monitoring module when being used to monitor the main control module operation exception, is closed the main control module of operation exception, and self is set to main control module, and the main control module that restarts operation exception is as monitoring module.
Among the present invention, through two instances of operational network service routine, the heat that forms primary control program, monitoring program mutual monitoring is equipped with network server.Do not need third-party monitoring software; The function that only provides by network server itself; Mutual supervision, the network service function of two running examples of realization are transferred to non-malfunction routine, close and restart malfunction routine by malfunction routine automatically, from effectively raising the efficient to the troubleshooting of network server.
Description of drawings
The method flow sketch map that Fig. 1 provides for the embodiment of the invention;
Fig. 2 is the concrete realization flow figure of step 10 among Fig. 1;
Fig. 3 is the concrete realization flow figure of step 11 among Fig. 1;
Fig. 4 is the concrete realization flow figure of step 12 among Fig. 1;
The device structure sketch map that Fig. 5 provides for the embodiment of the invention.
Embodiment
In order to improve the troubleshooting efficient to network server, the present invention provides a kind of method for supervising of network server, in this method; Setting has the running environment of two instances of specifying corresponding relation, starts network server, moves the instance of two network servers automatically; One of them instance is as monitoring program; The monitoring program of operation exception is closed and restarted to another instance when primary control program monitors the monitoring program operation exception, as primary control program; When monitoring program monitors the primary control program operation exception, close the primary control program of operation exception, self is set to primary control program, and the primary control program that restarts operation exception is as monitoring program.
Network server in the embodiment of the invention has many message interfaces, and client-side program obtains the information service that network server provides through message interface.Network server will be realized such service, and the ServerSocket with multithreading disposal ability is installed, and the PORT COM of ServerSocket is set, and announces oneself IP address and PORT COM to client.Client also must just possibly obtain the information service that network server provides after having connected this IP address and PORT COM.In addition, network server also will possess in a plurality of threads the access ability to database, realizes the information service to client through the information exchange with database.These are necessary configuration of network server and function.Simultaneously, network server also will be installed the ClientSocket control except that the ServerSocket control is installed.This is when moving two instance programs, sets up the usefulness of the channel of mutual communication.
Referring to Fig. 1, the method for supervising of the network server that the embodiment of the invention provides specifically may further comprise the steps:
Step 10: start network server, move two instances of this network server, one of them instance is set to monitoring program, and another instance is set to primary control program;
Step 11: when primary control program monitors the monitoring program operation exception, close and restart the monitoring program of operation exception;
Step 12: when monitoring program monitors the primary control program operation exception, close the primary control program of operation exception, self is set to primary control program, and the primary control program that restarts operation exception is as monitoring program.
In the step 10, before starting network server, has the running environment of two instances of specifying corresponding relation for this network server setting; For example, the filename of network server is fznet.exe.The operation catalogue of first instance is " c: network service A ", and the operation catalogue of second instance be " c: network serve B ".Such configuration guarantees the running environment of another instance that the instance of any operation all can be confirmed to match.And, just do not have the network server of mutual monitoring function to move as one when the example detection of operation during less than the running environment of this another instance with definite corresponding relation.
As shown in Figure 2, the concrete realization of step 10 comprises the steps:
Step 20: behind the instance in the running environment of two instances of startup network server; This instance obtains the running environment sign of self instance; According to the corresponding relation of the running environment sign of two instances that are provided with in advance, confirm the running environment sign of adjacent instance; The adjacent each other instance of two instances of network server.
After an instance in the running environment of two instances starts; This instance is according to the running environment sign of self; Automatically detect the running environment that is provided with in advance with another instance of specifying corresponding relation; If do not detect, then this instance is as a network server that does not have mutual monitoring function, and start-up course finishes; If detect, just obtain the running environment sign (like Bcxhj) of self instance and the running environment of adjacent instance and identify (like Xlcxhj).
Step 21: self instance is set to monitoring program, sets up the communication channel with primary control program, through this communication channel to primary control program send state information query requests;
The concrete grammar that self instance is set to monitoring program is: the running status sign of self instance is set to the running status sign of monitoring program; For self instance is provided with the main window title or the system banner of corresponding monitoring program, for self instance is created the resource that needs with the primary control program information interaction.
Step 22: judge whether self instance receives the state information of the normal operation of primary control program, if then start-up course finishes, otherwise, change step 23;
Step 23: whether have primary control program operation, if having, then close this primary control program if detecting;
Step 24: self instance is set to primary control program;
Step 25: the running environment sign according to the adjacent instance of self instance starts adjacent instance.
As shown in Figure 3, the concrete realization of step 11 may further comprise the steps:
Step 30: primary control program is set up the communication channel with monitoring program, through this communication channel to monitoring program send state information query requests;
Primary control program foundation with the concrete grammar of the communication channel of monitoring program is: the ServerSocket assembly of primary control program takies the PORT COM into client service; The PORT COM of the ServerSocket assembly of monitoring program is set to have the PORT COM of specifying corresponding relation with the PORT COM of the ServerSocket assembly of primary control program, the ClientSocket assembly of primary control program connect monitoring program the ServerSocket assembly PORT COM and carry out the function with the monitoring program information interaction.
Through the send state information query requests, primary control program can obtain the state information that this monitoring program is moved normal or operation exception from monitoring program.
Step 31: when not receiving the state information of the normal operation of monitoring program, whether have monitoring program operation, if having, to step 32 if detecting; Otherwise, to step 33;
Step 32: close this monitoring program;
Step 33: utilize the running environment sign of adjacent instance to start the adjacent instance of operation.After adjacent instance starts, repeat above-mentioned steps 20-step 25.
As shown in Figure 4, the concrete realization of step 12 may further comprise the steps:
Step 40: monitoring program is set up the communication channel with primary control program, through this communication channel to primary control program send state information query requests;
Monitoring program foundation with the concrete grammar of the communication channel of primary control program is: the ServerSocket assembly of primary control program takies the PORT COM into client service; The PORT COM of the ServerSocket assembly of monitoring program is set to have the PORT COM of specifying corresponding relation with the PORT COM of the ServerSocket assembly of primary control program, the ClientSocket assembly of monitoring program connect primary control program the ServerSocket assembly PORT COM and carry out the function with the primary control program information interaction.
Through the send state information query requests, monitoring program can obtain the state information of running status, fault message or the operation exception of this primary control program network service processes from primary control program.And can obtain state informations such as the number of threads that connects in real time, real-time database number of connection, the fault of classifying according to the requirement of various network service routine.
Step 41: when not receiving the state information of the normal operation of primary control program, whether have primary control program operation, if having, then arrive step 42 if detecting; Otherwise, to step 43;
Step 42: close this primary control program;
Step 43: monitoring program self instance is set to primary control program;
The concrete grammar that self instance is set to primary control program is: the running status sign of self instance is set to the running status sign of primary control program; The main window title or the system banner of corresponding primary control program are set for self instance; For self instance create with the monitoring program information interaction with carry out the resource that network service function needs, start network service function to client.
Step 44: utilize the running environment sign of adjacent instance to start the adjacent instance of operation.After adjacent instance starts, repeat above-mentioned steps 20-step 25, to keep the capable state of hot received shipment of primary control program and monitoring program mutual monitoring.
Whether in step 24 and the step 41, detecting has the concrete grammar of monitoring program operation to be:
Through whether there being the running status sign corresponding programs of main window title or system banner and monitoring program in application programming interfaces (API) the function detection system, if then judging has monitoring program; Otherwise, judge no monitoring program.
Whether detect in the step 31 has the concrete grammar of primary control program operation to be:
Through whether there being the running status sign corresponding programs of main window title or system banner and primary control program in the api function detection system, if then judging has primary control program; Otherwise, judge no master control program.
In the embodiment of the invention, when working in the capable state of the hot received shipment of primary control program and monitoring program mutual monitoring, any one instance is closed in manual work, all can restart an instance automatically, makes it remain on the capable state of hot received shipment.Program can't stop like this.Can be handling for what guarantee network server, the present embodiment setting is accomplished this heat and is equipped with closing of system by " system withdraws from " button at primary control program interface.Click " system withdraws from " button at primary control program interface, accomplish closing of network server through following controlled step:
At first, stop the running status inquiry of primary control program to monitoring program;
Then, obtain the handle of monitoring program, the api function that utilizes this handle call operation system to provide is closed monitoring program;
At last, close primary control program.
So just closed and be in the capable network server of hot received shipment.
In the embodiment of the invention, the port that is used to client service that the PORT COM of the ServerSocket of primary control program must be set to set in the configuration file is to guarantee the channel of primary control program to client service.Has definite corresponding relation according to the PORT COM of the ServerSocket of configuration file monitoring program and the PORT COM of primary control program ServerSocket.For example, the PORT COM of primary control program ServerSocket is AA, and the PORT COM of monitoring program ServerSocket is AA+1.After the operation of the instance of any running environment, according to the running status sign of self all can be correct the ServerSocket PORT COM that self is set.Also know the ServerSocket PORT COM of adjacent instance simultaneously according to configuration file.
Primary control program and the IP address of the server end that ClientSocket was connected of monitoring program all are made as the IP address of this machine, generally can be made as 127.0.0.1 (this machine IP).Because method of the present invention is that the network server heat of two instances on same machine is equipped with.Be set to the PORT COM of monitoring program ServerSocket according to the PORT COM of the ClientSocket of configuration file primary control program, the PORT COM of the ClientSocket of monitoring program is set to the PORT COM of primary control program ServerSocket.Constitute the communication channel that primary control program and monitoring program are monitored each other thus.
Referring to Fig. 5, the embodiment of the invention also provides a kind of watch-dog of network server, and this equipment comprises:
Operation module 50 is used to start network server, moves two instances of this network server, and one of them instance is set to monitoring module, and another instance is set to main control module;
The monitoring module of operation exception is closed and restarted to main control module 51 when being used to monitor the monitoring module operation exception;
Monitoring module 52 when being used to monitor the main control module operation exception, is closed the main control module of operation exception, and self is set to main control module, and the main control module that restarts operation exception is as monitoring module.
This equipment further comprises:
Environment is provided with module 53, is used to the running environment that said network server setting has two instances of specifying corresponding relation;
Said operation module 50 comprises:
Identification module after the instance that is used for the running environment of said two instances starts, obtains the running environment sign of this instance, according to the corresponding relation of the running environment sign of two instances that are provided with in advance, confirms the running environment sign of adjacent instance;
The status poll module, the instance that is used for starting is set to monitoring module, sets up the communication channel of monitoring module and main control module, through this communication channel to main control module send state information query requests; The method that instance is set to monitoring module is: the running status sign of instance is set to the running status sign of monitoring module; For instance is provided with the main window title or the system banner of relative detecting module, be the resource that instance is created to be needed with the main control module information interaction.
Detection module is used for when said status poll module does not receive the state information of the normal operation of main control module, and whether have main control module operation, if having, then close this main control module if detecting.Whether have the method for main control module operation be: through whether there being the running status sign corresponding programs of main window title or system banner and main control module in the api function detection system, if then judging has main control module if detecting; Otherwise, judge no master control module.
Instance is provided with module, and the instance that is used for starting is set to main control module;
Start module, be used for starting adjacent instance according to the running environment sign of said adjacent instance.
Said main control module 51 comprises:
First passage is set up module, is used to set up the communication channel with monitoring module; Concrete method for building up is: the ServerSocket assembly of main control module is taken the PORT COM into client service; The PORT COM of the ServerSocket assembly of monitoring module is set to have the PORT COM of specifying corresponding relation with the PORT COM of the ServerSocket assembly of main control module, the ClientSocket assembly of main control module connect monitoring module the ServerSocket assembly PORT COM and carry out the function with the monitoring program information interaction.
First request module is used for through said communication channel to monitoring module send state information query requests;
First closing module is used for when said first request module does not receive the state information of the normal operation of monitoring module, and whether have monitoring program operation, if having, then close this monitoring program if detecting.Whether have monitoring module operation comprise: through whether there being the running status sign corresponding programs of main window title or system banner and monitoring module in the api function detection system, if then judging has monitoring module if detecting; Otherwise, judge no monitoring module.
The first adjacent instance starts module, is used to utilize the running environment sign of said adjacent instance to start the adjacent instance of operation.
Said monitoring module 52 comprises:
Second channel is set up module, is used to set up the communication channel with main control module; Concrete method for building up is: the ServerSocket assembly of main control module is taken the PORT COM into client service; The PORT COM of the ServerSocket assembly of monitoring module is set to have the PORT COM of specifying corresponding relation with the PORT COM of the ServerSocket assembly of main control module, the ClientSocket assembly of monitoring module connect main control module the ServerSocket assembly PORT COM and carry out the function with the primary control program information interaction.
Second request module is used for through said communication channel main control module send state information query requests;
Second closing module is used for when said second request module does not receive the state information of the normal operation of primary control program, and whether have main control module operation, if having, then close this main control module if detecting.Whether have the method for main control module operation be: through whether there being the running status sign corresponding programs of main window title or system banner and main control module in the api function detection system, if then judging has main control module if detecting; Otherwise, judge no master control module.
Module is set, is used for this monitoring module is set to main control module; The method that this monitoring module is set to main control module is: the running status sign of instance is set to the running status sign of main control module in this monitoring module; The main window title or the system banner of corresponding main control module are set for this instance; Create and monitoring module information interaction and the resource that the execution network service function needs for this instance, start network service function client.
The second adjacent instance starts module, is used to utilize the running environment sign of said adjacent instance to start the adjacent instance of operation.
This equipment also comprises:
Stopping modular 54 is used for stopping the running status inquiry of an instance of said two instances to adjacent instance; Obtain the handle of said adjacent instance, the api function that the operating system of utilizing this handle to call the said network server of operation provides utilizes this api function to close the program of said adjacent instance; Close the program of a said instance.
To sum up, beneficial effect of the present invention is:
In the scheme that the embodiment of the invention provides, through two instances of operational network service routine, the heat that forms primary control program, monitoring program mutual monitoring is equipped with network server.Do not need third-party monitoring software, the function that is only provided by network server itself realizes that mutual supervision, the network service function of two running examples transferred to non-malfunction routine, closes and restarted controls such as malfunction routine automatically by malfunction routine.
Scheme according to embodiment provides as long as two running environment with definite corresponding relation are set when mounted, during operation, can realize above-mentioned monitoring function.Otherwise, only as general network server operation, and need not do any change, have great flexibility in the use, the monitoring function of realization provides guarantee to the safe operation of network server, has remarkable result.

Claims (15)

1. the method for supervising of a network server is characterized in that, this method comprises:
Start network server, move two instances of this network server, one of them instance is set to monitoring program, and another instance is set to primary control program;
When primary control program monitors the monitoring program operation exception, close and restart the monitoring program of operation exception;
When monitoring program monitors the primary control program operation exception, close the primary control program of operation exception, self is set to primary control program, and the primary control program that restarts operation exception is as monitoring program.
2. the method for claim 1 is characterized in that, before starting network server, this method further comprises: the running environment that has two instances of specifying corresponding relation for said network server setting;
Said startup network server moves two instances of this network server, and one of them instance is set to monitoring program, and another instance is set to primary control program and comprises:
After instance in the running environment of A, two instances started, this instance obtained the running environment sign of self instance, according to the corresponding relation of the running environment sign of two instances that are provided with in advance, confirmed the running environment sign of adjacent instance;
B, self instance are set to monitoring program, set up the communication channel with primary control program, through this communication channel to primary control program send state information query requests;
C, when self instance receives the state information of the normal operation of primary control program, start-up course finishes, otherwise, change step D;
Whether D, detection have the primary control program operation, if having, then close this primary control program;
E, self instance are set to primary control program;
F, start adjacent instance according to the running environment of adjacent instance sign.
3. method as claimed in claim 2 is characterized in that, when said primary control program monitors the monitoring program operation exception, closes and the monitoring program that restarts operation exception comprises:
Primary control program is set up the communication channel with monitoring program, to monitoring program send state information query requests, when not receiving the state information of the normal operation of monitoring program, carries out following steps through this communication channel:
Whether A1, detection have the monitoring program operation, if having, then close this monitoring program;
B1, utilize the running environment sign of adjacent instance to start the adjacent instance of operation.
4. method as claimed in claim 2; It is characterized in that, when said monitoring program monitors the primary control program operation exception, close the primary control program of operation exception; Self is set to primary control program, and the primary control program that restarts operation exception comprises as monitoring program:
Monitoring program is set up the communication channel with primary control program, to primary control program send state information query requests, when not receiving the state information of the normal operation of primary control program, carries out following steps through this communication channel:
Whether A2, detection have the primary control program operation, if having, then close this primary control program;
B2, self instance are set to primary control program;
C2, utilize the running environment sign of adjacent instance to start the adjacent instance of operation.
5. like arbitrary described method among the claim 2-4, it is characterized in that,
Self instance is set to monitoring program and comprises: the running status sign of self instance is set to the running status sign of monitoring program; For self instance is provided with the main window title or the system banner of corresponding monitoring program, for self instance is created the resource that needs with the primary control program information interaction;
Self instance is set to primary control program and comprises: the running status sign of self instance is set to the running status sign of primary control program; The main window title or the system banner of corresponding primary control program are set for self instance; For self instance create with the monitoring program information interaction with carry out the resource that network service function needs, start network service function to client.
6. method as claimed in claim 3 is characterized in that, whether said detection has the monitoring program operation to comprise:
Through whether there being the running status sign corresponding programs of main window title or system banner and monitoring program in the application programming interfaces api function detection system, if then judging has monitoring program; Otherwise, judge no monitoring program.
7. method as claimed in claim 4 is characterized in that, whether said detection has the primary control program operation to comprise:
Through whether there being the running status sign corresponding programs of main window title or system banner and primary control program in the api function detection system, if then judging has primary control program; Otherwise, judge no master control program.
8. method as claimed in claim 3 is characterized in that, said primary control program is set up and the communication channel of monitoring program comprises:
The ServerSocket assembly of primary control program takies the PORT COM into client service; The PORT COM of the ServerSocket assembly of monitoring program is set to have the PORT COM of specifying corresponding relation with the PORT COM of the ServerSocket assembly of primary control program, the ClientSocket assembly of primary control program connect monitoring program the ServerSocket assembly PORT COM and carry out the function with the monitoring program information interaction.
9. method as claimed in claim 4 is characterized in that, said monitoring program is set up and the communication channel of primary control program comprises:
The ServerSocket assembly of primary control program takies the PORT COM into client service; The PORT COM of the ServerSocket assembly of monitoring program is set to have the PORT COM of specifying corresponding relation with the PORT COM of the ServerSocket assembly of primary control program, the ClientSocket assembly of monitoring program connect primary control program the ServerSocket assembly PORT COM and carry out the function with the primary control program information interaction.
10. like arbitrary described method among claim 2-4, the 6-8, it is characterized in that this method further comprises:
An instance that stops in said two instances is inquired about the running status of adjacent instance;
Obtain the handle of adjacent instance, the api function that the operating system of utilizing this handle to call the said network server of operation provides utilizes this api function to close adjacent instance program;
Close self instance program.
11. the watch-dog of a network server is characterized in that, this equipment comprises:
The operation module is used to start network server, moves two instances of this network server, and one of them instance is set to monitoring module, and another instance is set to main control module;
The monitoring module of operation exception is closed and restarted to main control module when being used to monitor the monitoring module operation exception;
Monitoring module when being used to monitor the main control module operation exception, is closed the main control module of operation exception, and self is set to main control module, and the main control module that restarts operation exception is as monitoring module.
12. equipment as claimed in claim 11 is characterized in that, this equipment further comprises:
Environment is provided with module, is used to the running environment that said network server setting has two instances of specifying corresponding relation;
Said operation module comprises:
Identification module after the instance that is used for the running environment of said two instances starts, obtains the running environment sign of this instance, according to the corresponding relation of the running environment sign of two instances that are provided with in advance, confirms the running environment sign of adjacent instance;
The status poll module, the instance that is used for starting is set to monitoring module, sets up the communication channel of monitoring module and main control module, through this communication channel to main control module send state information query requests;
Detection module is used for when said status poll module does not receive the state information of the normal operation of main control module, and whether have main control module operation, if having, then close this main control module if detecting;
Instance is provided with module, and the instance that is used for starting is set to main control module;
Start module, be used for starting adjacent instance according to the running environment sign of said adjacent instance.
13. equipment as claimed in claim 12 is characterized in that, said main control module comprises:
First passage is set up module, is used to set up the communication channel with monitoring module;
First request module is used for through said communication channel to monitoring module send state information query requests;
First closing module is used for when said first request module does not receive the state information of the normal operation of monitoring module, and whether have monitoring program operation, if having, then close this monitoring program if detecting;
The first adjacent instance starts module, is used to utilize the running environment sign of said adjacent instance to start the adjacent instance of operation.
14. equipment as claimed in claim 12 is characterized in that, said monitoring module comprises:
Second channel is set up module, is used to set up the communication channel with main control module;
Second request module is used for through said communication channel to main control module send state information query requests;
Second closing module is used for when said second request module does not receive the state information of the normal operation of primary control program, and whether have main control module operation, if having, then close this main control module if detecting;
Module is set, is used for this monitoring module is set to main control module;
The second adjacent instance starts module, is used to utilize the running environment sign of said adjacent instance to start the adjacent instance of operation.
15., it is characterized in that this equipment also comprises like arbitrary described equipment among the claim 12-14:
Stopping modular is used for stopping the running status inquiry of an instance of said two instances to adjacent instance; Obtain the handle of said adjacent instance, the api function that the operating system of utilizing this handle to call the said network server of operation provides utilizes this api function to close the program of said adjacent instance; Close the program of a said instance.
CN2008102473324A 2008-12-30 2008-12-30 Method for monitoring network service program Expired - Fee Related CN101771563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102473324A CN101771563B (en) 2008-12-30 2008-12-30 Method for monitoring network service program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102473324A CN101771563B (en) 2008-12-30 2008-12-30 Method for monitoring network service program

Publications (2)

Publication Number Publication Date
CN101771563A CN101771563A (en) 2010-07-07
CN101771563B true CN101771563B (en) 2012-07-25

Family

ID=42504180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102473324A Expired - Fee Related CN101771563B (en) 2008-12-30 2008-12-30 Method for monitoring network service program

Country Status (1)

Country Link
CN (1) CN101771563B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368718B (en) * 2011-06-27 2013-11-06 奇智软件(北京)有限公司 Monitoring program method and system thereof
CN103856368B (en) * 2011-06-27 2018-06-26 北京奇虎科技有限公司 A kind of method and system of monitoring programme
US9122595B2 (en) * 2012-01-13 2015-09-01 NetSuite Inc. Fault tolerance for complex distributed computing operations
CN104580135B (en) * 2014-09-10 2018-04-17 中电科技(北京)有限公司 A kind of terminal real-time control system and method based on UEFI
CN105573777B (en) * 2014-11-11 2020-01-14 阿里巴巴集团控股有限公司 Method and device for controlling service in application
CN104598313A (en) * 2015-02-04 2015-05-06 广州市久邦数码科技有限公司 Implementation method for automatic restart after stop of application process and system thereof
CN105354131A (en) * 2015-12-11 2016-02-24 北京慧眼智行科技有限公司 Monitoring method for running of service program and device
WO2017165999A1 (en) * 2016-03-28 2017-10-05 华为技术有限公司 Network service implementation method, service controller, and communication system
CN110308943B (en) * 2018-03-20 2021-10-19 腾讯科技(深圳)有限公司 Program running method and device, computing equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043310A (en) * 2007-04-27 2007-09-26 北京佳讯飞鸿电气有限责任公司 Image backup method for dual-core control of core controlled system
CN101312413A (en) * 2007-05-25 2008-11-26 四零四科技股份有限公司 Method for managing application program for network redundancy check

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043310A (en) * 2007-04-27 2007-09-26 北京佳讯飞鸿电气有限责任公司 Image backup method for dual-core control of core controlled system
CN101312413A (en) * 2007-05-25 2008-11-26 四零四科技股份有限公司 Method for managing application program for network redundancy check

Also Published As

Publication number Publication date
CN101771563A (en) 2010-07-07

Similar Documents

Publication Publication Date Title
CN101771563B (en) Method for monitoring network service program
CN109495308B (en) Automatic operation and maintenance system based on management information system
US6314512B1 (en) Automatic notification of connection or system failure in asynchronous multi-tiered system by monitoring connection status using connection objects
CN102752624B (en) The method of television fault remote diagnosis, television set and system
CN108710544B (en) Process monitoring method of database system and rail transit comprehensive monitoring system
Ashjaei et al. Enhancing smart maintenance management using fog computing technology
CN101777020B (en) Fault tolerance method and system used for distributed program
JP2008217735A (en) Fault analysis system, method and program
CN103324565B (en) Daily record monitoring method
CN109714202A (en) A kind of client off-line reason method of discrimination and concentrating type safety management system
CN101895540A (en) Daemon system and method for application service
CN104980524A (en) Method for monitoring failure of weblogic connection pool
CN106130763A (en) Server cluster and be applicable to the database resource group method for handover control of this cluster
CN106130778A (en) A kind of method processing clustering fault and a kind of management node
KR20040091392A (en) Method and system for backup management of remote using the web
US11520754B2 (en) Database shutdown and restart stability optimizer
CN108762886A (en) The fault detect restoration methods and system of virtual machine
CN103178977A (en) Computer system and starting-up management method of same
JP2009276929A (en) Automatic fault handling system
CN1074148C (en) Data processing system with error detecting processing function
CN101727378A (en) Method and system for controlling stable operation of application service program
CN108762967A (en) Software watchdog implementation method for monitoring Web service in linux system
CN104753993B (en) A kind of method and monitoring device of monitoring server
CN101256506A (en) System for managing application program of computer network
CN104346233A (en) Fault recovery method and device for computer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: FOUNDER INTERNATIONAL CO., LTD.

Free format text: FORMER OWNER: BEIJING FANGZHENG AODE COMPUTER SYSTEM CO., LTD.

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20110607

Address after: 100871 Beijing, Haidian District into the house road, founder of the building on the 9 floor, No. 298

Applicant after: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Co-applicant after: Founder International Co.,Ltd. (Beijing)

Address before: 100871 Beijing, Haidian District into the house road, founder of the building on the 9 floor, No. 298

Applicant before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Co-applicant before: Beijing Founder Order Computer System Co.,Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220915

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: Founder International Co.,Ltd. (Beijing)

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: Founder International Co.,Ltd. (Beijing)

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120725