A method and device for exception handling based on garbage collection log
An exception handling and log technology, applied in the direction of electrical digital data processing, response error generation, instruments, etc., can solve problems such as thread deadlock, Java process consumes too much CPU, insufficient memory, etc., and achieves the goal of improving accuracy and efficiency Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0035] See figure 1 , showing a flowchart of a method for handling exceptions based on garbage collection logs provided by the first embodiment of the present invention. The method includes:
[0036] Step S10: according to the preset generation parameters of the GC log, generate the GC log and store it in the preset path;
[0037] Step S20: read the GC log in the preset path, and extract the data to be analyzed from the GC log; wherein, the data to be analyzed is used for abnormal analysis;
[0038] Step S30: Input the data to be analyzed into a preset identification model for identification, and obtain an abnormal analysis result;
[0039] Step S40: According to the abnormal analysis result, adjust the JVM parameters.
[0040]In this embodiment, through steps S10 to S40, the corresponding data to be analyzed is extracted after outputting the GC log; then the data to be analyzed is input into a preset recognition model for identification, and the corresponding abnormal anal...
no. 2 example
[0072] see figure 2, based on the same inventive concept, the second embodiment of the present invention provides an exception processing apparatus 300 based on garbage collection logs. The exception processing apparatus 300 based on garbage collection logs includes:
[0073] The log acquisition module 301 is used to generate the GC log according to the preset generation parameters of the GC log and store it in the preset path; the data extraction module 302 is used to read the GC log in the preset path, and from the preset path. The data to be analyzed is extracted from the GC log; wherein, the data to be analyzed is used for abnormal analysis; the identification module 303 is used for inputting the data to be analyzed into a preset identification model for identification, and an abnormal analysis result is obtained; optimization; Module 304, configured to adjust JVM parameters according to the exception analysis result.
[0074] As an optional implementation manner, it al...
no. 3 example
[0086] Based on the same inventive concept, this embodiment also provides an electronic device, including a processor and a memory, the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor When executing, the electronic device is caused to execute the steps of the method in any one of the foregoing method embodiments. It should be noted that, in the electronic device provided by the embodiment of the present invention, when the instruction is executed by the processor, the specific implementation of each step and the technical effect produced are the same as those in the foregoing method embodiment, which is a brief description. , for the parts not mentioned in this embodiment, reference may be made to the corresponding content in the foregoing method embodiments.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com