CN106528372A - Program running monitoring system and method - Google Patents
Program running monitoring system and method Download PDFInfo
- Publication number
- CN106528372A CN106528372A CN201610951601.XA CN201610951601A CN106528372A CN 106528372 A CN106528372 A CN 106528372A CN 201610951601 A CN201610951601 A CN 201610951601A CN 106528372 A CN106528372 A CN 106528372A
- Authority
- CN
- China
- Prior art keywords
- log
- information
- watch
- dog
- application programming
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention comprises a program running monitoring system and method. The method and system are used for realizing the followings: registering application program interface information needing to be monitored and a corresponding monitoring scheme into a monitor; acquiring monitor registration information, and issuing a corresponding monitoring instruction to the monitor according to the registration information; calling back the application program interface by use of the monitor, and recording callback data; recording running data produced by the running of each application program interface in an independent running log; acquiring the running log produced by recording the log, and performing log analytic conclusion, the recalling of the program interface and the error information tracking according to the obtained log information. The method and system disclosed by the invention have the advantages as follows: the state information of the main method is completely reduced when the program is in running, the state information comprises execution time, parameters and returned values; the information of some section can be reloaded to repeat the performance in the running of the program; the log outputs and presents the standard and has the conclusion so as to facilitate a user to analyze the log.
Description
Technical field
The present invention relates to a kind of program operation monitoring system and method, belong to computer realm.
Background technology
In common computer software, important letter more than the running of program, is recorded by the way of output journal
Breath, warning information and error message.The whole work information being unable to when complete documentation program is run, it is impossible to when entering line program operation
Recurrence.The output content and output form randomness of daily record is larger, causes to increase the analysis difficulty of daily record therewith.
The content of the invention
For the deficiencies in the prior art, technical scheme provides a kind of program operation monitoring system and method,
Complete documentation must be carried out to program running log for standardization, inductive.
Technical scheme includes a kind of program operation monitoring system, it is characterised in that the system includes:Registration mould
Block, for the application programming interfaces information and corresponding monitoring scheme of required monitoring are registered into watch-dog;Monitoring module, is used for
The watch-dog log-on message is obtained, and corresponding monitoring instruction is issued to watch-dog according to log-on message;Callback module, is used for
Application programming interfaces are adjusted back using watch-dog, and record the callback data produced during readjustment;Log pattern, for every
The service data that individual application programming interfaces operation is produced is recorded with independent running log;Analysis module, for obtaining
State the running log of log pattern generation, and log analysis conclusion, routine interface are carried out according to the log information that obtains of parsing
Re-call and error message is followed the trail of.
Program operation monitoring system according to right, described Registering modules also include:The application programming interfaces
Information registering includes affiliated class.path, interface name, number of parameters, parameter type and parameter name.
Program operation monitoring system according to right, described monitoring module also include:The watch-dog is in monitoring
When application programming interfaces run, meeting docking port parameter value and parameter state are recorded.
Program operation monitoring system according to right, described callback module also include:The watch-dog is in readjustment
The callback data recorded during application programming interfaces includes return value and abnormal information, further, when inspection has abnormal information,
Monitor is externally alerted by interface.
Program operation monitoring system according to right, described log pattern also include:The independent log recording
Data include execution time of interface, end time, parameter value, return value, exception catching information, abnormality code position.
Technical scheme also includes a kind of program operation monitoring method, it is characterised in that the method includes:By institute
The application programming interfaces information and corresponding monitoring scheme that need to be monitored is registered into watch-dog;The watch-dog log-on message is obtained,
And corresponding monitoring instruction is issued to watch-dog according to log-on message;Application programming interfaces are adjusted back using watch-dog, and
The callback data produced during record readjustment;The service data produced to each application programming interfaces operation is with independent running log
Recorded;The running log produced when the log recording is obtained, and the log information obtained according to parsing carries out daily record
Analytic induction, routine interface re-call and error message follow the trail of.
Further, the method also includes:The application programming interfaces information registering include affiliated class.path, interface name,
Number of parameters, parameter type and parameter name.
Further, the method also includes:The watch-dog is monitoring meeting docking port parameter value when application programming interfaces run
Recorded with parameter state.
Further, the method also includes:The callback data bag recorded when application programming interfaces are adjusted back by the watch-dog
Return value and abnormal information are included, further, when inspection has abnormal information, monitor is externally alerted by interface.
Further, the method also includes:The data of the independent log recording include interface the execution time, at the end of
Between, parameter value, return value, exception catching information, abnormality code position.
Beneficial effects of the present invention are:When complete documentation program is run, the status information of main method, including when performing
Between, parameter, return value, the information of a certain section can be loaded into again, enter line program run when recurrence;Daily record output shows rule
Model, with inductive, convenient use personnel are analyzed to daily record.
Description of the drawings
Fig. 1 show the flow chart according to embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings with specific embodiment pair
The present invention is described in detail.
Fig. 1 show the flow chart according to embodiment of the present invention.Shown in its S101 ~ S105 specific as follows, including:
S101, is registered to needing the method for monitoring to be registered on monitor in program by method, and log-on message includes method institute
Category class.path, method name, number of parameters, parameter type and parameter name;
S102, when program is run, monitor realizes its interface by the relevant information of register method, and adapter needs the side of monitoring
Method, and record its parameter value and state;
S103, monitor readjustment register method, record return value or abnormal information, when having abnormal information, monitor passes through
Interface is externally alerted;
S104, program performing it is complete it produce independent running log for each method, including perform time, end time, ginseng
Numerical value, return value, exception catching information, abnormality code position;
S105, loads independent operating daily record, carries out log analysis, method and re-call, error tracking.
The above, simply presently preferred embodiments of the present invention, the invention is not limited in above-mentioned embodiment, as long as
Which reaches the technique effect of the present invention with identical means, should all belong to protection scope of the present invention.In the protection model of the present invention
In enclosing, its technical scheme and/or embodiment can have a variety of modifications and variations.
Claims (10)
1. a kind of program operation monitoring system, it is characterised in that the system includes:
Registering modules, for the application programming interfaces information and corresponding monitoring scheme of required monitoring are registered into watch-dog;
Monitoring module, for obtaining the watch-dog log-on message, and issues corresponding monitoring to watch-dog according to log-on message
Instruction;
Callback module, for adjusting back to application programming interfaces using watch-dog, and records the callback data produced during readjustment;
Log pattern, for being remembered with independent running log to the service data that each application programming interfaces operation is produced
Record;
Analysis module, for obtaining the running log that the log pattern is produced, and the log information obtained according to parsing is carried out
Log analysis conclude, routine interface re-call and error message follow the trail of.
2. program operation monitoring system according to claim 1, it is characterised in that described Registering modules also include:
The application programming interfaces information registering includes affiliated class.path, interface name, number of parameters, parameter type and parameter name
Claim.
3. program operation monitoring system according to claim 1, it is characterised in that described monitoring module also includes:
The watch-dog meeting docking port parameter value and parameter state when application programming interfaces operation is monitored are recorded.
4. program operation monitoring system according to claim 1, it is characterised in that described callback module also includes:
The callback data recorded when application programming interfaces are adjusted back by the watch-dog includes return value and abnormal information, enters one
Step, when inspection has abnormal information, monitor is externally alerted by interface.
5. program operation monitoring system according to claim 1, it is characterised in that described log pattern also includes:
The data of the independent log recording include execution time of interface, end time, parameter value, return value, exception catching
Information, abnormality code position.
6. a kind of program operation monitoring method, it is characterised in that the method includes:
The application programming interfaces information and corresponding monitoring scheme of required monitoring are registered into watch-dog;
The watch-dog log-on message is obtained, and corresponding monitoring instruction is issued to watch-dog according to log-on message;
Application programming interfaces are adjusted back using watch-dog, and record the callback data produced during readjustment;
The service data that each application programming interfaces operation is produced is recorded with independent running log;
The running log that the produces when log recording is obtained, and the log information obtained according to parsing carries out log analysis and returns
Receive, routine interface re-call and error message follow the trail of.
7. program operation monitoring method according to claim 6, it is characterised in that the method also includes:
The application programming interfaces information registering includes affiliated class.path, interface name, number of parameters, parameter type and parameter name
Claim.
8. program operation monitoring method according to claim 6, it is characterised in that the method also includes:
The watch-dog meeting docking port parameter value and parameter state when application programming interfaces operation is monitored are recorded.
9. program operation monitoring method according to claim 6, it is characterised in that the method also includes:
The callback data recorded when application programming interfaces are adjusted back by the watch-dog includes return value and abnormal information, enters one
Step, when inspection has abnormal information, monitor is externally alerted by interface.
10. program operation monitoring method according to claim 6, it is characterised in that the method also includes:
The data of the independent log recording include execution time of interface, end time, parameter value, return value, exception catching
Information, abnormality code position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610951601.XA CN106528372B (en) | 2016-10-26 | 2016-10-26 | Program operation monitoring system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610951601.XA CN106528372B (en) | 2016-10-26 | 2016-10-26 | Program operation monitoring system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106528372A true CN106528372A (en) | 2017-03-22 |
CN106528372B CN106528372B (en) | 2020-03-24 |
Family
ID=58326822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610951601.XA Active CN106528372B (en) | 2016-10-26 | 2016-10-26 | Program operation monitoring system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528372B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107145429A (en) * | 2017-06-01 | 2017-09-08 | 成都通甲优博科技有限责任公司 | A kind of log analysis method and system |
CN107948744A (en) * | 2017-12-13 | 2018-04-20 | 深圳市雷鸟信息科技有限公司 | Interface detection method, interface detection device and computer-readable recording medium |
CN109189478A (en) * | 2018-08-27 | 2019-01-11 | 中国科学院计算技术研究所 | For the feedback optimized method of application program |
CN110275819A (en) * | 2018-03-13 | 2019-09-24 | 腾讯科技(深圳)有限公司 | Application program operating analysis method, apparatus and intelligent terminal |
CN112347065A (en) * | 2019-08-07 | 2021-02-09 | 中国船舶工业系统工程研究院 | Record replay method and system for police preplan making process |
CN113010372A (en) * | 2020-12-08 | 2021-06-22 | 云智慧(北京)科技有限公司 | Distributed implementation method and system for API monitoring |
CN115391232A (en) * | 2022-10-28 | 2022-11-25 | 北京卡普拉科技有限公司 | Program data stream diagnosis method, device and equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408861A (en) * | 2007-10-11 | 2009-04-15 | 鸿富锦精密工业(深圳)有限公司 | Real time monitoring system and method of application program |
CN101605056A (en) * | 2009-06-16 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of J2EE server monitoring device and adopt the method for supervising of this device |
CN101667113A (en) * | 2008-09-02 | 2010-03-10 | 阿里巴巴集团控股有限公司 | Method and device for multi-thread log entry |
CN102981943A (en) * | 2012-10-29 | 2013-03-20 | 新浪技术(中国)有限公司 | Method and system for monitoring application logs |
CN103561421A (en) * | 2013-10-30 | 2014-02-05 | 上海天奕达电子科技有限公司 | Method and device for monitoring multiple application programs in intelligent terminal |
-
2016
- 2016-10-26 CN CN201610951601.XA patent/CN106528372B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101408861A (en) * | 2007-10-11 | 2009-04-15 | 鸿富锦精密工业(深圳)有限公司 | Real time monitoring system and method of application program |
CN101667113A (en) * | 2008-09-02 | 2010-03-10 | 阿里巴巴集团控股有限公司 | Method and device for multi-thread log entry |
CN101605056A (en) * | 2009-06-16 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of J2EE server monitoring device and adopt the method for supervising of this device |
CN102981943A (en) * | 2012-10-29 | 2013-03-20 | 新浪技术(中国)有限公司 | Method and system for monitoring application logs |
CN103561421A (en) * | 2013-10-30 | 2014-02-05 | 上海天奕达电子科技有限公司 | Method and device for monitoring multiple application programs in intelligent terminal |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107145429A (en) * | 2017-06-01 | 2017-09-08 | 成都通甲优博科技有限责任公司 | A kind of log analysis method and system |
CN107948744A (en) * | 2017-12-13 | 2018-04-20 | 深圳市雷鸟信息科技有限公司 | Interface detection method, interface detection device and computer-readable recording medium |
CN110275819A (en) * | 2018-03-13 | 2019-09-24 | 腾讯科技(深圳)有限公司 | Application program operating analysis method, apparatus and intelligent terminal |
CN109189478A (en) * | 2018-08-27 | 2019-01-11 | 中国科学院计算技术研究所 | For the feedback optimized method of application program |
CN109189478B (en) * | 2018-08-27 | 2020-12-29 | 中国科学院计算技术研究所 | Feedback optimization method for application program |
CN112347065A (en) * | 2019-08-07 | 2021-02-09 | 中国船舶工业系统工程研究院 | Record replay method and system for police preplan making process |
CN112347065B (en) * | 2019-08-07 | 2023-08-18 | 中国船舶工业系统工程研究院 | Recording and replay method and system for police plan making process |
CN113010372A (en) * | 2020-12-08 | 2021-06-22 | 云智慧(北京)科技有限公司 | Distributed implementation method and system for API monitoring |
CN115391232A (en) * | 2022-10-28 | 2022-11-25 | 北京卡普拉科技有限公司 | Program data stream diagnosis method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106528372B (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528372A (en) | Program running monitoring system and method | |
CN105426292B (en) | A kind of games log real time processing system and method | |
JP2019502191A (en) | Service call information processing method and device | |
CN103227734A (en) | Method for detecting abnormity of OpenStack cloud platform | |
US10073683B2 (en) | System and method for providing software build violation detection and self-healing | |
US9282008B2 (en) | Systems and methods for monitoring system performance and availability | |
CN102722431B (en) | process monitoring method and device | |
CN109255523B (en) | Analytical index computing platform based on KKS coding rule and big data architecture | |
CN103684898A (en) | Method and device for monitoring operation of user request in distributed system | |
CN104917803A (en) | Autonomous inspection system based on user behavior control | |
CN104375915A (en) | Method for interactively and quickly diagnosing mainboard time sequence by utilizing BMC (baseboard management controller) and CPLD (complex programmable logic device) | |
CN110046073A (en) | A kind of log collection method and device, equipment, storage medium | |
CN102073912A (en) | Data quality control method, device and system | |
CN110502400A (en) | Database method for inspecting and device | |
CN107247505B (en) | Cloud server power supply blackbox design method easy to view | |
CN113438113A (en) | Monitoring and maintaining method and system for equipment operation abnormity based on Internet of things | |
CN110113229A (en) | A kind of block chain reference performance test macro and tool | |
US20170257304A1 (en) | Systems and methods for monitoring system performance and availability | |
CN106384283A (en) | Internet plus based service bus structure and service bus system | |
CN112087320A (en) | Abnormity positioning method and device, electronic equipment and readable storage medium | |
CN112583610A (en) | System state prediction method, system state prediction device, server and storage medium | |
CN106484639A (en) | A kind of method that CPU register information is obtained by ipmi agreement | |
CN112686773B (en) | Electric power metering all-link key business anomaly positioning model construction method based on fusion business topology | |
CN101398781A (en) | System and method for rapidly diagnosing system software defect | |
CN106295144A (en) | A kind of medical data acquisition method of quality control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |