CN113836004B - Application program positioning analysis method, device, equipment and storage medium - Google Patents

Application program positioning analysis method, device, equipment and storage medium Download PDF

Info

Publication number
CN113836004B
CN113836004B CN202111009445.2A CN202111009445A CN113836004B CN 113836004 B CN113836004 B CN 113836004B CN 202111009445 A CN202111009445 A CN 202111009445A CN 113836004 B CN113836004 B CN 113836004B
Authority
CN
China
Prior art keywords
positioning
keyword
information
analysis
thread
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.)
Active
Application number
CN202111009445.2A
Other languages
Chinese (zh)
Other versions
CN113836004A (en
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.)
Shandong Youren Networking Co ltd
Original Assignee
Shandong Youren Networking 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 Shandong Youren Networking Co ltd filed Critical Shandong Youren Networking Co ltd
Priority to CN202111009445.2A priority Critical patent/CN113836004B/en
Publication of CN113836004A publication Critical patent/CN113836004A/en
Application granted granted Critical
Publication of CN113836004B publication Critical patent/CN113836004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an application program positioning analysis method, an application program positioning analysis device, application program positioning analysis equipment and a storage medium, and belongs to the technical field of safety monitoring. The method comprises the steps of obtaining thread information of an application program to be analyzed; positioning the thread information based on a positioning keyword algorithm to obtain a positioning result; carrying out diagnosis analysis on the positioning result through a cause analysis algorithm to obtain a diagnosis result; the method comprises the steps of obtaining thread information with CPU utilization rate exceeding a preset utilization rate threshold value in an application program, extracting keywords in the thread information through a positioning keyword algorithm, determining state data of the extracted keywords according to a cause analysis algorithm, comparing the state data of the keywords with a preset cause mapping relation table to obtain a diagnosis result of a cause item, automatically positioning the application program with CPU surge height through the keyword algorithm, and carrying out cause analysis according to the cause mapping relation table, so that an analysis result can be conveniently and rapidly obtained.

Description

Application program positioning analysis method, device, equipment and storage medium
Technical Field
The present invention relates to the field of security monitoring technologies, and in particular, to a method, an apparatus, a device, and a storage medium for positioning and analyzing an application program.
Background
For applications running on the basis of a Java (computer programming language) virtual machine, real-time monitoring and analysis of a Thread Dump (tool for diagnosing Java application problems) file is an effective method for solving problems occurring in the application. However, if the online application program suddenly consumes high CPU, the operation and maintenance personnel can only manually analyze the Thread Dump log file of the application and combine the related experience to locate the problem, which is time-consuming and labor-consuming.
The analysis Thread Dump file currently used has an application program which uses a top command in a software development kit (Java Development Kit, JDK) of Java language to locate the highest application instance process of the CPU and checks Thread stack information in combination with a jstack (Java virtual machine stack tracking tool) to analyze and locate the high consumption of the CPU; or a third party analysis tool is used for analyzing the application program, operation and maintenance personnel need to monitor the application program in real time, and temporarily-occurring problem information cannot be stored in real time, so that problem analysis and positioning are not timely enough, and time and labor are consumed.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an application program positioning analysis method, device, equipment and storage medium, and aims to solve the technical problem that the time and the labor are consumed in manually analyzing an application program in the prior art.
In order to achieve the above object, the present invention provides an application program positioning analysis method, which includes the steps of:
acquiring thread information of an application program to be analyzed;
positioning the thread information based on a positioning keyword algorithm to obtain a positioning result;
and carrying out diagnosis analysis on the positioning result through a cause analysis algorithm to obtain a diagnosis result.
Optionally, the positioning key word algorithm is used for positioning the thread information, and before the positioning result is obtained, the method further includes:
acquiring architecture characteristics of the application program to be analyzed;
acquiring corresponding keyword data based on the architecture features;
and determining a positioning keyword algorithm according to the keyword data.
Optionally, the positioning the thread information based on the positioning keyword algorithm to obtain a positioning result includes:
acquiring original keyword information of the thread information;
extracting the original keyword information based on a positioning keyword algorithm to obtain positioning keyword information;
and obtaining a positioning result according to the positioning keyword information.
Optionally, the performing diagnostic analysis on the positioning result by using a cause analysis algorithm to obtain a diagnostic result includes:
obtaining target keyword state data according to a cause analysis algorithm and the positioning result;
performing reason item diagnosis on the target keyword state data according to a preset reason mapping relation table to obtain a reason item diagnosis result;
and taking the cause item diagnosis result as a diagnosis result.
Optionally, the diagnosing and analyzing the positioning result by a cause analyzing algorithm, after obtaining the diagnosing result, further includes:
early warning is carried out according to the diagnosis result, and secondary analysis is carried out on the application program to be analyzed according to the diagnosis result, so that a target analysis result is obtained;
and updating the preset reason mapping relation table based on the target analysis result.
Optionally, the obtaining the target keyword status data according to the cause analysis algorithm and the positioning result includes:
acquiring a system thread state grade;
analyzing the system thread state level based on a cause analysis algorithm to obtain system thread state information;
comparing the keyword information in the positioning result with the thread state information to obtain keyword state information;
and converting the keyword state information according to a preset structuring rule to obtain target keyword state data.
Optionally, before the obtaining the thread information of the application program to be analyzed, the method further includes:
acquiring original thread information of an application program;
extracting CPU utilization rate of the thread according to the original thread information;
comparing the CPU utilization rate of the thread with a preset CPU utilization rate threshold;
and when the CPU utilization rate of the thread exceeds the preset CPU utilization rate threshold value, storing the original thread information to obtain the thread information of the application program to be analyzed.
In addition, in order to achieve the above object, the present invention also provides an application positioning analysis device, including:
the acquisition module is used for acquiring the thread information of the application program to be analyzed;
the positioning module is used for positioning the thread information based on a positioning keyword algorithm to obtain a positioning result;
and the diagnosis module is used for carrying out diagnosis analysis on the positioning result to obtain a diagnosis result.
In addition, in order to achieve the above object, the present invention also provides an application positioning analysis apparatus, including: the system comprises a memory, a processor, and an application location analysis program stored on the memory and executable on the processor, the application location analysis program configured to implement the steps of the application location analysis method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon an application positioning analysis program which, when executed by a processor, implements the steps of the application positioning analysis method as described above.
The method comprises the steps of obtaining thread information of an application program to be analyzed; positioning the thread information based on a positioning keyword algorithm to obtain a positioning result; carrying out diagnosis analysis on the positioning result through a cause analysis algorithm to obtain a diagnosis result; the method comprises the steps of obtaining thread information with CPU utilization rate exceeding a preset utilization rate threshold value in an application program, extracting keywords in the thread information through a positioning keyword algorithm, determining state data of the extracted keywords according to a cause analysis algorithm, comparing the state data of the keywords with a preset cause mapping relation table to obtain a diagnosis result of a cause item, automatically positioning the application program with CPU surge height through the keyword algorithm, and carrying out cause analysis according to the cause mapping relation table, so that an analysis result can be conveniently and rapidly obtained.
Drawings
FIG. 1 is a schematic diagram of an application positioning analysis device of a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of an application positioning analysis method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of an application positioning analysis method according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of an application positioning analysis method according to the present invention;
FIG. 5 is a schematic diagram illustrating an overall analysis of an embodiment of an application positioning analysis method according to the present invention;
FIG. 6 is a block diagram of a first embodiment of an application positioning analysis device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an application positioning analysis device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the application positioning analysis apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is not limiting of the application positioning analysis apparatus and may include more or fewer components than shown, or certain components in combination, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an application positioning analysis program may be included in the memory 1005 as one type of storage medium.
In the application positioning analysis device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the application positioning analysis apparatus of the present invention may be provided in the application positioning analysis apparatus, and the application positioning analysis apparatus calls the application positioning analysis program stored in the memory 1005 through the processor 1001 and executes the application positioning analysis method provided by the embodiment of the present invention.
An embodiment of the present invention provides an application positioning analysis method, and referring to fig. 2, fig. 2 is a flow chart of a first embodiment of an application positioning analysis method according to the present invention.
In this embodiment, the application program positioning analysis method includes the following steps:
step S10: thread information of an application program to be analyzed is obtained.
It should be noted that, the application program positioning analysis method of the present invention may be applicable to all application programs running based on java virtual machines, and the execution subject of the present embodiment may be an analysis device for monitoring and analyzing an online application program, or may be other devices capable of implementing the same or similar functions, which is not limited in this embodiment.
In specific implementation, a developer writes a program code of an application program, puts the written program code into an online application program running on the basis of a java virtual machine, and periodically monitors the application program through Shell scripts (a program file formed by Shell commands), for example, obtains relevant information of the application program of the monitored java virtual machine every 10 s.
It should be understood that the application to be analyzed refers to an application program in which the CPU (Central Processing Unit ) usage exceeds a usage threshold set in advance in operation, and analysis is performed on the CPU occupancy rate being too high by acquiring thread information of the application program to be analyzed.
Step S20: and positioning the thread information based on a positioning keyword algorithm to obtain a positioning result.
It should be understood that the positioning key algorithm refers to a key algorithm that can position the thread information to a service method or a code block, and the positioning result refers to thread information related data, such as java, package, path, etc., obtained by the positioning key algorithm, which is not limited in this embodiment.
In specific implementation, related data of thread information in an application program to be analyzed is extracted through a positioning keyword algorithm, and the related data is stored for further analyzing reasons of overhigh CPU occupancy rate.
Step S30: and carrying out diagnosis analysis on the positioning result through a cause analysis algorithm to obtain a diagnosis result.
It should be noted that, the reason analysis algorithm refers to an information data algorithm which can filter the application program to be analyzed and is irrelevant to the extracted thread information, and classify the system thread state, so as to conveniently compare the thread state information of the application program to be analyzed with the classified system thread state, and rapidly diagnose the reason of the thread information, thereby obtaining the reason of the excessively high CPU occupancy rate in the application program.
The embodiment obtains the thread information of the application program to be analyzed; positioning the thread information based on a positioning keyword algorithm to obtain a positioning result; carrying out diagnosis analysis on the positioning result through a cause analysis algorithm to obtain a diagnosis result; the method comprises the steps of obtaining thread information with CPU utilization rate exceeding a preset utilization rate threshold value in an application program, extracting keywords in the thread information through a positioning keyword algorithm, determining state data of the extracted keywords according to a cause analysis algorithm, comparing the state data of the keywords with a preset cause mapping relation table to obtain a diagnosis result of a cause item, automatically positioning the application program with CPU surge height through the keyword algorithm, and carrying out cause analysis according to the cause mapping relation table, so that an analysis result can be conveniently and rapidly obtained.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of an application positioning analysis method according to the present invention.
Based on the above-mentioned first embodiment, the step S20 of the application positioning analysis method of this embodiment specifically includes:
step S201: and acquiring the original keyword information of the thread information.
It should be noted that, the original keyword information refers to extracting all the keyword information in the thread information.
Further, before extracting the original keyword information, the method further comprises: acquiring architecture characteristics of the application program to be analyzed; acquiring corresponding keyword data based on the architecture features; and determining a positioning keyword algorithm according to the keyword data.
In a specific implementation, a developer may formulate a keyword applicable to an application of the current application according to a technical architecture characteristic applied by the application, for example, if a technical stack used by the current application is a spring framework, a mybatis framework, and a mysql database system, an org instruction may be used, an apache web server, an ibatis framework is corresponding keyword data, and a path of a packet of the current application is cn. And constructing a positioning keyword algorithm according to the technical architecture characteristics and the keyword data corresponding to the technical architecture characteristics, so that the problem of high CPU utilization rate can be conveniently and rapidly searched and positioned according to the architecture characteristics.
It should be understood that, in order to determine the technical architecture characteristics of the application program to be analyzed, all application programs need to be filtered, so that the application program to be analyzed is determined, and then applicable keywords are formulated according to the architecture characteristics of the application program to be analyzed, and further, before the thread information of the application program to be analyzed is obtained, the method further includes:
acquiring original thread information of an application program; extracting CPU utilization rate of the thread according to the original thread information; comparing the CPU utilization rate of the thread with a preset CPU utilization rate threshold; and when the CPU utilization rate of the thread exceeds the preset CPU utilization rate threshold value, storing the original thread information to obtain the thread information of the application program to be analyzed.
It should be understood that the original thread information refers to all thread information of the application program, including usage information of the CPU; the preset CPU utilization rate threshold value refers to a CPU utilization rate range set in advance by a developer, for example, the CPU utilization rate exceeds 60%, so that the CPU surge of an application program can be judged, the CPU utilization rate of a thread is extracted according to original thread information, the CPU utilization rate is compared with the preset CPU utilization rate threshold value, when the CPU utilization rate of the thread exceeds the preset CPU utilization rate threshold value, the CPU surge of the application program is considered to be high, the use of a normal thread and the application program can be influenced, virtual machine blocking is caused, the use effect of a user is influenced, and the thread information with the CPU utilization rate exceeding the preset utilization rate threshold value is made durable. The CPU utilization rate threshold value can be adjusted at any time according to the running condition of the application program, when the application program runs relatively stuck, the CPU utilization rate threshold value can be set to 45% or 40%, once the CPU utilization rate of the application program exceeds the preset threshold value, the thread information of the application program can be persisted and stored for subsequent analysis and positioning; when the CPU utilization rate exceeds a preset CPU utilization rate threshold, the thread information which does not exceed the CPU utilization rate threshold can be filtered out, and the application program is monitored periodically.
It should be noted that, since the thread information is transient data, it is necessary to store the thread information in a persistent manner, that is, convert the thread information into persistent data and store the persistent data in a designated storage server, for example, mongolib, where the stored content needs to include main information such as trigger time and thread field information; after the thread information is stored, all the key information of the thread information can be acquired to locate the key.
Step S202: and extracting the original keyword information based on a positioning keyword algorithm to obtain positioning keyword information.
In specific implementation, the original keyword information is filtered according to the obtained original keyword information combined with the keyword data in the positioning keyword algorithm, and the keyword information which does not belong to the positioning keyword algorithm is filtered, so that the keyword information of the business method or the code block which can be positioned to the application program is left and used as the positioning keyword information.
Step S203: and obtaining a positioning result according to the positioning keyword information.
It should be understood that the positioning result refers to the keyword information position and the keyword data information in the thread information can be presented.
In specific implementation, the position and the keyword data of the keyword information in the thread information are locked by searching and comparing the obtained positioning keyword information with the thread information of the application program to be analyzed.
The embodiment obtains the original keyword information of the thread information; extracting the original keyword information based on a positioning keyword algorithm to obtain positioning keyword information; and obtaining a positioning result according to the positioning keyword information. All the key information of the thread information is filtered through a positioning key algorithm, the key information related to the thread information is extracted, the thread information is positioned according to the key information, and the key information in the thread information can be rapidly positioned through the key algorithm.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of an application positioning analysis method according to the present invention.
Based on the above-mentioned first embodiment, the step S30 of the application positioning analysis method of this embodiment specifically includes:
step S301: and obtaining target keyword state data according to the cause analysis algorithm and the positioning result.
It should be understood that the target keyword status data refers to status data of keywords obtained by classifying the keyword information of the positioning result in combination with the system thread status.
Further, the obtaining the target keyword status data according to the cause analysis algorithm and the positioning result includes:
acquiring a system thread state grade; analyzing the system thread state level based on a cause analysis algorithm to obtain system thread state information; comparing the keyword information with the thread state information to obtain keyword state information; and converting the keyword state information according to a preset structuring rule to obtain target keyword state data.
In a specific implementation, since the system thread state is mainly divided into: deadlock (deadlock), runnable (blocked), waiting for resources (waiting on condition), waiting for monitor (waiting for monitor entry), object waiting (in Objectwait) and normal blocking is accompanied by runnable, waiting for monitor entry is also accompanied by runnable, so that the states can be classified according to the system thread state and thread state characteristics to obtain three levels, namely deadlock (deadlock), runnable (runnable) and waiting for resources (waiting on condition), and the three levels are ordered according to the processing priority of the states to obtain first to third three levels, the first level being the most important level.
It should be appreciated that comparing the key information with the classified thread state information may result in state information of the key, i.e., state information of the thread containing the key information. For example, if the keyword status information is in Objectwait or waiting for monitor entry, the state of the keyword may be determined to be a waiting resource state, for example, if the keyword status information is runnable, the state of the keyword may be determined to be an operating state.
In specific implementation, the preset structuring rule refers to structuring arrangement according to rules such as an object numbered musical notation (JavaScript Object Notation, JSON) or an extensible markup language (Extensible Markup Language, XML) set in advance, and the target keyword state data refers to data obtained by converting and storing keyword state information.
It should be noted that, the state information of the keywords is determined to classify the states of the keywords, the classification result is converted according to the preset structuring rule, and the information is structured, converted and stored into a data format to obtain the state data of the target keywords, so that the state data of the keywords can be better analyzed.
Step S302: and carrying out reason item diagnosis on the target keyword state data according to a preset reason mapping relation table to obtain a reason item diagnosis result.
It should be noted that, the preset reason mapping relationship table refers to a table that is set by a developer in advance and maps a positioning keyword and a possible reason, and the table may be stored in a virtual machine server or a cloud server, which is not limited in this embodiment, and the reason item refers to a specific element in the preset reason mapping relationship table, and mainly includes: an admission grade (waiting on condition), an importance level, a located method full path, a possible cause and the like, and the cause items can be continuously increased according to the user requirements; the reason item diagnosis refers to a rule that specifically analyzes the reason list element.
In a specific implementation, a preset reason mapping relation table is queried according to the target keyword state data, for example, when the target keyword state data obtained through a positioning keyword algorithm and a reason analysis algorithm is org.apache.ibatis keyword and the state is deadlock, the reason item diagnosis can be initially performed on the target keyword state data according to the reason mapping relation table, and the diagnosis result is that the cause of the current CPU surge is caused by the database deadlock.
Step S303: and taking the cause item diagnosis result as a diagnosis result.
In a specific implementation, a preliminary CPU surge cause of an application program to be analyzed can be obtained according to a cause item diagnosis result, the cause item diagnosis result is used as a diagnosis result of the analysis, as shown in fig. 5, thread information in the application program is obtained, CPU utilization rate in the thread information is compared with a preset early warning threshold rule, when the CPU utilization rate exceeds the preset early warning threshold, the thread information is subjected to persistence processing and is stored as permanent data in a server, and the stored thread information data is analyzed according to an abnormality analysis component in a cause analysis algorithm and in combination with a positioning keyword algorithm to obtain the diagnosis result.
It should be noted that after the application program to be analyzed is analyzed and diagnosed to obtain a diagnosis result, the diagnosis result can be early-warned according to the diagnosis result and sent to the alarm component, so that a developer can analyze the reason of the CPU surge again according to the initial diagnosis result and the stored thread information, a final target analysis result is obtained, the accurate reason of the CPU surge can be obtained through the final target analysis result, the target analysis result is perfected to a preset reason mapping relation table to obtain a latest preset reason relation table, when the reason appears again, the application program can be directly analyzed according to the updated preset reason mapping relation table to obtain an accurate analysis result, the developer does not need to analyze again for the second time, and the labor cost is relieved.
According to the embodiment, target keyword state data are obtained according to a cause analysis algorithm and the positioning result; performing reason item diagnosis on the target keyword state data according to a preset reason mapping relation table to obtain a reason item diagnosis result; taking the cause item diagnosis result as a diagnosis result; the obtained keyword information is processed through a cause analysis algorithm to generate structured data, the generated structured data and a preset cause mapping relation table are subjected to cause item diagnosis, the structured data and possible causes are mapped to obtain a cause diagnosis result, and the causes with high CPU occupancy rate are rapidly analyzed through combination of the positioning keyword data and the cause mapping relation table to obtain a diagnosis effect, so that manual operation is effectively reduced, and user experience is better.
Referring to fig. 6, fig. 6 is a block diagram illustrating a first embodiment of an application positioning analysis apparatus according to the present invention.
As shown in fig. 6, an application positioning analysis device according to an embodiment of the present invention includes:
the obtaining module 10 is configured to obtain thread information of an application program to be analyzed.
And the positioning module 20 is used for positioning the thread information based on a positioning keyword algorithm to obtain a positioning result.
And the diagnosis module 30 is used for performing diagnosis analysis on the positioning result to obtain a diagnosis result.
The embodiment obtains the thread information of the application program to be analyzed; positioning the thread information based on a positioning keyword algorithm to obtain a positioning result; carrying out diagnosis analysis on the positioning result through a cause analysis algorithm to obtain a diagnosis result; the method comprises the steps of obtaining thread information with CPU utilization rate exceeding a preset utilization rate threshold value in an application program, extracting keywords in the thread information through a positioning keyword algorithm, determining state data of the extracted keywords according to a cause analysis algorithm, comparing the state data of the keywords with a preset cause mapping relation table to obtain a diagnosis result of a cause item, automatically positioning the application program with CPU surge height through the keyword algorithm, and carrying out cause analysis according to the cause mapping relation table, so that an analysis result can be conveniently and rapidly obtained.
In an embodiment, the positioning module 20 is further configured to obtain architectural features of the application to be analyzed; acquiring corresponding keyword data based on the architecture features; and determining a positioning keyword algorithm according to the keyword data.
In an embodiment, the positioning module 20 is further configured to obtain original keyword information of the thread information; extracting the original keyword information based on a positioning keyword algorithm to obtain positioning keyword information; and obtaining a positioning result according to the positioning keyword information.
In one embodiment, the diagnosis module 30 is further configured to obtain target keyword status data according to a cause analysis algorithm and the positioning result; performing reason item diagnosis on the target keyword state data according to a preset reason mapping relation table to obtain a reason item diagnosis result; and taking the cause item diagnosis result as a diagnosis result.
In an embodiment, the diagnostic module 30 is further configured to perform early warning according to the diagnostic result, and perform secondary analysis on the application to be analyzed according to the diagnostic result, so as to obtain a target analysis result; and updating the preset reason mapping relation table based on the target analysis result.
In one embodiment, the diagnostic module 30 is further configured to obtain a system thread status level; analyzing the system thread state level based on a cause analysis algorithm to obtain system thread state information; comparing the keyword information with the thread state information to obtain keyword state information; and converting the keyword state information according to a preset structuring rule to obtain target keyword state data.
In an embodiment, the obtaining module 10 is further configured to obtain original thread information of the application program; extracting CPU utilization rate of the thread according to the original thread information; comparing the CPU utilization rate of the thread with a preset CPU utilization rate threshold; and when the CPU utilization rate of the thread exceeds the preset CPU utilization rate threshold value, storing the original thread information to obtain the thread information of the application program to be analyzed.
In addition, in order to achieve the above object, the present invention also provides an application positioning analysis apparatus, including: the system comprises a memory, a processor, and an application location analysis program stored on the memory and executable on the processor, the application location analysis program configured to implement the steps of the application location analysis method as described above.
The application program positioning analysis device adopts all the technical schemes of all the embodiments, so that the application program positioning analysis device has at least all the beneficial effects brought by the technical schemes of the embodiments, and is not described in detail herein.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores an application program positioning analysis program, and the application program positioning analysis program realizes the steps of the application program positioning analysis method when being executed by a processor.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the application positioning analysis method provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. An application program positioning analysis method, which is characterized by comprising the following steps:
acquiring thread information of an application program to be analyzed;
positioning the thread information based on a positioning keyword algorithm to obtain a positioning result;
obtaining target keyword state data according to a cause analysis algorithm and the positioning result;
performing reason item diagnosis on the target keyword state data according to a preset reason mapping relation table to obtain a reason item diagnosis result;
taking the cause item diagnosis result as a diagnosis result;
the obtaining the target keyword state data according to the cause analysis algorithm and the positioning result comprises the following steps:
acquiring a system thread state grade;
analyzing the system thread state level based on a cause analysis algorithm to obtain system thread state information;
comparing the keyword information in the positioning result with the thread state information to obtain keyword state information;
and converting the keyword state information according to a preset structuring rule to obtain target keyword state data.
2. The application program positioning analysis method according to claim 1, wherein before the positioning is performed on the thread information based on the positioning keyword algorithm, the method further comprises:
acquiring architecture characteristics of the application program to be analyzed;
acquiring corresponding keyword data based on the architecture features;
and determining a positioning keyword algorithm according to the keyword data.
3. The application program positioning analysis method according to claim 1, wherein the positioning the thread information based on the positioning key algorithm to obtain a positioning result comprises:
acquiring original keyword information of the thread information;
extracting the original keyword information based on a positioning keyword algorithm to obtain positioning keyword information;
and obtaining a positioning result according to the positioning keyword information.
4. The application positioning analysis method according to claim 1, wherein the diagnosis analysis is performed on the positioning result by a cause analysis algorithm, and further comprising, after obtaining the diagnosis result:
early warning is carried out according to the diagnosis result, and secondary analysis is carried out on the application program to be analyzed according to the diagnosis result, so that a target analysis result is obtained;
and updating the preset reason mapping relation table based on the target analysis result.
5. The application positioning analysis method according to any one of claims 1 to 4, wherein before the obtaining the thread information of the application to be analyzed, further comprising:
acquiring original thread information of an application program;
extracting CPU utilization rate of the thread according to the original thread information;
comparing the CPU utilization rate of the thread with a preset CPU utilization rate threshold;
and when the CPU utilization rate of the thread exceeds the preset CPU utilization rate threshold value, storing the original thread information to obtain the thread information of the application program to be analyzed.
6. An application positioning analysis apparatus, characterized in that the application positioning analysis apparatus comprises:
the acquisition module is used for acquiring the thread information of the application program to be analyzed;
the positioning module is used for positioning the thread information based on a positioning keyword algorithm to obtain a positioning result;
the diagnosis module is used for obtaining target keyword state data according to a cause analysis algorithm and the positioning result; performing reason item diagnosis on the target keyword state data according to a preset reason mapping relation table to obtain a reason item diagnosis result; taking the cause item diagnosis result as a diagnosis result;
the diagnosis module is also used for acquiring the state grade of the system thread; analyzing the system thread state level based on a cause analysis algorithm to obtain system thread state information; comparing the keyword information in the positioning result with the thread state information to obtain keyword state information; and converting the keyword state information according to a preset structuring rule to obtain target keyword state data.
7. An application positioning analysis apparatus, characterized in that the application positioning analysis apparatus comprises: a memory, a processor, and an application location analysis program stored on the memory and executable on the processor, the application location analysis program configured to implement the application location analysis method of any of claims 1 to 5.
8. A storage medium having stored thereon an application positioning analysis program which, when executed by a processor, implements the application positioning analysis method according to any one of claims 1 to 5.
CN202111009445.2A 2021-08-30 2021-08-30 Application program positioning analysis method, device, equipment and storage medium Active CN113836004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111009445.2A CN113836004B (en) 2021-08-30 2021-08-30 Application program positioning analysis method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111009445.2A CN113836004B (en) 2021-08-30 2021-08-30 Application program positioning analysis method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113836004A CN113836004A (en) 2021-12-24
CN113836004B true CN113836004B (en) 2024-02-27

Family

ID=78961667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111009445.2A Active CN113836004B (en) 2021-08-30 2021-08-30 Application program positioning analysis method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113836004B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0778095A (en) * 1993-07-09 1995-03-20 Toshiba Corp Program abnormality cause analytic device
CN109240886A (en) * 2018-09-03 2019-01-18 平安科技(深圳)有限公司 Abnormality eliminating method, device, computer equipment and storage medium
CN109358975A (en) * 2018-09-28 2019-02-19 珠海市君天电子科技有限公司 A kind of analysis method, device, electronic equipment and storage medium that software is operating abnormally
CN110647451A (en) * 2019-08-30 2020-01-03 深圳壹账通智能科技有限公司 Application program abnormity analysis method and generation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0778095A (en) * 1993-07-09 1995-03-20 Toshiba Corp Program abnormality cause analytic device
CN109240886A (en) * 2018-09-03 2019-01-18 平安科技(深圳)有限公司 Abnormality eliminating method, device, computer equipment and storage medium
CN109358975A (en) * 2018-09-28 2019-02-19 珠海市君天电子科技有限公司 A kind of analysis method, device, electronic equipment and storage medium that software is operating abnormally
CN110647451A (en) * 2019-08-30 2020-01-03 深圳壹账通智能科技有限公司 Application program abnormity analysis method and generation method

Also Published As

Publication number Publication date
CN113836004A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
CN109284269B (en) Abnormal log analysis method and device, storage medium and server
CN110908883B (en) User portrait data monitoring method, system, equipment and storage medium
US9921937B2 (en) Behavior clustering analysis and alerting system for computer applications
US8261278B2 (en) Automatic baselining of resource consumption for transactions
US10452458B2 (en) Computer performance prediction using search technologies
US20150205691A1 (en) Event prediction using historical time series observations of a computer application
CN111290916B (en) Big data monitoring method, device and equipment and computer readable storage medium
US9870294B2 (en) Visualization of behavior clustering of computer applications
US10592325B2 (en) Enabling symptom verification
US20210182389A1 (en) Discrete Processor Feature Behavior Collection
US10185612B2 (en) Analyzing the availability of a system
CN105204825B (en) Method and device for monitoring terminal system safety
CN111274094A (en) Interface early warning method, system, equipment and storage medium
CN112882911A (en) Abnormal performance behavior detection method, system, device and storage medium
WO2015110873A1 (en) Computer performance prediction using search technologies
CN116340934A (en) Terminal abnormal behavior detection method, device, equipment and storage medium
CN112181704A (en) Big data task processing method and device, electronic equipment and storage medium
CN108089978B (en) Diagnosis method for analyzing performance and fault of ASP (active Server Page) and NET (network application software)
CN113836004B (en) Application program positioning analysis method, device, equipment and storage medium
US9141456B2 (en) System and method for performance management of large scale SDP platforms
CN110231921B (en) Log printing method, device, equipment and computer readable storage medium
CN115329347B (en) Prediction method, device and storage medium based on car networking vulnerability data
US9935812B1 (en) Performance evaluation of applications that access external resources
Fournier et al. Automatic cause detection of performance problems in web applications
US8949832B2 (en) Techniques for workload toxic mapping

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
GR01 Patent grant
GR01 Patent grant