Method and device for determining abnormal thread, computer equipment and storage medium
A thread and exception technology, applied in the field of R&D process optimization, can solve problems such as affecting system stability, unable to automatically and efficiently determine abnormal threads, etc., to relieve thread memory pressure, improve health, and ensure feasibility.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] Embodiments of the present invention provide a method for determining an abnormal thread, such as figure 1 As shown, the method specifically includes the following steps:
[0048] Step S101: Obtain log information generated during running of the target Java application, and determine whether there is thread exhaustion error message in the log information.
[0049] Wherein, the thread exhaustion error message is in the form of: "java.lang.OutOfMemoryError: unable to create new native thread".
[0050]In this embodiment, when a Java application is running in the Java Development Kit JDK, a Java application log will be generated, and it is necessary to actively and regularly obtain the Java application log of the Java application from the JDK according to a set time interval. Judging whether there is a thread exhaustion error message in the form of "java.lang.OutOfMemoryError: unable to create new native thread" in the Java application log, when the thread exhaustion erro...
Embodiment 2
[0109] Based on the method for determining an abnormal thread provided in the first embodiment above, this embodiment provides an apparatus for determining an abnormal thread, specifically, figure 2 An optional structural block diagram of the device for determining an abnormal thread is shown, the device for determining an abnormal thread is divided into one or more program modules, one or more program modules are stored in a storage medium, and are composed of one or more processors to complete the present invention. The program module referred to in the present invention refers to a series of computer program instruction segments capable of completing specific functions, which is more suitable than the program itself to describe the execution process of the device for determining the abnormal thread in the storage medium. The following description will specifically introduce the programs of this embodiment function of the module.
[0110] Such as figure 2 As shown, the d...
Embodiment 3
[0129] This embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or A server cluster composed of multiple servers), etc. Such as image 3 As shown, the computer device 30 in this embodiment at least includes but is not limited to: a memory 301 and a processor 302 that can be communicated with each other through a system bus. It should be pointed out that, image 3 Only computer device 30 is shown having components 301-302, but it should be understood that implementing all of the illustrated components is not a requirement and that more or fewer components may instead be implemented.
[0130] In this embodiment, the memory 301 (that is, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), s...
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