Nothing Special   »   [go: up one dir, main page]

CN105354131A - Monitoring method for running of service program and device - Google Patents

Monitoring method for running of service program and device Download PDF

Info

Publication number
CN105354131A
CN105354131A CN201510920956.8A CN201510920956A CN105354131A CN 105354131 A CN105354131 A CN 105354131A CN 201510920956 A CN201510920956 A CN 201510920956A CN 105354131 A CN105354131 A CN 105354131A
Authority
CN
China
Prior art keywords
service program
destination service
described destination
run
enabled instruction
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.)
Pending
Application number
CN201510920956.8A
Other languages
Chinese (zh)
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.)
BEIJING HUIYAN ZHIXING TECHNOLOGY Co Ltd
Original Assignee
BEIJING HUIYAN ZHIXING TECHNOLOGY 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 BEIJING HUIYAN ZHIXING TECHNOLOGY Co Ltd filed Critical BEIJING HUIYAN ZHIXING TECHNOLOGY Co Ltd
Priority to CN201510920956.8A priority Critical patent/CN105354131A/en
Publication of CN105354131A publication Critical patent/CN105354131A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a monitoring method for running of a service program and a device. The monitoring method comprises the following steps: starting a target service program on the basis of a generated first starting instruction, wherein the started target service program runs on the background; monitoring if the target service program is under a running stopping state; receiving error code information outputted by the target service program when the target service program under the running stopping state is monitored; confirming an error identification corresponding to the error code information according to the correspondence between a preset error code and the error identification; showing the error identification in a corresponding mode. Different from the method in the prior art, through which a user cannot timely know the abnormal running and the reason for the abnormal running, the method has the advantages that the user can be timely and clearly informed of the service program stopping running and the reason for the running stopping through the shown error identification, so that the effective monitoring for the running state of the service program is realized.

Description

The method for supervising that a kind of service routine runs and device
Technical field
The present invention relates to software design technology field, particularly the method for supervising that runs of a kind of service routine and device.
Background technology
In the operation of software application, usually there is the operation of various service routine, to provide corresponding service function, as order line program etc.Such as, the association backstage presence service program of certain application has three, all operates in Windows operating system: one uses the trustship of tomcat program, and two other runs with Java command line mode.
But service routine runs exists various problem usually, such as, because tomcat program can not notify user in time when occurring abending trustship, software application is caused to be run not normal and user cannot know failure cause; And in command Window, normally showing original error message with the service routine that Java command line mode runs when there is mistake, the user not possessing Experiences in Developing Software cannot misinterpretation reason; Etc..
Therefore, a kind of scheme effectively can carrying out running state monitoring to service routine is needed badly.
Summary of the invention
In view of this, the method for supervising that the object of the present invention is to provide a kind of service routine to run and device, in order to solve the technical matters cannot carrying out running state monitoring in prior art to service routine.
The invention provides the method for supervising that a kind of service routine runs, comprising:
Based on the first enabled instruction generated, start destination service program, wherein, the destination service program of startup is in running background;
Monitor described destination service program and whether be in run-stopping status;
When monitoring described destination service program and being in run-stopping status, receive the error code information that described destination service program exports;
According to the corresponding relation between the error code preset and error identification, determine the error identification corresponding with described error code information;
Described error identification is represented in the corresponding way.
Said method, preferably, in the first enabled instruction based on generation, after starting destination service program, described method also comprises:
Triggered timer starts timing, and it is long that described timer has Preset Time;
The duration that described timer records reach described Preset Time long time, detect described destination service program and whether be in run-stopping status;
If when described destination service program is in run-stopping status, generate the second enabled instruction and trigger described timer and restart timing, the duration that described timer records again reach described Preset Time long time, perform the described destination service program of described detection and whether be in run-stopping status, described second enabled instruction is in order to restart described destination service program;
If when described target program is in running status, triggers described timer and restart timing, the duration that described timer records again reach described Preset Time long time, perform the described destination service program of described detection and whether be in run-stopping status.
Said method, preferably, when monitoring described destination service program and being in run-stopping status, described method also comprises:
Generate the 3rd enabled instruction, described 3rd enabled instruction is restarted in order to trigger described destination service program.
Said method, preferably, when monitoring described destination service program and being in run-stopping status, described method also comprises:
Receive the 4th enabled instruction that user operation produces, and based on described 4th enabled instruction, trigger described destination service program and restart.
Said method, preferably, in the first enabled instruction based on generation, after starting destination service program, described method also comprises:
Monitor described destination service program and whether start failure, if failure, generate the 5th enabled instruction, restart to trigger described destination service program, continue to monitor the destination service program of restarting and whether start failure, until the number of starts of described destination service program reaches default threshold value, generate information, described information cannot start in order to point out described destination service program.
Present invention also offers the supervising device that a kind of service routine runs, comprising:
Program start unit, for the first enabled instruction based on generation, start destination service program, wherein, the destination service program of startup is in running background;
Stopping monitoring means, whether being in run-stopping status for monitoring described destination service program, when monitoring described destination service program and being in run-stopping status, trigger erroneous receiving element;
Garbled-reception unit, for receiving the error code information that described destination service program exports;
Mark determining unit, for according to the corresponding relation between the error code preset and error identification, determines the error identification corresponding with described error code information;
Mark represents unit, for being represented in the corresponding way by described error identification.
Said apparatus, preferably, also comprises:
Timing trigger element, after starting described destination service program at described program start unit, triggered timer starts timing, and it is long that described timer has Preset Time, the duration that described timer records reach described Preset Time long time, trigger stop detection unit;
Stop detection unit, whether run-stopping status is in for detecting described destination service program, if when described destination service program is in run-stopping status, unit is restarted in triggering first and timer restarts unit, if described destination service program is in running status, triggers described timer and restart unit;
First restarts unit, and for generating the second enabled instruction, described second enabled instruction is in order to restart described destination service program;
Timer restarts unit, restarts timing for triggering described timer.
Said apparatus, preferably, also comprises:
Second restarts unit, for monitor at described stopping monitoring means described destination service program be in run-stopping status time, generate the 3rd enabled instruction, described 3rd enabled instruction is restarted in order to trigger described destination service program.
Said apparatus, preferably, also comprises:
3rd restarts unit, for monitor at described stopping monitoring means described destination service program be in run-stopping status time, receive the 4th enabled instruction that user operation produces, and based on described 4th enabled instruction, trigger described destination service program and restart.
Said apparatus, preferably, also comprises:
Start monitoring means, after starting destination service program at described program start unit, monitor described destination service program and whether start failure, if failure, trigger the 4th and restart unit, continue to monitor the destination service program of restarting and whether start failure, until the number of starts of described destination service program reaches default threshold value, trigger and start Tip element;
4th restarts unit, for generating the 5th enabled instruction, restarts to trigger described destination service program;
Start Tip element, for generating information, described information cannot start in order to point out described destination service program.
From such scheme, the method for supervising that a kind of service routine provided by the invention runs and device, can after startup destination service program, monitor this destination service program and whether be in run-stopping status, and then when destination service program is in run-stopping status, receive the error code information of described destination service program, and then based on the corresponding relation between the code pre-set and mark, find the error identification that this error code information is corresponding, and then show user, be different from the situation that user in prior art cannot learn operation exception in time and cannot learn abnormal cause, the present invention also can clearly notify that service routine out of service and its reason out of service appear in user by the error identification shown in time in time, realize the running status of effective monitoring service routine thus.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of the method for supervising that a kind of service routine that Fig. 1 provides for the embodiment of the present invention one runs;
The process flow diagram of the method for supervising that a kind of service routine that Fig. 2 provides for the embodiment of the present invention two runs;
The realization flow figure of the method for supervising that a kind of service routine that Fig. 3 provides for the embodiment of the present invention three runs;
The process flow diagram of the method for supervising that a kind of service routine that Fig. 4 provides for the embodiment of the present invention four runs;
The process flow diagram of the method for supervising that a kind of service routine that Fig. 5 provides for the embodiment of the present invention five runs;
The structural representation of the supervising device that a kind of service routine that Fig. 6 provides for the embodiment of the present invention six runs;
The structural representation of the supervising device that a kind of service routine that Fig. 7 provides for the embodiment of the present invention seven runs;
The structural representation of the supervising device that a kind of service routine that Fig. 8 provides for the embodiment of the present invention eight runs;
The structural representation of the supervising device that a kind of service routine that Fig. 9 provides for the embodiment of the present invention nine runs;
The structural representation of the supervising device that a kind of service routine that Figure 10 provides for the embodiment of the present invention ten runs.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
With reference to figure 1, the process flow diagram of the method for supervising that a kind of service routine provided for the embodiment of the present invention one runs, wherein, described method goes for the operation monitoring to various service routine, the service routine etc. that service routine or Java command line mode as tomcat trustship run, the method in the present embodiment can utilize the technology of multi-thread concurrent to monitor in real time multiple service routine equally simultaneously.
In the present embodiment, described method can comprise the following steps:
Step 101: based on the first enabled instruction generated, starts destination service program.
Wherein, the destination service program started in the present embodiment is in running background, that is, not display on the display interface that user can watch, user can observe the monitor state of described destination service program according to the monitoring interface of the present embodiment.
Step 102: monitor described destination service program and whether be in run-stopping status, when monitoring described destination service program and being in run-stopping status, performs step 103.
Wherein, monitor described destination service program in the present embodiment and whether be in run-stopping status, refer to, Real-Time Monitoring is carried out to the operation of described destination service program, running status once described destination service program occurs extremely causing running, and namely performs step 103.
Concrete, by arranging interface code in described destination service program, described destination service program can be monitored by this interface code and whether being in run-stopping status in the present embodiment.
Step 103: receive the error code information that described destination service program exports.
That is, when described destination service program is in run-stopping status, corresponding error code information can be exported, this error code information is for the less user even not having development Experience of Experiences in Developing Software, be unclear, user cannot learn that from this error code information the reason of phenomenon out of service appears in described destination service program.
Step 104: according to the corresponding relation between the error code preset and error identification, determine the error identification corresponding with described error code information.
Wherein, described corresponding relation can be presented by relation list, specifically can be arranged in advance by software developer, carry out mark to the various error code that may occur to arrange, each error code has an error identification corresponding, here error identification is to domestic consumer, can learn that the reason of phenomenon out of service appears in described destination service program thus, thus, utilize this corresponding relation in the present embodiment, find the error identification corresponding to error code information exported when there is phenomenon out of service with described destination service program.
Step 105: described error identification is represented in the corresponding way.
Concrete, described error identification can be represented with the modes such as screen lower right corner bullet window, sound, flicker or array mode in the present embodiment, occur that to point out destination service program described in user the reason of phenomenon out of service appears in phenomenon out of service and this destination service program.
From such scheme, the method for supervising that a kind of service routine that the embodiment of the present invention one provides runs can after startup destination service program, monitor this destination service program and whether be in run-stopping status, and then when destination service program is in run-stopping status, receive the error code information of described destination service program, and then based on the corresponding relation between the code pre-set and mark, find the error identification that this error code information is corresponding, and then show user, be different from the situation that user in prior art cannot learn operation exception in time and cannot learn abnormal cause, the present embodiment also can clearly notify that service routine out of service and its reason out of service appear in user by the error identification shown in time in time, realize the running status of effective monitoring service routine thus.
With reference to figure 2, the realization flow figure of the method for supervising that a kind of service routine provided for the embodiment of the present invention two runs, wherein, after described step 101, described method can also comprise the following steps:
Step 106: triggered timer starts timing, the duration that described timer records reach Preset Time long time, perform step 107.
Wherein, it is long that described timer has Preset Time, and described Preset Time length can be arranged according to demand by software developer, such as 1 minute or two minutes, etc.
It should be noted that, described timer can adopt another thread to realize.
Step 107: detect described destination service program and whether be in run-stopping status, when described destination service program is in run-stopping status, performs step 108 and step 109.
Step 108: generate the second enabled instruction, described second enabled instruction is in order to restart described destination service program.
Step 109: trigger described timer and restart timing, the duration that described timer is again recorded reach default time long time, perform step 107.
That is, in the present embodiment, all whether can be in run-stopping status to described destination service program every described Preset Time length to detect, described destination service program can be restarted when the described destination service program of each discovery is in run-stopping status, re-start timing again, if and do not find that described destination service program is in run-stopping status, also timing can be re-started, circulation is carried out thus, to ensure when finding that phenomenon out of service appears in described destination service program, restart described target program in time, continue as user and corresponding service function is provided.
With reference to figure 3, the realization flow figure of the method for supervising that a kind of service routine provided for the embodiment of the present invention three runs, wherein, described step 102 monitor described destination service program be in run-stopping status time, described method can also comprise the following steps:
Step 110: generate the 3rd enabled instruction.
Wherein, described 3rd enabled instruction is restarted in order to trigger described destination service program.
That is, except realizing timing by timer in above-described embodiment, demand detection is restarted to described destination service program, also can when finding that described destination service program stopped runs, restart described destination service program at once, provide corresponding service function for user in time further.
With reference to figure 4, the realization flow figure of the method for supervising that a kind of service routine provided for the embodiment of the present invention four runs, wherein, described step 102 monitor described destination service program be in run-stopping status time, described method can also comprise the following steps:
Step 111: receive the 4th enabled instruction that user operation produces, and based on described 4th enabled instruction, trigger described destination service program and restart.
That is, the present embodiment can when finding that described destination service program is in run-stopping status, can respond user operation, such as, user is operated by the control in the interface that presents the present embodiment, to make the present embodiment respond this operation, generates described 4th enabled instruction, restart described destination service program according to the demand of user thus, continue as user and corresponding service function is provided.
With reference to figure 5, the realization flow figure of the method for supervising that a kind of service routine provided for the embodiment of the present invention five runs, wherein, in described step 101 based on the first enabled instruction generated, after starting destination service program, described method can also comprise the following steps:
Step 112: monitor described destination service program and whether start failure, if failure, performs step 113.
Step 113: generate the 5th enabled instruction, restart to trigger described destination service program, return and perform described step 112 and continue to monitor the destination service program of restarting and whether start failure, until the number of starts of described destination service program reaches default threshold value, perform step 114.
It should be noted that, the number of starts of described destination service program here, comprises the number of times that it is restarted, and that is, counts, the number of times that described destination service program is activated from the present embodiment first time starting described destination service program.
Wherein, described threshold value can be arranged according to user's request or system performance, and such as, described threshold value can be 3, and that is, the present embodiment reaches 3 times in the described destination service program of startup, when still cannot start described target program, performs step 114.
Step 114: generate information, described information cannot start in order to point out described destination service program.
Wherein, described information can by playing window, the mode of sound or flicker points out destination service program described in user to start.
With reference to figure 6, the structural representation of the supervising device that a kind of service routine provided for the embodiment of the present invention six runs, wherein, described device goes for the operation monitoring to various service routine, the service routine etc. that service routine or Java command line mode as tomcat trustship run, the device in the present embodiment can utilize the technology of multi-thread concurrent to monitor in real time multiple service routine equally simultaneously.
In the present embodiment, described device can comprise following structure:
Program start unit 601, for based on the first enabled instruction generated, starts destination service program.
Wherein, the destination service program started in the present embodiment is in running background, that is, not display on the display interface that user can watch, user can observe the monitor state of described destination service program according to the monitoring interface of the present embodiment.
Stopping monitoring means 602, whether being in run-stopping status for monitoring described destination service program, when monitoring described destination service program and being in run-stopping status, trigger erroneous receiving element 603.
Wherein, monitor described destination service program in the present embodiment and whether be in run-stopping status, refer to, Real-Time Monitoring is carried out to the operation of described destination service program, running status once described destination service program occurs extremely causing running, and namely triggers described garbled-reception unit 603.
Concrete, by arranging interface code in described destination service program, described destination service program can be monitored by this interface code and whether being in run-stopping status in the present embodiment.
Garbled-reception unit 603, for receiving the error code information that described destination service program exports.
That is, when described destination service program is in run-stopping status, corresponding error code information can be exported, this error code information is for the less user even not having development Experience of Experiences in Developing Software, be unclear, user cannot learn that from this error code information the reason of phenomenon out of service appears in described destination service program.
Mark determining unit 604, for according to the corresponding relation between the error code preset and error identification, determines the error identification corresponding with described error code information.
Wherein, described corresponding relation can be presented by relation list, specifically can be arranged in advance by software developer, carry out mark to the various error code that may occur to arrange, each error code has an error identification corresponding, here error identification is to domestic consumer, can learn that the reason of phenomenon out of service appears in described destination service program thus, thus, utilize this corresponding relation in the present embodiment, find the error identification corresponding to error code information exported when there is phenomenon out of service with described destination service program.
Mark represents unit 605, for being represented in the corresponding way by described error identification.
Concrete, described error identification can be represented with the modes such as screen lower right corner bullet window, sound, flicker or array mode in the present embodiment, occur that to point out destination service program described in user the reason of phenomenon out of service appears in phenomenon out of service and this destination service program.
From such scheme, the supervising device that a kind of service routine that the embodiment of the present invention six provides runs can after startup destination service program, monitor this destination service program and whether be in run-stopping status, and then when destination service program is in run-stopping status, receive the error code information of described destination service program, and then based on the corresponding relation between the code pre-set and mark, find the error identification that this error code information is corresponding, and then show user, be different from the situation that user in prior art cannot learn operation exception in time and cannot learn abnormal cause, the present embodiment also can clearly notify that service routine out of service and its reason out of service appear in user by the error identification shown in time in time, realize the running status of effective monitoring service routine thus.
With reference to figure 7, the structural representation of the supervising device that a kind of service routine provided for the embodiment of the present invention seven runs, wherein, described device can also comprise following structure:
Timing trigger element 606, after starting described destination service program at described program start unit 601, triggered timer starts timing, and it is long that described timer has Preset Time, the duration that described timer records reach described Preset Time long time, trigger stop detection unit 607.
Wherein, described Preset Time length can be arranged according to demand by software developer, such as 1 minute or two minutes, etc.
Stop detection unit 607, whether run-stopping status is in for detecting described destination service program, if when described destination service program is in run-stopping status, unit 608 is restarted in triggering first and timer restarts unit 609, if described destination service program is in running status, triggers described timer and restart unit 609.
First restarts unit 608, and for generating the second enabled instruction, described second enabled instruction is in order to restart described destination service program.
Timer restarts unit 609, restarts timing for triggering described timer.
That is, in the present embodiment, all whether can be in run-stopping status to described destination service program every described Preset Time length to detect, described destination service program can be restarted when the described destination service program of each discovery is in run-stopping status, re-start timing again, if and do not find that described destination service program is in run-stopping status, also timing can be re-started, circulation is carried out thus, to ensure when finding that phenomenon out of service appears in described destination service program, restart described target program in time, continue as user and corresponding service function is provided.
With reference to figure 8, the structural representation of the supervising device that a kind of service routine provided for the embodiment of the present invention eight runs, wherein, described device can also comprise following structure:
Second restarts unit 610, for monitor at described stopping monitoring means 602 described destination service program be in run-stopping status time, generate the 3rd enabled instruction, described 3rd enabled instruction is restarted in order to trigger described destination service program.
That is, except realizing timing by timer in above-described embodiment, demand detection is restarted to described destination service program, also can when finding that described destination service program stopped runs, restart described destination service program at once, provide corresponding service function for user in time further.
With reference to figure 9, the structural representation of the supervising device that a kind of service routine provided for the embodiment of the present invention nine runs, wherein, described device can also comprise following structure:
3rd restarts unit 611, for monitor at described stopping monitoring means 602 described destination service program be in run-stopping status time, receive the 4th enabled instruction that user operation produces, and based on described 4th enabled instruction, trigger described destination service program and restart.
That is, the present embodiment can when finding that described destination service program is in run-stopping status, can respond user operation, such as, user is operated by the control in the interface that presents the present embodiment, to make the present embodiment respond this operation, generates described 4th enabled instruction, restart described destination service program according to the demand of user thus, continue as user and corresponding service function is provided.
With reference to Figure 10, the structural representation of the supervising device that a kind of service routine provided for the embodiment of the present invention ten runs, wherein, described device can also comprise following structure:
Start monitoring means 612, after starting destination service program at described program start unit 601, monitor described destination service program and whether start failure, if failure, trigger the 4th and restart unit 613.
4th restarts unit 613, for generating the 5th enabled instruction, restart to trigger described destination service program, trigger described startup monitoring means 612 to continue to monitor the destination service program of restarting and whether start failure, until the number of starts of described destination service program reaches default threshold value, trigger and start Tip element 614.
It should be noted that, the number of starts of described destination service program here, comprises the number of times that it is restarted, and that is, counts, the number of times that described destination service program is activated from the present embodiment first time starting described destination service program.
Wherein, described threshold value can be arranged according to user's request or system performance, such as, described threshold value can be 3, and that is, the present embodiment reaches 3 times in the described destination service program of startup, when still cannot start described target program, trigger described startup Tip element 614.
Start Tip element 614, for generating information, described information cannot start in order to point out described destination service program.
Wherein, described information can by playing window, the mode of sound or flicker points out destination service program described in user to start.
If the function described in the present embodiment method using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computing equipment read/write memory medium.Based on such understanding, the part of the part that the embodiment of the present application contributes to prior art or this technical scheme can embody with the form of software product, this software product is stored in a storage medium, comprising some instructions in order to make a computing equipment (can be personal computer, server, mobile computing device or the network equipment etc.) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiment, between each embodiment same or similar part mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the application.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a method for supervising for service routine operation, is characterized in that, comprising:
Based on the first enabled instruction generated, start destination service program, wherein, the destination service program of startup is in running background;
Monitor described destination service program and whether be in run-stopping status;
When monitoring described destination service program and being in run-stopping status, receive the error code information that described destination service program exports;
According to the corresponding relation between the error code preset and error identification, determine the error identification corresponding with described error code information;
Described error identification is represented in the corresponding way.
2. method according to claim 1, is characterized in that, in the first enabled instruction based on generation, after starting destination service program, described method also comprises:
Triggered timer starts timing, and it is long that described timer has Preset Time;
The duration that described timer records reach described Preset Time long time, detect described destination service program and whether be in run-stopping status;
If when described destination service program is in run-stopping status, generate the second enabled instruction and trigger described timer and restart timing, the duration that described timer records again reach described Preset Time long time, perform the described destination service program of described detection and whether be in run-stopping status, described second enabled instruction is in order to restart described destination service program;
If when described target program is in running status, triggers described timer and restart timing, the duration that described timer records again reach described Preset Time long time, perform the described destination service program of described detection and whether be in run-stopping status.
3. method according to claim 1 and 2, is characterized in that, when monitoring described destination service program and being in run-stopping status, described method also comprises:
Generate the 3rd enabled instruction, described 3rd enabled instruction is restarted in order to trigger described destination service program.
4. method according to claim 1 and 2, is characterized in that, when monitoring described destination service program and being in run-stopping status, described method also comprises:
Receive the 4th enabled instruction that user operation produces, and based on described 4th enabled instruction, trigger described destination service program and restart.
5. method according to claim 1, is characterized in that, in the first enabled instruction based on generation, after starting destination service program, described method also comprises:
Monitor described destination service program and whether start failure, if failure, generate the 5th enabled instruction, restart to trigger described destination service program, continue to monitor the destination service program of restarting and whether start failure, until the number of starts of described destination service program reaches default threshold value, generate information, described information cannot start in order to point out described destination service program.
6. a supervising device for service routine operation, is characterized in that, comprising:
Program start unit, for the first enabled instruction based on generation, start destination service program, wherein, the destination service program of startup is in running background;
Stopping monitoring means, whether being in run-stopping status for monitoring described destination service program, when monitoring described destination service program and being in run-stopping status, trigger erroneous receiving element;
Garbled-reception unit, for receiving the error code information that described destination service program exports;
Mark determining unit, for according to the corresponding relation between the error code preset and error identification, determines the error identification corresponding with described error code information;
Mark represents unit, for being represented in the corresponding way by described error identification.
7. device according to claim 6, is characterized in that, also comprises:
Timing trigger element, after starting described destination service program at described program start unit, triggered timer starts timing, and it is long that described timer has Preset Time, the duration that described timer records reach described Preset Time long time, trigger stop detection unit;
Stop detection unit, whether run-stopping status is in for detecting described destination service program, if when described destination service program is in run-stopping status, unit is restarted in triggering first and timer restarts unit, if described destination service program is in running status, triggers described timer and restart unit;
First restarts unit, and for generating the second enabled instruction, described second enabled instruction is in order to restart described destination service program;
Timer restarts unit, restarts timing for triggering described timer.
8. the device according to claim 6 or 7, is characterized in that, also comprises:
Second restarts unit, for monitor at described stopping monitoring means described destination service program be in run-stopping status time, generate the 3rd enabled instruction, described 3rd enabled instruction is restarted in order to trigger described destination service program.
9. the device according to claim 6 or 7, is characterized in that, also comprises:
3rd restarts unit, for monitor at described stopping monitoring means described destination service program be in run-stopping status time, receive the 4th enabled instruction that user operation produces, and based on described 4th enabled instruction, trigger described destination service program and restart.
10. device according to claim 6, is characterized in that, also comprises:
Start monitoring means, after starting destination service program at described program start unit, monitor described destination service program and whether start failure, if failure, trigger the 4th and restart unit, continue to monitor the destination service program of restarting and whether start failure, until the number of starts of described destination service program reaches default threshold value, trigger and start Tip element;
4th restarts unit, for generating the 5th enabled instruction, restarts to trigger described destination service program;
Start Tip element, for generating information, described information cannot start in order to point out described destination service program.
CN201510920956.8A 2015-12-11 2015-12-11 Monitoring method for running of service program and device Pending CN105354131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510920956.8A CN105354131A (en) 2015-12-11 2015-12-11 Monitoring method for running of service program and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510920956.8A CN105354131A (en) 2015-12-11 2015-12-11 Monitoring method for running of service program and device

Publications (1)

Publication Number Publication Date
CN105354131A true CN105354131A (en) 2016-02-24

Family

ID=55330105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510920956.8A Pending CN105354131A (en) 2015-12-11 2015-12-11 Monitoring method for running of service program and device

Country Status (1)

Country Link
CN (1) CN105354131A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930215A (en) * 2016-04-07 2016-09-07 珠海市魅族科技有限公司 Control method and control device for mobile terminal
WO2017190575A1 (en) * 2016-05-03 2017-11-09 阿里巴巴集团控股有限公司 Driver control method and device
CN107729213A (en) * 2017-10-11 2018-02-23 杭州迪普科技股份有限公司 A kind of background task monitoring method and device
CN109491771A (en) * 2018-09-26 2019-03-19 平安医疗健康管理股份有限公司 Task processing method and relevant device based on system function optimization
CN109582321A (en) * 2018-10-26 2019-04-05 广州众诺电子技术有限公司 A kind of method for burn-recording, system and computer readable storage medium
CN110347434A (en) * 2019-05-31 2019-10-18 口碑(上海)信息技术有限公司 A kind of processing method and device for calculating equipment application
CN110519554A (en) * 2018-05-22 2019-11-29 视联动力信息技术股份有限公司 Monitor and detection method and apparatus
CN111367720A (en) * 2020-03-04 2020-07-03 北京字节跳动网络技术有限公司 Data protection method and device, electronic equipment and computer readable storage medium
CN111599204A (en) * 2020-04-16 2020-08-28 维沃移动通信有限公司 Arrival reminding method and electronic equipment
CN111782515A (en) * 2020-06-23 2020-10-16 深圳市华宇讯科技有限公司 Web application state detection method and device, server and storage medium
CN111984452A (en) * 2020-08-26 2020-11-24 网易(杭州)网络有限公司 Program failure detection method, program failure detection device, electronic device, and storage medium
CN112306749A (en) * 2020-10-26 2021-02-02 珠海格力电器股份有限公司 Service processing method and device in control system and control system
CN113220796A (en) * 2020-01-21 2021-08-06 北京达佳互联信息技术有限公司 Abnormal business index analysis method and device
WO2021174837A1 (en) * 2020-03-04 2021-09-10 平安科技(深圳)有限公司 Breakpoint monitoring method and apparatus based on integral service link, and terminal and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326139A (en) * 2000-05-29 2001-12-12 华硕电脑股份有限公司 System state indicating lamp embedded in connection port
CN101727378A (en) * 2009-12-31 2010-06-09 深圳联友科技有限公司 Method and system for controlling stable operation of application service program
CN101739327A (en) * 2008-11-07 2010-06-16 北大方正集团有限公司 Method and system for monitoring and repairing service process
CN101771563A (en) * 2008-12-30 2010-07-07 北大方正集团有限公司 Method for monitoring network service program
CN102819480A (en) * 2011-06-08 2012-12-12 联想(北京)有限公司 Computer and method for monitoring memory thereof
CN102866932A (en) * 2011-11-14 2013-01-09 新游游戏株式会社 Method and device for providing and collecting data related to abnormal terminal
CN102946468A (en) * 2012-10-18 2013-02-27 广东欧珀移动通信有限公司 Automatic mobile phone operating program abnormality alarming method and system
CN103019913A (en) * 2012-11-21 2013-04-03 广东欧珀移动通信有限公司 Abnormal prompting method and system for mobile terminals and hardware thereof
CN103092736A (en) * 2011-11-08 2013-05-08 北大方正集团有限公司 Method and device for service program monitoring
CN103744727A (en) * 2014-01-16 2014-04-23 Tcl集团股份有限公司 Service starting method, device and intelligent equipment
CN103870747A (en) * 2014-03-31 2014-06-18 可牛网络技术(北京)有限公司 Method and device for monitoring and processing application program
CN104750747A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Method and system for converting error messages into error prompt

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326139A (en) * 2000-05-29 2001-12-12 华硕电脑股份有限公司 System state indicating lamp embedded in connection port
CN101739327A (en) * 2008-11-07 2010-06-16 北大方正集团有限公司 Method and system for monitoring and repairing service process
CN101771563A (en) * 2008-12-30 2010-07-07 北大方正集团有限公司 Method for monitoring network service program
CN101727378A (en) * 2009-12-31 2010-06-09 深圳联友科技有限公司 Method and system for controlling stable operation of application service program
CN102819480A (en) * 2011-06-08 2012-12-12 联想(北京)有限公司 Computer and method for monitoring memory thereof
CN103092736A (en) * 2011-11-08 2013-05-08 北大方正集团有限公司 Method and device for service program monitoring
CN102866932A (en) * 2011-11-14 2013-01-09 新游游戏株式会社 Method and device for providing and collecting data related to abnormal terminal
CN102946468A (en) * 2012-10-18 2013-02-27 广东欧珀移动通信有限公司 Automatic mobile phone operating program abnormality alarming method and system
CN103019913A (en) * 2012-11-21 2013-04-03 广东欧珀移动通信有限公司 Abnormal prompting method and system for mobile terminals and hardware thereof
CN104750747A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Method and system for converting error messages into error prompt
CN103744727A (en) * 2014-01-16 2014-04-23 Tcl集团股份有限公司 Service starting method, device and intelligent equipment
CN103870747A (en) * 2014-03-31 2014-06-18 可牛网络技术(北京)有限公司 Method and device for monitoring and processing application program

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930215A (en) * 2016-04-07 2016-09-07 珠海市魅族科技有限公司 Control method and control device for mobile terminal
WO2017190575A1 (en) * 2016-05-03 2017-11-09 阿里巴巴集团控股有限公司 Driver control method and device
CN107729213A (en) * 2017-10-11 2018-02-23 杭州迪普科技股份有限公司 A kind of background task monitoring method and device
CN107729213B (en) * 2017-10-11 2022-04-26 杭州迪普科技股份有限公司 Background task monitoring method and device
CN110519554A (en) * 2018-05-22 2019-11-29 视联动力信息技术股份有限公司 Monitor and detection method and apparatus
CN109491771A (en) * 2018-09-26 2019-03-19 平安医疗健康管理股份有限公司 Task processing method and relevant device based on system function optimization
CN109491771B (en) * 2018-09-26 2023-07-11 深圳平安医疗健康科技服务有限公司 Task processing method based on system performance optimization and related equipment
CN109582321A (en) * 2018-10-26 2019-04-05 广州众诺电子技术有限公司 A kind of method for burn-recording, system and computer readable storage medium
CN110347434A (en) * 2019-05-31 2019-10-18 口碑(上海)信息技术有限公司 A kind of processing method and device for calculating equipment application
CN113220796A (en) * 2020-01-21 2021-08-06 北京达佳互联信息技术有限公司 Abnormal business index analysis method and device
WO2021174837A1 (en) * 2020-03-04 2021-09-10 平安科技(深圳)有限公司 Breakpoint monitoring method and apparatus based on integral service link, and terminal and storage medium
CN111367720A (en) * 2020-03-04 2020-07-03 北京字节跳动网络技术有限公司 Data protection method and device, electronic equipment and computer readable storage medium
CN111599204A (en) * 2020-04-16 2020-08-28 维沃移动通信有限公司 Arrival reminding method and electronic equipment
CN111782515A (en) * 2020-06-23 2020-10-16 深圳市华宇讯科技有限公司 Web application state detection method and device, server and storage medium
CN111984452A (en) * 2020-08-26 2020-11-24 网易(杭州)网络有限公司 Program failure detection method, program failure detection device, electronic device, and storage medium
CN112306749A (en) * 2020-10-26 2021-02-02 珠海格力电器股份有限公司 Service processing method and device in control system and control system

Similar Documents

Publication Publication Date Title
CN105354131A (en) Monitoring method for running of service program and device
CN102446104B (en) The method starting computer system
CN103744764A (en) Crontab based whole computer memory stability test method
CN114064132B (en) Method, device, equipment and system for recovering system downtime
JP2006107430A (en) Method, system and device for identification of no response section of computer program
CN103268277A (en) Method and system for outputting log information
US11662803B2 (en) Control method, apparatus, and electronic device
US8788238B2 (en) System and method for testing power supplies of server
CN110908947A (en) Hot plug method and device for frame type equipment line card, main control board and frame type equipment
CN109741786A (en) A kind of solid state hard disk monitoring method, device and equipment
CN111371642B (en) Network card fault detection method, device, equipment and storage medium
CN103970616A (en) Data recovery system and method
CN113672918A (en) Malicious code detection method and device, storage medium and electronic equipment
CN101206599A (en) Method for diagnosis and insulation of computer mainboard equipment
CN109922014B (en) Method and system for judging cold and hot start of switch
CN101140540B (en) Method and system for detecting automatic monitoring magnetic array
JPH07113898B2 (en) Failure detection method
CN106326049B (en) A kind of Fault Locating Method and terminal
CN109634796A (en) A kind of method for diagnosing faults of computer, apparatus and system
JP2007233915A (en) Disk array controller, error monitoring method and program
JP2012108848A (en) Operation log collection system and program
CN110647419A (en) Fault detection method and device, computer storage medium and terminal
CN113900843B (en) Detection repair method, device, equipment and readable storage medium
CN102541597B (en) A kind of subscriber equipment starting method and subscriber equipment
EP3942903B1 (en) Diagnosing a problem occurring when controlling a lighting device based on lighting device grouping information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224

RJ01 Rejection of invention patent application after publication