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
module
time
information
application server
working time
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

  • Stored Programmes (AREA)
  • Debugging And Monitoring (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

A kind of stable operation of application service program control method and system
Technical field
The present invention relates to field of computer technology, relate in particular to control method and the system of window application stable operation.
Background technology
Under the Windows environment, in the operation system of ask for something robotization, need developing Windows service uninterrupted operation in 24 hours on the backstage.Generally in application service, use timer, regularly carry out a certain task.But because Windows operating system, application service itself, developing instrument Runtime Library is unstable, may cause application services when long-play, abnormal end.Thereby affect the operation system normal operation.
In the existing robotization operation system, generally by manual inspection, check whether normally operation of application services, when application services does not move, it is manually started.Because the application services high cost is patrolled and examined in artificial timing, and can't in time find the operation conditions of application services, there is the fault of interrupting stopping to occur when causing the robotization operation system still.
Summary of the invention
The technical problem to be solved in the present invention is, defects for prior art, a kind of stable operation of application service program control method and system are provided, it can solve the stability problem in the robotization business procedure long-play process, the robotization business procedure can be restarted when automatic stop automatically, guarantee to run without interruption.
The technical solution adopted for the present invention to solve the technical problems is:
Construct a kind of stable operation of application service program control method, it may further comprise the steps:
A, monitor driver receive the beginning monitored instruction from application server, obtain current working time and overtime time limit from application server;
B, monitor driver receive the update instruction of application server, obtain the working time of this renewal from application server;
C, intercept server and calculate the working time of this renewal and the mistiming of working time last time, and described mistiming and described overtime time limit are compared;
D, intercept server the described mistiming greater than described when overtime in limited time, produce repositioning information; The described mistiming less than or equal to described when overtime in limited time, produce normal operation information, with working time of described renewal as new current working time, continue to carry out described step B;
E, monitor driver are waited for and are intercepted the information that server feedback is come, and judgement information is repositioning information or normal operation information;
F, when information is repositioning information, monitor driver sends the reset operation instruction to application server, controlling application program resets and restarts, and continues execution in step A.
Stable operation of application service program control method of the present invention wherein, also comprises step:
Store information working time of all described application servers that receive, comprise uptime and out of order time.
The present invention also provides a kind of stable operation of application service program control system, wherein, comprises the monitoring drive unit and intercepts server;
Described monitoring drive unit, be used for receiving the beginning monitored instruction from application server, from application server, obtain current working time and overtime time limit, receive the update instruction of application server, from application server, obtain the working time of this renewal, and after receiving described repositioning information of intercepting server, send the reset operation instruction to application server;
The described server of intercepting, be used for calculating the working time of described this renewal and the mistiming of described working time last time, and described mistiming and described overtime time limit compared, the described mistiming greater than described when overtime in limited time, send repositioning information to described monitoring drive unit, the described mistiming less than or equal to described when overtime in limited time, with working time of described renewal as new current working time, and send normal operation information to described monitoring drive unit.
Control system of the present invention, wherein, described monitoring drive unit comprises that monitoring starts module, update module, message transmission module, feedback information receiver module, feedback information judge module and reseting module: wherein,
Described monitoring starts module, and what be used for connecting described application server calls the beginning monitor-interface, receives the beginning monitored instruction from application server, obtains current working time and overtime time limit from application server;
Described update module, what be used for connecting described application server calls interface update time, receives the update instruction of application server, obtains the working time of this renewal from application server;
Described message transmission module is used for intercepting the working time that server sends described current working time and overtime time limit, renewal to described;
The feedback information receiver module is used for receiving the described information of intercepting server feedback;
Described feedback information judge module is used for judging whether the described information of intercepting server feedback is repositioning information;
Described reseting module is used for sending the reset operation instruction to application server when the described information of intercepting server feedback is repositioning information.
Control system of the present invention, wherein, the described server of intercepting comprises message sink module, overtime judge module and information feedback module; Wherein,
Described message sink module is used for receiving working time of described current working time that described monitoring drive unit sends and overtime time limit, renewal;
Described overtime judge module is used for calculating the working time of described this renewal and the mistiming of described working time last time, and described mistiming and described overtime time limit is compared;
Described information feedback module, be used for the described mistiming greater than described when overtime in limited time, send repositioning information to described monitoring drive unit, the described mistiming less than or equal to described when overtime in limited time, with working time of described renewal as new current working time, and send normal operation information to described monitoring drive unit.
Control system of the present invention, wherein, described monitoring drive unit also comprises the end monitoring module, what be used for connecting described application server calls the end monitor-interface, and sends and finish monitor message to the described server of intercepting by described message transmission module.
Control system of the present invention wherein, also comprises connecting described database of intercepting server, is used for information working time of the described application server that storing received arrives.
The present invention is by implementing to intercept and monitor to using service routine, can solve the stability problem in the robotization business procedure long-play process, the robotization business procedure can be restarted when automatic stop automatically, guarantee that it runs without interruption, for the stability of operation system provides safeguard.And information working time of record application services, be convenient to transport line trace, analysis to what use service routine.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the stable operation of application service program control method process flow diagram of the embodiment of the invention;
Fig. 2 is the stable operation of application service program control system theory diagram of the embodiment of the invention.
Embodiment
Below in conjunction with diagram, the preferred embodiments of the present invention are described in detail.
The stable operation of application service program control method process flow diagram of preferred embodiment of the present invention may further comprise the steps as shown in Figure 1:
S101, monitor driver receive the beginning monitored instruction from application server, obtain current working time and overtime time limit from application server;
S102, monitor driver receive the update instruction of application server, obtain the working time of this renewal from application server;
S103, intercept server and calculate the working time of described this renewal and the mistiming of working time last time, and mistiming and overtime time limit are compared;
S104, the mistiming when overtime in limited time, intercept server and produce repositioning information;
S105, the mistiming when overtime in limited time, intercept server with working time of upgrading as new current working time, and produce normal operation information;
S106, monitor driver are waited for and are intercepted the information that server feedback is come, and judgement information is repositioning information or normal operation information;
S107, when information is repositioning information, monitor driver sends the reset operation instruction to application server, controlling application program resets and restarts, and continues execution in step S101;
When receive be normal operation information the time, finish to judge, and continue execution in step S102.
Follow the tracks of for the operation conditions of application programs, analyze its out of order frequency, the control method of the present embodiment also comprises step:
S108, information working time of all application servers that receive is stored in the database, comprises uptime and out of order time, safeguard so that carry out post analysis.
The present invention also provides a kind of stable operation of application service program control system of finishing above each step of control method, comprises monitoring drive unit 10 and intercepts server 20, and its theory diagram as shown in Figure 2.Wherein, monitoring drive unit 10 mainly is installed on the application server 30 at monitored application program place, intercepts server 20 and can be arranged on long-range server.Therefore can adopt one to intercept server 20 and realize monitoring to the application program on many application servers 30, only need distinguish according to the IP address information of different application server 30 and get final product.And want correspondence that a monitoring drive unit 10 is installed on each application server 30.
In the present embodiment, monitoring drive unit 10 is mainly used in receiving the beginning monitored instruction from application server 30, from application server 30, obtain current working time and overtime time limit, receive the update instruction of application server 30, from application server 30, obtain the working time of application program update, and after receiving the repositioning information of intercepting server 20, send reset operation instruction, mandatory use Program reset to application server 30.Intercept server 20 and be used for the working time of this renewal of computing application program and the mistiming of working time last time, and should compare with the overtime time limit that receives in advance the mistiming, when this mistiming when overtime in limited time, send repositioning information to monitoring drive unit 10, when this mistiming when overtime in limited time, with working time of upgrading as new current working time, it is poor with new current computing time working time that receives next time to be used for, and sends normal operation information to monitoring drive unit 10.
In the control system of the present embodiment, as shown in Figure 2, monitoring drive unit 10 can comprise that specifically monitoring starts module 11, update module 12, message transmission module 14, feedback information receiver module 15, feedback information judge module 16 and reseting module 17.
Wherein, monitoring starts module 11 and begins monitor-interface 31 for connecting calling of application server 30, receives the beginning monitored instruction from application server 30, obtains current working time of application program and overtime time limit from application server 30.What update module 12 was used for connecting application server 30 calls interface 32 update time, receives the update instruction of application server 30, obtains the working time of this renewal from application server 30.Wherein the application program update frequency is that the user sets in each application program as required in the application server 30.Message transmission module 14 was used for to the working time of intercepting 20 transmission current working times of application program of server and overtime time limit, renewal.Feedback information receiver module 15 is used for receiving intercepts server 20 feedacks, and this feedack is repositioning information or normal operation information.Feedback information judge module 16 is used for judging whether intercept server 20 feedacks is repositioning information.When being repositioning information, then send reset operation instruction, mandatory use Program reset by reseting module 17 to application server 30.
In the control system of the present embodiment, as shown in Figure 2, intercept server 20 and comprise message sink module 21, overtime judge module 22 and information feedback module 23.Wherein, message sink module 21 is used for receiving the working time of current working time of the application program that monitoring drive unit 10 sends and overtime time limit, renewal.Overtime judge module 22 is used for calculating working time of upgrading and the mistiming of operation starting time, and should the mistiming and the overtime time limit compare.Information feedback module 23 be used for the mistiming when overtime in limited time, send repositioning informations to monitoring drive unit 10; The mistiming when overtime in limited time, with working time of upgrading as new current working time, and send the normal operation information to monitoring drive unit 10.
In the control system of the present embodiment, as shown in Figure 2, monitoring drive unit 10 also comprises end monitoring module 13, is used for connecting calling of application server 30 and finishes monitor-interface 33, and send the end monitor message by message transmission module 14 to intercepting server 20.
In the control system of the present embodiment, as shown in Figure 2, also comprise connecting the database 40 intercept server 20, be used for the service data information of the application server 30 that storing received arrives, comprise uptime and the out of order time that judges, safeguard so that carry out the analysis of application program.
Among the above embodiment of the present invention, intercepting application server of the corresponding monitoring of server take one is illustrated as example, when many application servers of needs monitoring, the time message that only the different application server need be sent, and the data such as overtime judged result according to IP address information corresponding to this application server receive, store, the operation such as calculating, can finish the monitoring of many application servers, not repeat them here.
The present invention is by implementing to intercept and monitor to using service routine, can solve the stability problem in the robotization business procedure long-play process, the robotization business procedure can be restarted when automatic stop automatically, guarantee that it runs without interruption, for the stability of operation system provides safeguard.And information working time of record application services, be convenient to the operation conditions of using service routine is followed the tracks of, analyzed.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (5)

1. a stable operation of application service program control method is characterized in that, may further comprise the steps:
A, monitor driver receive the beginning monitored instruction from application server, obtain current working time and overtime time limit from application server;
B, monitor driver receive the update instruction of application server, obtain the working time of this renewal from application server;
C, intercept server and calculate the working time of this renewal and the mistiming of working time last time, and described mistiming and described overtime time limit are compared;
D, the described mistiming greater than described when overtime in limited time, intercept server and produce repositioning information; The described mistiming less than or equal to described when overtime in limited time, intercept server and produce normal operation information, with working time of described renewal as new current working time, continue to carry out described step B;
E, monitor driver are waited for and are intercepted the information that server feedback is come, and judgement information is repositioning information or normal operation information;
F, when information is repositioning information, monitor driver sends the reset operation instruction to application server, controlling application program resets and restarts, and continues execution in step A.
2. stable operation of application service program control method according to claim 1 is characterized in that, also comprises step: information working time of the described application server that storing received arrives comprises uptime and out of order time.
3. stable operation of application service program control system, it is characterized in that, comprise that monitoring starts module, update module, message transmission module, feedback information receiver module, feedback information judge module, reseting module, message sink module, overtime judge module and information feedback module, wherein
Described monitoring starts module, and what be used for connecting application server calls the beginning monitor-interface, receives the beginning monitored instruction from application server, obtains current working time and overtime time limit from application server;
Described update module, what be used for connecting described application server calls interface update time, receives the update instruction of application server, obtains the working time of this renewal from application server;
Described message transmission module is for the working time that sends described current working time and overtime time limit, this renewal to the message sink module;
Described feedback information receiver module is used for reception information feedback module feedack;
Described feedback information judge module is used for judging whether described feedack is repositioning information;
Described reseting module is used for sending the reset operation instruction to application server when described feedack is repositioning information;
Described message sink module is used for receiving working time of described current working time that described message transmission module sends and overtime time limit, this renewal;
Described overtime judge module is used for calculating the working time of described this renewal and the mistiming of working time last time, and described mistiming and described overtime time limit is compared;
Described information feedback module, be used for the described mistiming greater than described when overtime in limited time, send repositioning information to described feedback information receiver module, the described mistiming less than or equal to described when overtime in limited time, with working time of described renewal as new current working time, and send normal operation information to described feedback information receiver module.
4. control system according to claim 3 is characterized in that, also comprises the end monitoring module, and what be used for connecting described application server calls the end monitor-interface, and sends the end monitor message by described message transmission module to described message sink module.
5. control system according to claim 3 is characterized in that, also comprises the database that connects described overtime judge module, is used for information working time of the described application server that storing received arrives, and comprises uptime and out of order 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
CN101727378B (en) Method and system for controlling stable operation of application service program
Farshchi et al. Experience report: Anomaly detection of cloud application operations using log and cloud metric correlation analysis
US9485151B2 (en) Centralized system management on endpoints of a distributed data processing system
US7966365B2 (en) System and method for scheduling device management
US20100043004A1 (en) Method and system for computer system diagnostic scheduling using service level objectives
CN103377094A (en) Abnormity monitoring method and abnormity monitoring device
CN109144789B (en) Method, device and system for restarting OSD
CN102508734B (en) Operating system recovery method and intelligent equipment
EP3148116A1 (en) Information system fault scenario information collection method and system
US20160299749A1 (en) System and method for remote installation of software
CN1937523A (en) Client service emergency system and its realizing method
CN101771563A (en) Method for monitoring network service program
CN113825164A (en) Network fault repairing method and device, storage medium and electronic equipment
CN111143170A (en) Cloud mobile phone monitoring system and method
JP2010257332A (en) Analyzer control system
CN106843969B (en) Method and system for updating software in continuous service
CN110826729A (en) Multi-terminal automatic operation and maintenance management platform and operation and maintenance method
CN111277872A (en) Smart television visual remote debugging method, system and storage medium
WO2024119787A1 (en) Method and apparatus for amd server system installation power-off processing, device and medium
CN105025179A (en) Method and system for monitoring service agents of call center
CN112350862A (en) Monitoring alarm and fault self-healing system
CN114826981B (en) System and method for realizing application resident in cloud mobile phone
CN109324834A (en) A kind of system and method that distributed storage server is restarted automatically
CN114039848A (en) Method, device and equipment for realizing high availability of InCloudInsight management platform
CN111400094A (en) Method, device, equipment and medium for restoring factory settings of server 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
C14 Grant of patent or utility model
GR01 Patent grant