CN105045708A - Method and system for processing running errors of software - Google Patents

Method and system for processing running errors of software Download PDF

Info

Publication number
CN105045708A
CN105045708A CN201510556299.3A CN201510556299A CN105045708A CN 105045708 A CN105045708 A CN 105045708A CN 201510556299 A CN201510556299 A CN 201510556299A CN 105045708 A CN105045708 A CN 105045708A
Authority
CN
China
Prior art keywords
software
error
error situation
software module
monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510556299.3A
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510556299.3A priority Critical patent/CN105045708A/en
Publication of CN105045708A publication Critical patent/CN105045708A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and system for processing running errors of software. The method comprises the steps that a running status and/or a process journal file of a corresponding process is monitored when a software module runs; when error cases are found during monitoring, processing is conducted on the error cases, and the processing method comprises at least one of the following processes that 1, the error cases occur on the running status of the process, and the process is restarted; 2, preset keywords are found in the content of the process journal file, and processing actions correlated with the keywords in advance are conducted. Accordingly, automatic monitoring and solving of faults occurring in the running process of the software are achieved, and the stability and the automatic recovery capability of the system are improved.

Description

Running software error handling method and system
Technical field
The present invention relates to software technology field, particularly relate to running software error handling method and system.
Background technology
Generally speaking, an electronic equipment such as mobile phone or panel computer etc., be difficult to accomplish do not have running software BUG completely, and most BUG can evade by the method for system reboot, but this way has several shortcoming:
1, manual operations is needed, more loaded down with trivial details.
2, after system jam, to keeper complete restart before during this period of time in, equipment is cisco unity malfunction.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide running software error handling method and system, solves the problem that software BUG of the prior art needs manual handle.
For realizing above-mentioned target and other related objectives, the invention provides a kind of software error method for supervising, comprising: corresponding running state of a process and/or process log file when monitoring software module is run; When described monitoring finds error situation, error situation is processed, comprise following at least one: 1) there is error situation in running state of a process, restarts this process; 2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out.
Optionally, the error situation that described running state of a process occurs comprises: run the central processing unit of the electronic equipment of described software or memory usage higher than preset value.
Optionally, described process action comprises: restart described software module and restart the corresponding process of described software module.
Optionally, described error situation divides multiple rank by the order of severity; Described rank of restarting error situation corresponding to key word associated by described software module action, higher than described rank of restarting error situation corresponding to key word associated by the corresponding process action of described software module.
Optionally, the monitoring of described process log file is undertaken by the file store path of this pre-configured process log file.
For realizing above-mentioned target and other related objectives, the invention provides a kind of software error supervisory system, comprising: monitoring module, corresponding running state of a process and/or process log file when running for monitoring software module; Processing module, for when described monitoring finds error situation, processes error situation, comprise following at least one: 1) there is error situation in running state of a process, restarts this process; 2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out.
Optionally, the error situation that described running state of a process occurs comprises: run the central processing unit of the electronic equipment of described software or memory usage higher than preset value.
Optionally, described process action comprises: restart described software module and restart the corresponding process of described software module.
Optionally, described error situation divides multiple rank by the order of severity; Described rank of restarting error situation corresponding to key word associated by described software module action, higher than described rank of restarting error situation corresponding to key word associated by the corresponding process action of described software module.
Optionally, the monitoring of described process log file is undertaken by the file store path of this pre-configured process log file.
As mentioned above, the invention provides running software error handling method and system, corresponding running state of a process and/or process log file when monitoring software module is run; When described monitoring finds error situation, error situation is processed, comprise following at least one: 1) there is error situation in running state of a process, restarts this process; 2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out; Realize the automatic monitoring to fault in software running process and solution, improve the stability of system and automatic recovery capability.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of running software error handling method in one embodiment of the invention.
Fig. 2 is shown as the schematic flow sheet of running software error handling method in the present invention one specific embodiment.
Fig. 3 is shown as the structural representation of running software error processing system in one embodiment of the invention.
Element numbers explanation
1 running software error processing system
11 monitoring modules
12 processing modules
S1 ~ S2 method step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
As shown in Figure 1, the invention provides a kind of software error method for supervising, comprising:
Step S1: corresponding running state of a process and/or process log file when monitoring software module is run.
In one embodiment, described monitoring can run corresponding process monitoring process by monitoring each software module realizes, and before monitoring process starts, first can carry out the configuration of configuration file, relate to following components in this configuration file:
1) path of the process log file of each process.
2) key word involved by process log file of each process, and the process action needing execution corresponding to this key word.Such as: occur that mistake " error " key word is then to the action of association " restart and occur error software module "; If: " faulterror " key word, then illustrate that this process cannot normally work, then associate the action of " restarting the corresponding process of this software module ".
3) the process title of required monitoring, such as process 1, process 2, process 3 etc., for distinguishing process.
Step S2: when described monitoring finds error situation, error situation is processed, comprise following at least one: 1) there is error situation in running state of a process, restarts this process; 2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out.
In one embodiment, there is error situation in described running state of a process, such as, be: the cpu busy percentage of process and memory usage are excessively high, such as, be greater than 85% etc.
In one embodiment, described error situation divides multiple rank by the order of severity; Described rank of restarting error situation corresponding to key word associated by described software module action, higher than described rank of restarting error situation corresponding to key word associated by the corresponding process action of described software module.Such as; " Errorinalarmmodule " be the corresponding key word of common fault; " Faulterrorinalarmmodule " be the corresponding key word of gross error, lighter mistake restarts the software module broken down, and comparatively grave error then directly restarts this process.
For example bright foregoing, Fig. 2 is the operational flow diagram of monitoring process, and concrete steps are described below:
1. initialization, Status Profile.
2. start to detect the process log file (i.e. log) of each process and the cpu busy percentage of process and memory usage.
3. judge in the process log file of each process, whether have corresponding key word and memory usage to have inerrancy.
If general error-critical word 4. detected, as " Errorinalarmmodule ", then this information is sent to this process, this process restarts the software module of this fault.
If gross error key word 5. detected, as " Faulterrorinalarmmodule ", then illustrate that this process can not work on, then directly restart this process.
If 6. detect internal memory or cpu busy percentage too high, then directly restart this process.
In addition, if detect that monitored process disappears suddenly from process manager, then illustrate that this process also there occurs mistake, now, restart this process.
Except above function, this programme also needs all event summary, such as:
2015-7-2212:00:01 process 1 there occurs " " event has carried out reboot operation to Faulterror
Then all list of things are sent to system manager.
Utilize above method, can to a great extent, within a short period of time, the normal work of recovery system, makes the system originally broken down, provides normal service as much as possible.
As shown in Figure 3, the invention provides a kind of software error supervisory system 1, its know-why is roughly the same with said method, and therefore identical technical characteristic does not do repeated description; Described system 1 comprises: monitoring module 11, corresponding running state of a process and/or process log file when running for monitoring software module; Processing module 12, for when described monitoring finds error situation, processes error situation, comprise following at least one: 1) there is error situation in running state of a process, restarts this process; 2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out.
In one embodiment, the error situation that described running state of a process occurs comprises: run the central processing unit of the electronic equipment of described software or memory usage higher than preset value.
In one embodiment, described process action comprises: restart described software module and restart the corresponding process of described software module.
In one embodiment, described error situation divides multiple rank by the order of severity; Described rank of restarting error situation corresponding to key word associated by described software module action, higher than described rank of restarting error situation corresponding to key word associated by the corresponding process action of described software module.
In one embodiment, the monitoring of described process log file is undertaken by the file store path of this pre-configured process log file.
As mentioned above, the invention provides running software error handling method and system, corresponding running state of a process and/or process log file when monitoring software module is run; When described monitoring finds error situation, error situation is processed, comprise following at least one: 1) there is error situation in running state of a process, restarts this process; 2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out; Realize the automatic monitoring to fault in software running process and solution, improve the stability of system and automatic recovery capability.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. a software error method for supervising, is characterized in that, comprising:
Corresponding running state of a process and/or process log file when monitoring software module is run;
When described monitoring finds error situation, error situation is processed, comprise following at least one:
1) there is error situation in running state of a process, restarts this process;
2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out.
2. software error method for supervising according to claim 1, is characterized in that, the error situation that described running state of a process occurs comprises: run the central processing unit of the electronic equipment of described software or memory usage higher than preset value.
3. software error method for supervising according to claim 1, is characterized in that, described process action comprises: restart described software module and restart the corresponding process of described software module.
4. software error method for supervising according to claim 3, is characterized in that, described error situation divides multiple rank by the order of severity; Described rank of restarting error situation corresponding to key word associated by described software module action, higher than described rank of restarting error situation corresponding to key word associated by the corresponding process action of described software module.
5. software error method for supervising according to claim 1, is characterized in that, the monitoring of described process log file is undertaken by the file store path of this pre-configured process log file.
6. a software error supervisory system, is characterized in that, comprising:
Monitoring module, corresponding running state of a process and/or process log file when running for monitoring software module;
Processing module, for when described monitoring finds error situation, processes error situation, comprise following at least one:
1) there is error situation in running state of a process, restarts this process;
2), when finding preset keyword in process log file content, the process action associated in advance with described key word is carried out.
7. software error supervisory system according to claim 6, is characterized in that, the error situation that described running state of a process occurs comprises: run the central processing unit of the electronic equipment of described software or memory usage higher than preset value.
8. software error supervisory system according to claim 6, is characterized in that, described process action comprises: restart described software module and restart the corresponding process of described software module.
9. software error supervisory system according to claim 8, is characterized in that, described error situation divides multiple rank by the order of severity; Described rank of restarting error situation corresponding to key word associated by described software module action, higher than described rank of restarting error situation corresponding to key word associated by the corresponding process action of described software module.
10. software error supervisory system according to claim 6, is characterized in that, the monitoring of described process log file is undertaken by the file store path of this pre-configured process log file.
CN201510556299.3A 2015-09-02 2015-09-02 Method and system for processing running errors of software Pending CN105045708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510556299.3A CN105045708A (en) 2015-09-02 2015-09-02 Method and system for processing running errors of software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510556299.3A CN105045708A (en) 2015-09-02 2015-09-02 Method and system for processing running errors of software

Publications (1)

Publication Number Publication Date
CN105045708A true CN105045708A (en) 2015-11-11

Family

ID=54452271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510556299.3A Pending CN105045708A (en) 2015-09-02 2015-09-02 Method and system for processing running errors of software

Country Status (1)

Country Link
CN (1) CN105045708A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653455A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Program vulnerability detection method and detection system
CN105808411A (en) * 2016-03-08 2016-07-27 李小荣 Method and device for alarming system fault through social application
CN106484555A (en) * 2016-09-29 2017-03-08 广东欧珀移动通信有限公司 Abnormality detection and the method recovered and mobile terminal
CN106776098A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Using restorative procedure and device
CN107517308A (en) * 2017-08-07 2017-12-26 惠州Tcl移动通信有限公司 Application program for mobile terminal abnormal detection method, storage device and mobile terminal
CN107729217A (en) * 2017-10-30 2018-02-23 郑州云海信息技术有限公司 A kind of database abnormality eliminating method and terminal
CN109117311A (en) * 2018-08-22 2019-01-01 郑州云海信息技术有限公司 A kind of fault recovery method and device
CN109709849A (en) * 2018-12-20 2019-05-03 浙江吉利汽车研究院有限公司 Single-chip microcontroller safety operating control method and device
CN110851300A (en) * 2019-09-26 2020-02-28 三维通信股份有限公司 Program process monitoring method and device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060288199A1 (en) * 2005-05-27 2006-12-21 Emilian Ertel Watchdog system in a distributed computerized application environment
CN101859271A (en) * 2009-04-08 2010-10-13 北京博越世纪科技有限公司 Grading exception handling technique
CN102968352A (en) * 2012-12-14 2013-03-13 杨晓松 System and method for process monitoring and multi-stage recovery
CN103324565A (en) * 2012-05-30 2013-09-25 北京神州泰岳软件股份有限公司 Log monitoring method
CN104407958A (en) * 2014-10-30 2015-03-11 广州博控自动化技术有限公司 High-reliability system monitoring method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060288199A1 (en) * 2005-05-27 2006-12-21 Emilian Ertel Watchdog system in a distributed computerized application environment
CN101859271A (en) * 2009-04-08 2010-10-13 北京博越世纪科技有限公司 Grading exception handling technique
CN103324565A (en) * 2012-05-30 2013-09-25 北京神州泰岳软件股份有限公司 Log monitoring method
CN102968352A (en) * 2012-12-14 2013-03-13 杨晓松 System and method for process monitoring and multi-stage recovery
CN104407958A (en) * 2014-10-30 2015-03-11 广州博控自动化技术有限公司 High-reliability system monitoring method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653455B (en) * 2015-12-29 2019-02-05 Oppo广东移动通信有限公司 A kind of detection method and detection system of program bug
CN105653455A (en) * 2015-12-29 2016-06-08 广东欧珀移动通信有限公司 Program vulnerability detection method and detection system
CN105808411A (en) * 2016-03-08 2016-07-27 李小荣 Method and device for alarming system fault through social application
CN106484555A (en) * 2016-09-29 2017-03-08 广东欧珀移动通信有限公司 Abnormality detection and the method recovered and mobile terminal
CN106484555B (en) * 2016-09-29 2019-05-17 Oppo广东移动通信有限公司 The method and mobile terminal of abnormality detection and recovery
CN106776098A (en) * 2016-12-30 2017-05-31 深圳天珑无线科技有限公司 Using restorative procedure and device
CN107517308A (en) * 2017-08-07 2017-12-26 惠州Tcl移动通信有限公司 Application program for mobile terminal abnormal detection method, storage device and mobile terminal
CN107729217A (en) * 2017-10-30 2018-02-23 郑州云海信息技术有限公司 A kind of database abnormality eliminating method and terminal
CN109117311A (en) * 2018-08-22 2019-01-01 郑州云海信息技术有限公司 A kind of fault recovery method and device
CN109709849A (en) * 2018-12-20 2019-05-03 浙江吉利汽车研究院有限公司 Single-chip microcontroller safety operating control method and device
CN109709849B (en) * 2018-12-20 2021-03-19 浙江吉利汽车研究院有限公司 Method and device for controlling safe operation of single chip microcomputer
CN110851300A (en) * 2019-09-26 2020-02-28 三维通信股份有限公司 Program process monitoring method and device, computer equipment and readable storage medium
WO2021057855A1 (en) * 2019-09-26 2021-04-01 三维通信股份有限公司 Program process monitoring method and apparatus, computer device, and readable storage medium

Similar Documents

Publication Publication Date Title
CN105045708A (en) Method and system for processing running errors of software
US11327828B2 (en) Process automation action repository and assembler
US8782643B2 (en) Device and method for controlling communication between BIOS and BMC
CN102262574B (en) Boot protecting method and device of operating system
CN101895540B (en) For the system and method that application service process is guarded
CN102810073B (en) Background real-time monitoring processing method for data
CN107480014B (en) High-availability equipment switching method and device
CN105204979A (en) Recording method of Android logs and mobile terminal
CN102819466B (en) The disposal route of operating system exception and device thereof
CN106130763A (en) Server cluster and be applicable to the database resource group method for handover control of this cluster
CN104573529A (en) BIOS firmware dividing and updating method and system
CN111930589B (en) Streaming task automatic monitoring system and method
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN114884796B (en) Fault processing method and device, electronic equipment and storage medium
CN102902563A (en) Linux operating system and method for mounting file system in starting process of Linux operating system
CN112181746A (en) Fault repairing method, device and equipment for vehicle-mounted operating system
CN108737153B (en) Block chain disaster recovery system, method, server and computer-readable storage medium
CN103019706A (en) Method and device for processing startup item
US20100037094A1 (en) Application Failure Recovery
US20180144134A1 (en) Detection system and detection method
CN103902401A (en) Virtual machine fault tolerance method and device based on monitoring
CN113672471A (en) Software monitoring method, device, equipment and storage medium
CN111371642B (en) Network card fault detection method, device, equipment and storage medium
JP5803246B2 (en) Network operation management system, network monitoring server, network monitoring method and program
CN109284137B (en) Hypervisor-based QNX operating system starting method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111