CN101727378B - Method and system for controlling stable operation of application service program - Google Patents

Method and system for controlling stable operation of application service program Download PDF

Info

Publication number
CN101727378B
CN101727378B CN 200910239526 CN200910239526A CN101727378B CN 101727378 B CN101727378 B CN 101727378B CN 200910239526 CN200910239526 CN 200910239526 CN 200910239526 A CN200910239526 A CN 200910239526A CN 101727378 B CN101727378 B CN 101727378B
Authority
CN
China
Prior art keywords
time
information
module
application server
monitoring
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.)
Active
Application number
CN 200910239526
Other languages
Chinese (zh)
Other versions
CN101727378A (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.)
SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Original Assignee
SHENZHEN LAN-YOU TECHNOLOG 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 SHENZHEN LAN-YOU TECHNOLOG Co Ltd filed Critical SHENZHEN LAN-YOU TECHNOLOG Co Ltd
Priority to CN 200910239526 priority Critical patent/CN101727378B/en
Publication of CN101727378A publication Critical patent/CN101727378A/en
Application granted granted Critical
Publication of CN101727378B publication Critical patent/CN101727378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method and a system for controlling the stable operation of an application service program. The method for controlling the stable operation of the application service program comprises the following steps of: A, receiving a start monitoring command from an application server, and acquiring the current running time and the timeout time limit from the application server; B, receiving an updating command of the application server, and acquiring the running time of the updating from the application server; C, calculating the time difference between the running time of the updating and the running time of the last time, and comparing the time difference with the timeout time limit; and D, when the time difference is greater than the timeout time limit, generating restoration information, and controlling the restoration of the application server. The method and the system solve the stability problem of an automatic service program in the process of long-time running so that the automatic service program can be restarted automatically when the automatic service program is automatically terminated to ensure that the automatic service program runs incessantly, and the running state of the application program of the application service program is traced and analyzed.

Description

Application service program stable operation control method and system
Technical Field
The invention relates to the technical field of computers, in particular to a control method and a control system for stable operation of a Windows application program.
Background
In the Windows environment, some business systems requiring automation need to develop Windows service to run continuously in the background for 24 hours. A timer is generally used in an application service to perform a certain task regularly. However, due to the instability of the Windows operating system, the application service itself and the development tool runtime library, the application service program may be abnormally terminated when running for a long time. Thereby affecting the normal operation of the business system.
In the existing automatic service system, whether an application service program normally operates is generally checked through manual inspection, and the application service program is manually started when the application service program does not operate. The manual timing inspection of the application service program has high cost, and the running condition of the application service program cannot be found in time, so that the automatic service system still has a fault of interruption and stop.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for controlling stable operation of an application service program, which can solve the problem of stability of an automatic service program in a long-time operation process, so that the automatic service program can be automatically restarted when being automatically terminated, thereby ensuring uninterrupted operation.
The technical scheme adopted by the invention for solving the technical problems is as follows:
the method for controlling the stable operation of the application service program is constructed, and comprises the following steps:
A. the monitoring driver receives a monitoring starting instruction from the application server and acquires the current running time and the overtime time limit from the application server;
B. the monitoring driver receives an updating instruction of the application server and obtains the running time of the updating from the application server;
C. the interception server calculates the time difference between the running time of the current update and the running time of the last time, and compares the time difference with the overtime time limit;
D. when the time difference is larger than the time limit, the interception server generates reset information; when the time difference is less than or equal to the timeout time, generating normal operation information, taking the updated operation time as a new current operation time, and continuing to execute the step B;
E. the monitoring driver waits for information fed back by the interception server and judges whether the information is reset information or normal operation information;
F. and when the information is reset information, the monitoring driver sends a reset operation instruction to the application server, controls the application program to reset and restart, and continues to execute the step A.
The invention relates to a method for controlling the stable operation of an application service program, which further comprises the following steps:
storing all received runtime information for the application server, including uptime and time to failure.
The invention also provides a system for controlling the stable operation of the application service program, wherein the system comprises a monitoring driving device and an interception server;
the monitoring driving device is used for receiving a monitoring starting instruction from the application server, acquiring the current running time and the overtime time limit from the application server, receiving an updating instruction of the application server, acquiring the running time of the updating from the application server, and sending a resetting operation instruction to the application server after receiving the resetting information of the interception server;
the interception server is configured to calculate a time difference between the current updated operation time and the last operation time, compare the time difference with the timeout period, send reset information to the monitoring driving apparatus when the time difference is greater than the timeout period, regard the updated operation time as a new current operation time when the time difference is less than or equal to the timeout period, and send operation normality information to the monitoring driving apparatus.
The control system of the invention, wherein, the monitoring drive device includes a monitoring start module, an update module, a message sending module, a feedback information receiving module, a feedback information judging module and a reset module: wherein,
the monitoring starting module is used for connecting a calling starting monitoring interface of the application server, receiving a starting monitoring instruction from the application server and acquiring the current running time and the overtime time limit from the application server;
the updating module is used for connecting an updating time calling interface of the application server, receiving an updating instruction of the application server and acquiring the running time of the updating from the application server;
the message sending module is used for sending the current running time, the timeout time limit and the updated running time to the interception server;
the feedback information receiving module is used for receiving the information fed back by the interception server;
the feedback information judgment module is used for judging whether the information fed back by the interception server is reset information or not;
and the reset module is used for sending a reset operation instruction to the application server when the information fed back by the interception server is reset information.
The control system of the invention, wherein, the interception server includes message receiving module, overtime judging module and information feedback module; wherein,
the message receiving module is used for receiving the current running time, the timeout time limit and the updated running time which are sent by the monitoring driving device;
the overtime judging module is used for calculating the time difference between the running time of the current update and the last running time and comparing the time difference with the overtime limit;
and the information feedback module is used for sending reset information to the monitoring driving device when the time difference is greater than the timeout time, taking the updated running time as a new current running time when the time difference is less than or equal to the timeout time, and sending normal running information to the monitoring driving device.
The control system of the present invention, wherein the monitoring driving device further includes an end monitoring module, configured to connect to the call end monitoring interface of the application server, and send end monitoring information to the interception server through the message sending module.
The control system of the invention further comprises a database connected with the interception server and used for storing the received running time information of the application server.
The invention can solve the stability problem of the automatic service program in the long-time running process by monitoring and controlling the application service program, so that the automatic service program can be automatically restarted when being automatically terminated, thereby ensuring the uninterrupted running of the automatic service program and providing guarantee for the stability of a service system. And the running time information of the application service program is recorded, so that the running of the application service program is conveniently tracked and analyzed.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flowchart of a method for controlling stable operation of an application service program according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of an application service program stable operation control system according to an embodiment of the present invention.
Detailed Description
The following detailed description of preferred embodiments of the invention refers to the accompanying drawings.
Fig. 1 shows a flowchart of a method for controlling stable operation of an application service program according to a preferred embodiment of the present invention, which includes the following steps:
s101, a monitoring driver receives a monitoring starting instruction from an application server and acquires the current running time and the overtime time limit from the application server;
s102, the monitoring driver receives an updating instruction of the application server and obtains the updating running time from the application server;
s103, the interception server calculates the time difference between the running time of the current update and the running time of the last time, and compares the time difference with the overtime time limit;
s104, when the time difference is larger than the time limit of time-out, the interception server generates reset information;
s105, when the time difference is less than or equal to the timeout time, the interception server takes the updated running time as the new current running time and generates normal running information;
s106, the monitoring driver waits for information fed back by the interception server and judges whether the information is reset information or normal operation information;
s107, when the information is reset information, the monitoring driver sends a reset operation instruction to the application server, controls the application program to reset and restart, and continues to execute the step S101;
when the operation normal information is received, the judgment is ended, and the step S102 is continued.
In order to track the operating condition of the application program and analyze the failure frequency of the application program, the control method of this embodiment further includes the steps of:
and S108, storing all the received running time information of the application server into a database, wherein the running time information comprises normal running time and failure time, so that later analysis and maintenance can be conveniently carried out.
The invention also provides an application service program stable operation control system capable of completing the steps of the control method, which comprises a monitoring driving device 10 and an interception server 20, and the schematic block diagram of the system is shown in fig. 2. The monitoring driver 10 is mainly installed in the application server 30 where the application to be monitored is located, and the listening server 20 may be a server installed remotely. Therefore, the monitoring of the application programs on the plurality of application servers 30 can be realized by using one interception server 20, and only the application programs need to be distinguished according to the IP address information of different application servers 30. And each application server 30 is correspondingly provided with one monitoring driving device 10.
In this embodiment, the monitoring driver 10 is mainly configured to receive a monitoring start instruction from the application server 30, obtain the current running time and the timeout period from the application server 30, receive an update instruction from the application server 30, obtain the updated running time of the application program from the application server 30, and send a reset operation instruction to the application server 30 after receiving the reset information of the monitoring server 20, so as to force the application program to be reset. The interception server 20 is configured to calculate a time difference between the current updated operation time and the last operation time of the application, compare the time difference with a previously received timeout period, send reset information to the monitoring driving apparatus 10 when the time difference is greater than the timeout period, and use the updated operation time as a new current operation time when the time difference is less than or equal to the timeout period to calculate the time difference from the new current operation time received next time, and send operation normality information to the monitoring driving apparatus 10.
In the control system of the present embodiment, as shown in fig. 2, the monitoring driving device 10 may specifically include a monitoring starting module 11, an updating module 12, a message sending module 14, a feedback information receiving module 15, a feedback information judging module 16, and a resetting module 17.
The monitoring starting module 11 is configured to connect to the call start monitoring interface 31 of the application server 30, receive a start monitoring instruction from the application server 30, and obtain the current running time and the timeout period of the application program from the application server 30. The update module 12 is configured to connect to the call update time interface 32 of the application server 30, receive an update instruction of the application server 30, and obtain the running time of the current update from the application server 30. Wherein the application update frequency in the application server 30 is set by the user as needed in each application. The message sending module 14 is used to send the current running time and timeout period of the application program, and the updated running time to the interception server 20. The feedback information receiving module 15 is configured to receive information fed back by the listening server 20, where the fed back information is reset information or normal operation information. The feedback information judgment module 16 is used for judging whether the information fed back by the listening server 20 is reset information. If the reset information is the reset information, the reset module 17 sends a reset operation instruction to the application server 30, so as to force the application program to be reset.
In the control system of the present embodiment, as shown in fig. 2, the interception server 20 includes a message receiving module 21, a timeout determining module 22, and an information feedback module 23. The message receiving module 21 is configured to receive the current running time and the timeout period of the application program sent by the monitoring driver 10 and the updated running time. The timeout module 22 is used to calculate the time difference between the updated running time and the start running time and compare the time difference with the timeout period. The information feedback module 23 is configured to send reset information to the monitoring driving apparatus 10 when the time difference is greater than the timeout time; when the time difference is equal to or less than the timeout period, the updated operation time is set as a new current operation time, and the operation normality information is transmitted to the monitoring drive device 10.
In the control system of the present embodiment, as shown in fig. 2, the monitoring driving device 10 further includes an end monitoring module 13, configured to connect to the call end monitoring interface 33 of the application server 30, and send end monitoring information to the listening server 20 through the message sending module 14.
As shown in fig. 2, the control system of this embodiment further includes a database 40 connected to the listening server 20, and is configured to store the received operation data information of the application server 30, including the normal operation time and the determined failure time, so as to facilitate analysis and maintenance of the application program.
In the above embodiments of the present invention, an example that one interception server monitors one application server is taken as an example, when a plurality of application servers need to be monitored, the monitoring of the plurality of application servers can be completed only by receiving, storing, calculating and the like data such as time messages sent by different application servers and timeout determination results according to the IP address information corresponding to the application servers, which is not described herein again.
The invention can solve the stability problem of the automatic service program in the long-time running process by monitoring and controlling the application service program, so that the automatic service program can be automatically restarted when being automatically terminated, thereby ensuring the uninterrupted running of the automatic service program and providing guarantee for the stability of a service system. And the running time information of the application service program is recorded, so that the running state of the application service program is conveniently tracked and analyzed.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.

Claims (5)

1. A method for controlling stable operation of an application service program is characterized by comprising the following steps:
A. the monitoring driver receives a monitoring starting instruction from the application server and acquires the current running time and the overtime time limit from the application server;
B. the monitoring driver receives an updating instruction of the application server and obtains the running time of the updating from the application server;
C. the interception server calculates the time difference between the running time of the current update and the running time of the last time, and compares the time difference with the overtime time limit;
D. when the time difference is larger than the time-out time limit, the interception server generates reset information; when the time difference is less than or equal to the timeout time, the interception server generates normal operation information, the updated operation time is used as new current operation time, and the step B is continuously executed;
E. the monitoring driver waits for information fed back by the interception server and judges whether the information is reset information or normal operation information;
F. and when the information is reset information, the monitoring driver sends a reset operation instruction to the application server, controls the application program to reset and restart, and continues to execute the step A.
2. The method for controlling stable operation of an application service program according to claim 1, further comprising the steps of: storing the received runtime information of the application server, including uptime and time of failure.
3. A stable operation control system of an application service program is characterized by comprising a monitoring starting module, an updating module, a message sending module, a feedback information receiving module, a feedback information judging module, a resetting module, a message receiving module, an overtime judging module and an information feedback module, wherein,
the monitoring starting module is used for connecting a calling starting monitoring interface of the application server, receiving a starting monitoring instruction from the application server and acquiring the current running time and the overtime time limit from the application server;
the updating module is used for connecting an updating time calling interface of the application server, receiving an updating instruction of the application server and acquiring the running time of the updating from the application server;
the message sending module is used for sending the current running time, the overtime time limit and the current updating running time to the message receiving module;
the feedback information receiving module is used for receiving the information fed back by the information feedback module;
the feedback information judging module is used for judging whether the feedback information is reset information;
the reset module is used for sending a reset operation instruction to the application server when the feedback information is reset information;
the message receiving module is used for receiving the current running time, the timeout time limit and the current updating running time sent by the message sending module;
the overtime judging module is used for calculating the time difference between the running time of the updating and the last running time and comparing the time difference with the overtime time limit;
the information feedback module is configured to send reset information to the feedback information receiving module when the time difference is greater than the timeout time, and take the updated running time as a new current running time and send running normal information to the feedback information receiving module when the time difference is less than or equal to the timeout time.
4. The control system according to claim 3, further comprising an end monitoring module, configured to connect to the call end monitoring interface of the application server, and send end monitoring information to the message receiving module through the message sending module.
5. The control system of claim 3, further comprising a database coupled to the timeout module for storing the received runtime information of the application server, including uptime and down time.
CN 200910239526 2009-12-31 2009-12-31 Method and system for controlling stable operation of application service program Active CN101727378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910239526 CN101727378B (en) 2009-12-31 2009-12-31 Method and system for controlling stable operation of application service program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910239526 CN101727378B (en) 2009-12-31 2009-12-31 Method and system for controlling stable operation of application service program

Publications (2)

Publication Number Publication Date
CN101727378A CN101727378A (en) 2010-06-09
CN101727378B true CN101727378B (en) 2013-04-17

Family

ID=42448297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910239526 Active CN101727378B (en) 2009-12-31 2009-12-31 Method and system for controlling stable operation of application service program

Country Status (1)

Country Link
CN (1) CN101727378B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067034B (en) * 2012-12-31 2015-01-21 广州杰赛科技股份有限公司 Third generation telecommunication (3G) module capable of monitoring light-emitting diode (LED) release system
CN104809051B (en) 2014-01-28 2017-11-14 国际商业机器公司 Method and apparatus for predicting exception and failure in computer application
CN105760378B (en) * 2014-12-15 2019-12-10 菜鸟智能物流控股有限公司 Transaction state monitoring method and device
CN104765689B (en) * 2015-04-20 2018-09-21 广州华多网络科技有限公司 A kind of interface capability data supervise method and apparatus in real time
CN105354131A (en) * 2015-12-11 2016-02-24 北京慧眼智行科技有限公司 Monitoring method for running of service program and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001050263A1 (en) * 1999-12-30 2001-07-12 Computer Associates Think, Inc. System and method for device failure recognition
CN101237355A (en) * 2007-12-26 2008-08-06 腾讯科技(深圳)有限公司 Service monitoring method, service monitoring device and network monitoring device
CN101290587A (en) * 2008-06-12 2008-10-22 中兴通讯股份有限公司 Realization progress start-up and control process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001050263A1 (en) * 1999-12-30 2001-07-12 Computer Associates Think, Inc. System and method for device failure recognition
CN101237355A (en) * 2007-12-26 2008-08-06 腾讯科技(深圳)有限公司 Service monitoring method, service monitoring device and network monitoring device
CN101290587A (en) * 2008-06-12 2008-10-22 中兴通讯股份有限公司 Realization progress start-up and control process

Also Published As

Publication number Publication date
CN101727378A (en) 2010-06-09

Similar Documents

Publication Publication Date Title
US10592330B2 (en) Systems and methods for automatic replacement and repair of communications network devices
EP3386150B1 (en) Terminal failure processing method, device and system
CN101727378B (en) Method and system for controlling stable operation of application service program
CN111052087B (en) Control system, information processing apparatus, and recording medium
CN114460913A (en) ECU management method on vehicle, ECU and readable storage medium
CN113825164A (en) Network fault repairing method and device, storage medium and electronic equipment
CN106201805B (en) Method and device for detecting server failure
CN112148567A (en) Intelligent device active operation and maintenance method, device and storage medium
EP2137614A1 (en) On-line configuration management system and method
CN105425932A (en) Management method and system for whole cabinet sever power source
CN103973718A (en) Operation and maintenance message pushing method based on android mobile platform
JP2010257332A (en) Analyzer control system
CN101742254A (en) Backup method for video monitoring system information and central platform server
CN102761432B (en) CGI method for supervising and device thereof and system
WO2016086635A1 (en) Network element upgrade management method and apparatus
WO2024119787A1 (en) Method and apparatus for amd server system installation power-off processing, device and medium
JP2007042145A (en) Operation monitoring device and operation monitoring system
CN101237355B (en) Service monitoring method, and network monitoring device
CN105025179A (en) Method and system for monitoring service agents of call center
CN108228254A (en) Intelligent Problems processing method, server and terminal device applied to parking lot
CN112115003A (en) Method, device and equipment for recovering dropped service process and storage medium
JP2008077324A (en) Server-client system
CN113722181A (en) BMC process monitoring method, device, system and medium of server
CN112104497A (en) Terminal management method, device, system, server, terminal and storage medium
CN111064597A (en) Self-healing method of middleware node self-healing system based on Pass platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant