CN112825057A - Monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity - Google Patents
Monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity Download PDFInfo
- Publication number
- CN112825057A CN112825057A CN201911143213.9A CN201911143213A CN112825057A CN 112825057 A CN112825057 A CN 112825057A CN 201911143213 A CN201911143213 A CN 201911143213A CN 112825057 A CN112825057 A CN 112825057A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- request service
- exception
- ajax request
- context
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/43—Checking; Contextual analysis
Abstract
The invention discloses a monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity, which comprises the following specific implementation processes: when the data returned by svr server is provided to the front end calling interface, the operation exception is thrown out uniformly by providing the front end calling interface; receiving and analyzing the runtime exception by using a corresponding tool; positioning the number of code lines with problems and the context of related codes by analyzing data in the stack; printing the context of the corresponding line number into a log system through a command; and when an abnormal alarm is given, finding out the details of errors occurring at the current time point through the keywords. According to the invention, after the abnormity is analyzed through the self-defined error checking tool TsMisc.
Description
Technical Field
The invention relates to the technical field of java application, in particular to a monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity.
Background
In order to monitor the service exception, a monitoring code is separately embedded in a corresponding service interface, when an exception is found, an exception error needs to be found first, ajax corresponding to the found exception is found, and the compiled java code is checked through linux. However, when an abnormal condition is found, it is troublesome to troubleshoot the code of the abnormal condition, and it takes time to locate the problem, and the troubleshoot the problem is complicated.
Therefore, a monitoring method capable of quickly positioning error codes and monitoring the ajax request service abnormity is provided.
Disclosure of Invention
Based on the technical problems in the background art, the invention provides a monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity.
The invention provides a monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity, which comprises the following specific implementation processes:
s1: when the data returned by svr server is provided to the front end calling interface, the operation exception is thrown out uniformly by providing the front end calling interface;
s2: receiving and analyzing the runtime exception by using a corresponding tool;
s3: positioning the number of code lines with problems and the context of related codes by analyzing data in the stack;
s4: printing the context of the corresponding line number into a log system through a command;
s5: and when an abnormal alarm is given, finding out the details of errors occurring at the current time point through the keywords.
Preferably, the tool in S3 is a custom error checking tool.
Preferably, the command in S4 is provided by linux.
Preferably, the keyword in S5 is WebExp or weberr.
The beneficial effects of the invention are as follows:
1. after the exception is analyzed through a custom error checking tool TsMisc.
2. The context with the number of lines corresponding to the abnormity is printed in the log system for storage, so that subsequent problems can be conveniently checked.
Drawings
FIG. 1 is a system architecture diagram of a monitoring method for quickly locating an error code and monitoring ajax request service exception according to the present invention;
FIG. 2 is a service flow diagram of a monitoring method for quickly locating an error code and monitoring ajax request service exception according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1-2, a monitoring method capable of quickly locating an error code and monitoring ajax request service exception includes the following specific implementation processes:
s1: when the data returned by svr server is provided to the front end calling interface, the operation exception is thrown out uniformly by providing the front end calling interface;
s2: receiving and analyzing the runtime exception by using a corresponding tool;
s3: positioning the number of code lines with problems and the context of related codes by analyzing data in the stack;
s4: printing the context of the corresponding line number into a log system through a command;
s5: and when an abnormal alarm is given, finding out the details of errors occurring at the current time point through the keywords.
In the invention, the tool in S3 is a self-defined error checking tool, the command in S4 is provided by linux, the keyword in S5 is WebExp or weberr, the system architecture diagram is shown in FIG. 1, and the service flow diagram is shown in FIG. 2.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.
Claims (4)
1. A monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity is characterized by comprising the following specific implementation processes:
s1: when the data returned by svr server is provided to the front end calling interface, the operation exception is thrown out uniformly by providing the front end calling interface;
s2: receiving and analyzing the runtime exception by using a corresponding tool;
s3: positioning the number of code lines with problems and the context of related codes by analyzing data in the stack;
s4: printing the context of the corresponding line number into a log system through a command;
s5: and when an abnormal alarm is given, finding out the details of errors occurring at the current time point through the keywords.
2. The method for monitoring ajax request service exception, as claimed in claim 1, wherein said tool in S3 is a self-defined error checking tool.
3. The method for monitoring ajax request service exception, capable of fast locating error code according to claim 2, wherein the command in S4 is provided by linux.
4. The method as claimed in claim 3, wherein the keyword in S5 is WebExp or weberr.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911143213.9A CN112825057A (en) | 2019-11-20 | 2019-11-20 | Monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911143213.9A CN112825057A (en) | 2019-11-20 | 2019-11-20 | Monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112825057A true CN112825057A (en) | 2021-05-21 |
Family
ID=75907130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911143213.9A Pending CN112825057A (en) | 2019-11-20 | 2019-11-20 | Monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112825057A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114880247A (en) * | 2022-07-04 | 2022-08-09 | 成都行远捷科技有限公司 | BUG analysis method based on log guidance system under distributed condition |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824754A (en) * | 2016-03-17 | 2016-08-03 | 广州多益网络股份有限公司 | Method for abnormally capturing and uploading Python of client program |
CN106250761A (en) * | 2016-07-28 | 2016-12-21 | 广州爱九游信息技术有限公司 | A kind of unit identifying web automation tools and method |
CN106528316A (en) * | 2016-11-10 | 2017-03-22 | 霍尔果斯霹雳互动网络科技有限公司 | Anti-crash method and system of online game server |
CN107832166A (en) * | 2017-11-27 | 2018-03-23 | 郑州云海信息技术有限公司 | A kind of Linux server is delayed machine trouble analysis system and method |
CN108762966A (en) * | 2018-06-05 | 2018-11-06 | 中国平安人寿保险股份有限公司 | System exception hold-up interception method, device, computer equipment and storage medium |
-
2019
- 2019-11-20 CN CN201911143213.9A patent/CN112825057A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824754A (en) * | 2016-03-17 | 2016-08-03 | 广州多益网络股份有限公司 | Method for abnormally capturing and uploading Python of client program |
CN106250761A (en) * | 2016-07-28 | 2016-12-21 | 广州爱九游信息技术有限公司 | A kind of unit identifying web automation tools and method |
CN106528316A (en) * | 2016-11-10 | 2017-03-22 | 霍尔果斯霹雳互动网络科技有限公司 | Anti-crash method and system of online game server |
CN107832166A (en) * | 2017-11-27 | 2018-03-23 | 郑州云海信息技术有限公司 | A kind of Linux server is delayed machine trouble analysis system and method |
CN108762966A (en) * | 2018-06-05 | 2018-11-06 | 中国平安人寿保险股份有限公司 | System exception hold-up interception method, device, computer equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114880247A (en) * | 2022-07-04 | 2022-08-09 | 成都行远捷科技有限公司 | BUG analysis method based on log guidance system under distributed condition |
CN114880247B (en) * | 2022-07-04 | 2022-09-20 | 成都行远捷科技有限公司 | BUG analysis method based on log guidance system under distributed condition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7984334B2 (en) | Call-stack pattern matching for problem resolution within software | |
US20150317244A1 (en) | Tracking of code base and defect diagnostic coupling with automated triage | |
CN108038039B (en) | Method for recording log and micro-service system | |
CN107025224B (en) | Method and equipment for monitoring task operation | |
CN106980565B (en) | Upgrading process monitoring method and device | |
US11693731B2 (en) | System and methods for diagnosing and repairing a smart mobile device by disabling components | |
CN111475401A (en) | Test method and related equipment | |
CN111078447A (en) | Method, device, equipment and medium for positioning abnormity in micro-service architecture | |
CN113986669A (en) | Call chain tracking and business analysis method based on AOP annotation | |
CN114844768A (en) | Information analysis method and device and electronic equipment | |
CN112825057A (en) | Monitoring method capable of quickly positioning error codes and monitoring ajax request service abnormity | |
US11263072B2 (en) | Recovery of application from error | |
CN107085532B (en) | task monitoring method and device | |
CN110990179B (en) | Task processing method, device and equipment | |
CN114500249B (en) | Root cause positioning method and device | |
CN113886122B (en) | System operation exception handling method, device, equipment and storage medium | |
CN115102838B (en) | Emergency processing method and device for server downtime risk and electronic equipment | |
CN115587046A (en) | Code exception processing method and device, storage medium and computer equipment | |
JP2007207213A (en) | Diagnostic information collecting method applied to real-time diagnosis of wireless device | |
CN111309584A (en) | Data processing method and device, electronic equipment and storage medium | |
CN111835566A (en) | System fault management method, device and system | |
JP2006244215A (en) | Repair support system, and repair support method for portable terminal | |
CN112306989A (en) | Database instance processing method and device, storage medium and electronic device | |
CN111694715A (en) | Abnormity warning method, device, equipment and machine readable storage medium | |
CN110554932A (en) | Method for detecting abnormality of api module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210521 |
|
RJ01 | Rejection of invention patent application after publication |