CN105095046A - Method and device for task monitoring - Google Patents

Method and device for task monitoring Download PDF

Info

Publication number
CN105095046A
CN105095046A CN201510412127.9A CN201510412127A CN105095046A CN 105095046 A CN105095046 A CN 105095046A CN 201510412127 A CN201510412127 A CN 201510412127A CN 105095046 A CN105095046 A CN 105095046A
Authority
CN
China
Prior art keywords
task
monitoring process
heartbeat
monitoring
reboot operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510412127.9A
Other languages
Chinese (zh)
Other versions
CN105095046B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510412127.9A priority Critical patent/CN105095046B/en
Publication of CN105095046A publication Critical patent/CN105095046A/en
Application granted granted Critical
Publication of CN105095046B publication Critical patent/CN105095046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and device for task monitoring. The method comprises following steps: starting a monitoring process and utilizing the monitoring process to monitor heart beat of tasks; carrying out re-starting operation on tasks when no heart beat of tasks is monitored during a monitoring process; and utilizing the monitoring process to continuously monitor heart beat of tasks after task restarting is finished. The method and device for task monitoring have following beneficial effects: the time spent on switching tasks is shortened; and operation time for operation of tasks is reduced in case of problems for operation of tasks so that user experience is improved.

Description

The method of Mission Monitor and device
Technical field
The present invention relates to the communication technology, be specifically related to a kind of method and device of Mission Monitor.
Background technology
In prior art, task operating in equipment is monitored, when task operating go wrong cannot normally run time, after a fixed response time, proceed in task switch in current device to alternate device.Under normal circumstances, monitoring needs task in long period discovering device to break down.Afterwards, finish the work in the switching of equipment room through the long period again.
Therefore, there is the problem of task switch overlong time used in prior art, and then when causing task run to go wrong, the time of normal service cannot be provided longer, reduce Consumer's Experience.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the method for Mission Monitor solved the problem at least in part and device.
According to one aspect of the present invention, provide a kind of method of Mission Monitor, described method comprises:
Start monitoring process, usage monitoring process monitors the heartbeat of task;
When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to described task;
After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
Alternatively, described startup monitoring process, usage monitoring process monitors the heartbeat of task, specifically comprises:
Usage monitoring process regularly sends request to task, obtains the heartbeat that described task is replied according to described request;
After monitoring process receives the heartbeat of described task, determine that described task operating is normal.
Alternatively, described when monitoring process does not listen to the heartbeat of task, reboot operation is carried out to described task, specifically comprises:
When monitoring process is after sending request to task, when not receiving the heartbeat of task, determine that described task breaks down;
Reboot operation is carried out to breaking down of task.
Alternatively, the described task to breaking down carries out reboot operation, specifically comprises:
Instruction monitoring process starts monitoring subprocess, and usage monitoring subprocess carries out reboot operation to the task of sending fault.
Alternatively, described method also comprises:
After monitoring subprocess completes the reboot operation to the task of sending fault, indicate described monitoring subprocess out of service.
Alternatively, described task has been restarted after, usage monitoring process continues to monitor the heartbeat of described task, specifically comprises:
After monitoring process detects that monitoring subprocess is out of service, determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
Alternatively, start monitoring process, usage monitoring process monitors the heartbeat of described task transmission according to task respective frequencies;
Described task respective frequencies is directly proportional to the urgency level of described task.
Alternatively, described usage monitoring process monitors the heartbeat of described task transmission according to task respective frequencies, specifically comprises:
Usage monitoring process regularly sends request to described task by task respective frequencies, obtains the heartbeat that described task is replied according to described request.
According to a further aspect in the invention, provide the device of Mission Monitor, described device comprises: monitor module and restart module;
Describedly restart module, be suitable for carrying out reboot operation to described task;
Described monitoring module, be suitable for starting monitoring process, usage monitoring process monitors the heartbeat of task; When monitoring process does not listen to the heartbeat of task, restart module described in instruction and reboot operation is carried out to described task; After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
Alternatively, monitor module, be specifically suitable for usage monitoring process and regularly send request to task, obtain the heartbeat that described task is replied according to described request; After monitoring process receives the heartbeat of described task, determine that described task operating is normal.
Alternatively, monitor module, be specifically suitable for when monitoring process is after sending request to task, when not receiving the heartbeat of task, determine that described task breaks down; Restart module described in instruction and reboot operation is carried out to breaking down of task.
Alternatively, restart module, be specifically suitable for instruction monitoring process and start monitoring subprocess, usage monitoring subprocess carries out reboot operation to the task of sending fault.
Alternatively, restart module, be also suitable for, after monitoring subprocess completes the reboot operation to the task of sending fault, indicating described monitoring subprocess out of service.
Alternatively, monitoring module is specifically suitable for after monitoring process detects that monitoring subprocess is out of service, and determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
Alternatively, described monitoring module, be specifically suitable for starting monitoring process, usage monitoring process monitors the heartbeat of described task transmission according to task respective frequencies;
Described task respective frequencies is directly proportional to the urgency level of described task.
Alternatively, described monitoring module, is specifically suitable for usage monitoring process and regularly sends request to described task by task respective frequencies, obtain the heartbeat that described task is replied according to described request.
According to technical scheme of the present invention, start monitoring process, monitor the heartbeat of task, when monitoring process does not listen to the heartbeat of task, carry out reboot operation to task, after having restarted task, usage monitoring process continues the heartbeat of monitoring task; Task is so avoided to switch at equipment room, when task run is gone wrong, can directly restart at local device, solve the problem of task switch overlong time used thus, achieve task run when going wrong, reduce recovery tasks and run duration used, improve the beneficial effect of Consumer's Experience.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the process flow diagram of the method for Mission Monitor according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of the method monitoring task heartbeat according to an embodiment of the invention;
Fig. 3 shows the process flow diagram of the method for restarting task according to an embodiment of the invention;
Fig. 4 shows the process flow diagram of the method for Mission Monitor according to an embodiment of the invention; And
Fig. 5 shows the structural drawing of the device of the Mission Monitor of embodiment according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
As shown in Figure 1, the process flow diagram of the method for Mission Monitor is according to an embodiment of the invention shown.The method can be used for various server, such as, in the network miscellaneous service server of service provider.As shown in Figure 1, the method comprises the steps S110-S130.
In step s 110, start monitoring process, usage monitoring process monitors the heartbeat of task.
For example, task operationally can open heartbeat (HeartBeat) interface, is provided for the heartbeat of keep-alive.Startup one is for the process of task in watch-dog in a device, i.e. monitoring process, monitors the heartbeat of task.Monitoring process can monitor the heartbeat of task by the heart beat interface of task.In addition, monitoring process can be monitored task one or more in equipment simultaneously.
In one embodiment, described startup monitoring process, usage monitoring process monitors the heartbeat of task, specifically comprises: start monitoring process, and usage monitoring process monitors the heartbeat of task transmission according to task respective frequencies.Described task respective frequencies is directly proportional to the urgency level of described task.
For example, described usage monitoring process monitors the heartbeat of task transmission according to task respective frequencies, can comprise: usage monitoring process regularly sends request to task by task respective frequencies, obtains the heartbeat that task is replied according to request.
Described usage monitoring process monitors the heartbeat of described task transmission according to task respective frequencies, also can comprise: usage monitoring process receives the heartbeat that task sends by respective frequencies.
So, monitoring process presses the heartbeat of frequency monitoring task corresponding to each task.Can be that monitoring process sends request to task by task respective frequencies, obtain the heartbeat that task is replied; May also be task and initiatively send heartbeat by respective frequencies, monitoring process receives this heartbeat.Different according to the emergency condition of task, for task configures different respective frequencies, corresponding different task can be monitored by different frequency, namely the emergency condition of corresponding task is different, monitors by different frequency task.
In one embodiment, as shown in Figure 2, described startup monitoring process, usage monitoring process monitors the heartbeat of task, specifically comprises step S112 and step S114.
In step S112, usage monitoring process regularly sends request to task, obtains the heartbeat that task is replied according to request.
In step S114, after monitoring process receives the heartbeat of task, determine that task operating is normal.
For example, usage monitoring process can send request by the heart beat interface of predetermined period multiple task in equipment, such as, adopt broadcast mode to send heartbeat to the heart beat interface of multiple task.Monitoring process receives the heartbeat that task heart beat interface returns, with task identification in the heartbeat that heart beat interface returns.After monitoring process receives heartbeat, by task identification in heartbeat, judge the task corresponding to heartbeat received.According to the situation of heartbeat received, each task whether normal operation in judgment device.If normally receive the heartbeat of task, then judge that this task run is normal.If do not receive the heartbeat of task in preset duration, then judge that this task run breaks down.
In the step s 120, when monitoring process does not listen to the heartbeat of task, reboot operation is carried out to task.
For example, when monitoring process does not listen to the heartbeat of task, judge that task run breaks down, now reboot operation is carried out to breaking down of task.
In one embodiment, as shown in Figure 3, described when monitoring process does not listen to the heartbeat of task, reboot operation is carried out to task, specifically comprises the steps.
In step S122, when monitoring process is after sending request to task, when not receiving the heartbeat of task, determine that task breaks down.
In step S124, reboot operation is carried out to the task of sending fault.
Further, in step S124, instruction monitoring process starts monitoring subprocess, and usage monitoring subprocess carries out reboot operation to the task of sending fault.
In addition, described method also comprises: after monitoring subprocess completes the reboot operation to the task of sending fault, and instruction monitoring subprocess is out of service.
In the present embodiment, monitoring process starts another monitoring subprocess and restarts breaking down of task, so, when restarting breaking down of task, do not affect the monitoring of monitoring process to other tasks, realize monitoring process and monitor while task multiple in equipment.
In step s 130, which, after having restarted task, usage monitoring process has continued the heartbeat of monitoring task.
In one embodiment, described task has been restarted after, usage monitoring process continues the heartbeat of monitoring task, specifically comprise: after monitoring process detects that monitoring subprocess is out of service, determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
In the present embodiment, by the running status of monitoring subprocess being detected, judging whether the reboot operation of breaking down of task is completed, making the detection of restarting task efficiently convenient, ensure after task is restarted, can monitor task in time.
Adopt technical scheme in the present embodiment, the task that avoids switches at equipment room, when task run is gone wrong, can directly restart at local device, solve the problem of task switch overlong time used thus, achieve task run when going wrong, reduce recovery tasks and run duration used, improve the beneficial effect of Consumer's Experience.
As shown in Figure 4, the process flow diagram of the method for Mission Monitor is according to an embodiment of the invention shown.The method can be used for various server, such as, in the network miscellaneous service server of service provider.As shown in Figure 4, the method comprises the steps S402-S412.
In step S402, start monitoring process, usage monitoring process regularly sends request to task, obtains the heartbeat of task.
In step s 404, after monitoring process receives the heartbeat of task, determine that task operating is normal.
In step S406, when monitoring process is after sending request to task, when not receiving the heartbeat of task, determine that task breaks down.
In step S408, instruction monitoring process starts monitoring subprocess, and usage monitoring subprocess carries out reboot operation to the task of sending fault.
In step S410, after monitoring subprocess completes the reboot operation to the task of sending fault, instruction monitoring subprocess is out of service.
In step S412, after monitoring process detects that monitoring subprocess is out of service, determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
Adopt technical scheme in the present embodiment, the task that avoids switches at equipment room, when task run is gone wrong, can directly restart at local device, solve the problem of task switch overlong time used thus, achieve task run when going wrong, reduce recovery tasks and run duration used, improve the beneficial effect of Consumer's Experience.
The exemplary that above are only the method for Mission Monitor of the present invention illustrates, the present invention is not limited thereto.All do within spirit of the present invention or principle any amendment, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
As shown in Figure 5, the structural drawing of the device of Mission Monitor is according to an embodiment of the invention shown.This device can be used for various server, such as, in the network miscellaneous service server of service provider.As shown in Figure 5, this device comprises monitoring module 510 and restarts module 520.
Restart module 520, be suitable for carrying out reboot operation to task;
Monitor module 510, be suitable for starting monitoring process, usage monitoring process monitors the heartbeat of task; When monitoring process does not listen to the heartbeat of task, instruction is restarted module 520 pairs of tasks and is carried out reboot operation; After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
For example, task operationally can open heartbeat (HeartBeat) interface, is provided for the heartbeat of keep-alive.Monitor module 510 and start one for the process of task in watch-dog, i.e. monitoring process, monitors the heartbeat of task.Monitoring process can monitor the heartbeat of task by the heart beat interface of task.In addition, monitoring process can be monitored task one or more in equipment simultaneously.
Monitor module 510 can usage monitoring process send request by the heart beat interface of predetermined period multiple task in equipment, such as, adopt broadcast mode to send heartbeat to the heart beat interface of multiple task.Monitoring process receives the heartbeat that task heart beat interface returns, with task identification in the heartbeat that heart beat interface returns.After monitoring process receives heartbeat, by task identification in heartbeat, judge the task corresponding to heartbeat received.According to the situation of heartbeat received, each task whether normal operation in judgment device.If normally receive the heartbeat of task, then judge that this task run is normal.If do not receive the heartbeat of task in preset duration, then judge that this task run breaks down.
When monitoring process does not listen to the heartbeat of task, judge that task run breaks down, now monitor module 510 instruction and restart module 520 reboot operation is carried out to breaking down of task.
In one embodiment, monitor module 510, be specifically suitable for usage monitoring process and regularly send request to task, obtain the heartbeat that task is replied according to request; After monitoring process receives the heartbeat of described task, determine that task operating is normal.
In one embodiment, monitor module 510, be specifically suitable for, when monitoring process is after sending request to task, when not receiving the heartbeat of task, determining that task breaks down; Instruction is restarted module 520 and is carried out reboot operation to breaking down of task.
In one embodiment, restart module 520, be specifically suitable for instruction monitoring process and start monitoring subprocess, usage monitoring subprocess carries out reboot operation to the task of sending fault.
In one embodiment, restart module 520, be also suitable for after monitoring subprocess completes the reboot operation to the task of sending fault, instruction monitoring subprocess is out of service.
In one embodiment, monitoring module 510 is specifically suitable for after monitoring process detects that monitoring subprocess is out of service, and determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
In one embodiment, monitor module 510, be specifically suitable for starting monitoring process, usage monitoring process monitors the heartbeat of described task transmission according to task respective frequencies.Task respective frequencies is directly proportional to the urgency level of task.
Further, monitor module 510, be specifically suitable for usage monitoring process and regularly send request to described task by task respective frequencies, obtain the heartbeat that described task is replied according to described request.
Monitor module 510, also can be suitable for the heartbeat that usage monitoring process sends by respective frequencies by task respective frequencies reception task.
So, the heartbeat that module 510 usage monitoring process presses frequency monitoring task corresponding to each task is monitored.Can be monitor module 510 usage monitoring process and send request to task by task respective frequencies, obtain the heartbeat that task is replied; May also be task and initiatively send heartbeat by respective frequencies, monitor module 510 usage monitoring process and receive this heartbeat.Different according to the emergency condition of task, for task configures different respective frequencies, corresponding different task can be monitored by different frequency, namely the emergency condition of corresponding task is different, monitors by different frequency task.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Adopt technical scheme in the present embodiment, the task that avoids switches at equipment room, when task run is gone wrong, can directly restart at local device, solve the problem of task switch overlong time used thus, achieve task run when going wrong, reduce recovery tasks and run duration used, improve the beneficial effect of Consumer's Experience.
The present invention also comprises following technical scheme:
A kind of method of A1, Mission Monitor, described method comprises:
Start monitoring process, usage monitoring process monitors the heartbeat of task;
When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to described task;
After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
A2, method according to A1, wherein, described startup monitoring process, usage monitoring process monitors the heartbeat of task, specifically comprises:
Usage monitoring process regularly sends request to task, obtains the heartbeat that described task is replied according to described request;
After monitoring process receives the heartbeat of described task, determine that described task operating is normal.
A3, method according to A2, wherein, described when monitoring process does not listen to the heartbeat of task, reboot operation is carried out to described task, specifically comprises:
When monitoring process is after sending request to task, when not receiving the heartbeat of task, determine that described task breaks down;
Reboot operation is carried out to breaking down of task.
A4, method according to A3, wherein, the described task to breaking down carries out reboot operation, specifically comprises:
Instruction monitoring process starts monitoring subprocess, and usage monitoring subprocess carries out reboot operation to the task of sending fault.
A5, method according to A4, wherein, described method also comprises:
After monitoring subprocess completes the reboot operation to the task of sending fault, indicate described monitoring subprocess out of service.
A6, method according to A5, wherein, described task has been restarted after, usage monitoring process continues the heartbeat of monitoring described task, specifically comprises:
After monitoring process detects that monitoring subprocess is out of service, determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
A7, method according to A1, wherein, described startup monitoring process, usage monitoring process monitors the heartbeat of task, specifically comprises:
Start monitoring process, usage monitoring process monitors the heartbeat of described task transmission according to task respective frequencies;
Described task respective frequencies is directly proportional to the urgency level of described task.
A8, method according to A7, wherein, described usage monitoring process monitors according to task respective frequencies the heartbeat that described task sends, and specifically comprises:
Usage monitoring process regularly sends request to described task by task respective frequencies, obtains the heartbeat that described task is replied according to described request.
The device of B9, a kind of Mission Monitor, described device comprises: monitor module and restart module;
Describedly restart module, be suitable for carrying out reboot operation to described task;
Described monitoring module, be suitable for starting monitoring process, usage monitoring process monitors the heartbeat of task; When monitoring process does not listen to the heartbeat of task, restart module described in instruction and reboot operation is carried out to described task; After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
B10, device according to B9, wherein, described monitoring module, is specifically suitable for usage monitoring process and regularly sends request to task, obtain the heartbeat that described task is replied according to described request; After monitoring process receives the heartbeat of described task, determine that described task operating is normal.
B11, device according to B10, wherein, described monitoring module, is specifically suitable for when monitoring process is after sending request to task, when not receiving the heartbeat of task, determines that described task breaks down; Restart module described in instruction and reboot operation is carried out to breaking down of task.
B12, device according to B11, wherein, described in restart module, be specifically suitable for instruction monitoring process and start monitoring subprocess, usage monitoring subprocess carries out reboot operation to the task of sending fault.
B13, device according to B12, wherein, described in restart module, be also suitable for, after monitoring subprocess completes the reboot operation to the task of sending fault, indicating described monitoring subprocess out of service.
B14, device according to B13, wherein, described monitoring module is specifically suitable for after monitoring process detects that monitoring subprocess is out of service, and determine to complete the reboot operation of breaking down of task, usage monitoring process monitors the heartbeat of the task after restarting.
B15, device according to B9, wherein, described monitoring module, is specifically suitable for starting monitoring process, and usage monitoring process monitors according to task respective frequencies the heartbeat that described task sends;
Described task respective frequencies is directly proportional to the urgency level of described task.
B16, device according to B15, wherein, described monitoring module, is specifically suitable for usage monitoring process and regularly sends request to described task by task respective frequencies, obtain the heartbeat that described task is replied according to described request.
It should be noted that:
Intrinsic not relevant to any certain computer, virtual bench or miscellaneous equipment with display at this algorithm provided.Various fexible unit also can with use based on together with this teaching.According to description above, the structure constructed required by this kind of device is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of the Mission Monitor of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (10)

1. a method for Mission Monitor, described method comprises:
Start monitoring process, usage monitoring process monitors the heartbeat of task;
When monitoring process does not listen to the heartbeat of task, reboot operation is carried out to described task;
After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
2. method according to claim 1, wherein, described startup monitoring process, usage monitoring process monitors the heartbeat of task, specifically comprises:
Usage monitoring process regularly sends request to task, obtains the heartbeat that described task is replied according to described request;
After monitoring process receives the heartbeat of described task, determine that described task operating is normal.
3. method according to claim 2, wherein, described when monitoring process does not listen to the heartbeat of task, reboot operation is carried out to described task, specifically comprises:
When monitoring process is after sending request to task, when not receiving the heartbeat of task, determine that described task breaks down;
Reboot operation is carried out to breaking down of task.
4. method according to claim 3, wherein, the described task to breaking down carries out reboot operation, specifically comprises:
Instruction monitoring process starts monitoring subprocess, and usage monitoring subprocess carries out reboot operation to the task of sending fault.
5. method according to claim 4, wherein, described method also comprises:
After monitoring subprocess completes the reboot operation to the task of sending fault, indicate described monitoring subprocess out of service.
6. a device for Mission Monitor, described device comprises: monitor module and restart module;
Describedly restart module, be suitable for carrying out reboot operation to described task;
Described monitoring module, be suitable for starting monitoring process, usage monitoring process monitors the heartbeat of task; When monitoring process does not listen to the heartbeat of task, restart module described in instruction and reboot operation is carried out to described task; After having restarted task, usage monitoring process has continued the heartbeat of monitoring described task.
7. device according to claim 6, wherein, described monitoring module, is specifically suitable for usage monitoring process and regularly sends request to task, obtain the heartbeat that described task is replied according to described request; After monitoring process receives the heartbeat of described task, determine that described task operating is normal.
8. device according to claim 7, wherein, described monitoring module, is specifically suitable for when monitoring process is after sending request to task, when not receiving the heartbeat of task, determines that described task breaks down; Restart module described in instruction and reboot operation is carried out to breaking down of task.
9. device according to claim 8, wherein, described in restart module, be specifically suitable for instruction monitoring process and start monitoring subprocess, usage monitoring subprocess carries out reboot operation to sending the task of fault.
10. device according to claim 9, wherein, described in restart module, be also suitable for monitoring subprocess complete to send fault task reboot operation after, indicate described monitoring subprocess out of service.
CN201510412127.9A 2015-07-14 2015-07-14 The method and device of Mission Monitor Active CN105095046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510412127.9A CN105095046B (en) 2015-07-14 2015-07-14 The method and device of Mission Monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510412127.9A CN105095046B (en) 2015-07-14 2015-07-14 The method and device of Mission Monitor

Publications (2)

Publication Number Publication Date
CN105095046A true CN105095046A (en) 2015-11-25
CN105095046B CN105095046B (en) 2019-03-05

Family

ID=54575542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510412127.9A Active CN105095046B (en) 2015-07-14 2015-07-14 The method and device of Mission Monitor

Country Status (1)

Country Link
CN (1) CN105095046B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553760A (en) * 2015-12-11 2016-05-04 中国科学院信息工程研究所 Heartbeat-based software module fault processing method and system
CN107729213A (en) * 2017-10-11 2018-02-23 杭州迪普科技股份有限公司 A kind of background task monitoring method and device
CN108427616A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 background program monitoring method and monitoring device
CN108694093A (en) * 2017-04-06 2018-10-23 迈普通信技术股份有限公司 Process exception monitoring method and device
CN108874618A (en) * 2018-05-04 2018-11-23 平安科技(深圳)有限公司 Monitoring method, device, computer equipment and the storage medium of Cognos process
CN109254894A (en) * 2018-08-20 2019-01-22 曙光信息产业(北京)有限公司 The heartbeat inspecting device and method of chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084377A1 (en) * 2001-10-31 2003-05-01 Parks Jeff A. Process activity and error monitoring system and method
CN101464811A (en) * 2008-12-29 2009-06-24 艾默生网络能源有限公司 Multitask monitoring management system
CN103246589A (en) * 2012-02-03 2013-08-14 京信通信系统(中国)有限公司 Multithread monitoring method and device
US20140013329A1 (en) * 2009-11-23 2014-01-09 International Business Machines Corporation Thread folding tool
CN104615497A (en) * 2015-02-13 2015-05-13 广州华多网络科技有限公司 Thread hanging processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030084377A1 (en) * 2001-10-31 2003-05-01 Parks Jeff A. Process activity and error monitoring system and method
CN101464811A (en) * 2008-12-29 2009-06-24 艾默生网络能源有限公司 Multitask monitoring management system
US20140013329A1 (en) * 2009-11-23 2014-01-09 International Business Machines Corporation Thread folding tool
CN103246589A (en) * 2012-02-03 2013-08-14 京信通信系统(中国)有限公司 Multithread monitoring method and device
CN104615497A (en) * 2015-02-13 2015-05-13 广州华多网络科技有限公司 Thread hanging processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ROBFARBER: "《高性能CUDA应用设计与开发方法与最佳实践》", 31 December 2013 *
飞思科技产品研发中心: "《Delphi下深入Windows核心编程》", 31 December 2003 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553760A (en) * 2015-12-11 2016-05-04 中国科学院信息工程研究所 Heartbeat-based software module fault processing method and system
CN105553760B (en) * 2015-12-11 2019-03-22 中国科学院信息工程研究所 A kind of software module fault handling method and system based on heartbeat
CN108427616A (en) * 2017-02-14 2018-08-21 腾讯科技(深圳)有限公司 background program monitoring method and monitoring device
CN108427616B (en) * 2017-02-14 2020-12-01 腾讯科技(深圳)有限公司 Background program monitoring method and monitoring device
CN108694093A (en) * 2017-04-06 2018-10-23 迈普通信技术股份有限公司 Process exception monitoring method and device
CN107729213A (en) * 2017-10-11 2018-02-23 杭州迪普科技股份有限公司 A kind of background task monitoring method and device
CN108874618A (en) * 2018-05-04 2018-11-23 平安科技(深圳)有限公司 Monitoring method, device, computer equipment and the storage medium of Cognos process
CN108874618B (en) * 2018-05-04 2022-03-18 平安科技(深圳)有限公司 Cognos process monitoring method and device, computer equipment and storage medium
CN109254894A (en) * 2018-08-20 2019-01-22 曙光信息产业(北京)有限公司 The heartbeat inspecting device and method of chip
CN109254894B (en) * 2018-08-20 2022-03-11 中科曙光信息产业成都有限公司 Device and method for monitoring heartbeat of chip

Also Published As

Publication number Publication date
CN105095046B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN105095046A (en) Method and device for task monitoring
CN108829487B (en) Popup window display method and device, storage medium and terminal
CN107483572A (en) The dispositions method and device of a kind of server
CN106921508B (en) Virtualized network element fault self-healing method and device
US10924538B2 (en) Systems and methods of monitoring software application processes
CN105357030B (en) Offline restoration methods, the device and system of a kind of terminal device on test platform
CN109361542A (en) The fault handling method of client, device, system, terminal and server
CN110618864A (en) Interrupt task recovery method and device
CN108121543A (en) A kind of software code process of compilation method and device
CN103034803B (en) Dress software prompt system by mistake
GB2412190A (en) A recovery framework
CN104683154A (en) Exception handling method, terminal equipment and server
CN109634659A (en) Method, apparatus, equipment and the storage medium that a kind of couple of BMC is controlled
CN106293851A (en) A kind of firmware upgrade method and equipment
CN108595195B (en) Application program updating method, device, terminal and storage medium
CN107025126B (en) Resource scheduling method, NFVO and system
CN111045616A (en) Time-consuming printing method, time-consuming printing device, time-consuming printing equipment and storage medium
CN108595292B (en) System optimization method, mobile terminal and computer storage medium
CN111162938A (en) Data processing system and method
CN115934390A (en) Method and system for processing application program crash and device for running application program
CN104572418A (en) Diagnostic method, device and system for mobile terminal
CN112626794B (en) Display control method and device for multiple washing machine, computer equipment and storage medium
KR20210113595A (en) Anomaly handling method, terminal device and storage medium
CN106230878B (en) Equipment service calling method and device based on AllJoyn framework
CN106776119A (en) The method for restarting of Service Instance, device and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right