Method, device and equipment for automatically locating system performance problems

By deploying the Optimizatio Agent and anaiygic unit analysis unit on the system server, performance indicators are automatically collected and analyzed, and a comparison report is generated, which solves the problem of low efficiency in locating system performance problems in the existing technology, and enables rapid positioning and provision of optimization suggestions.

CN112905431BActive Publication Date: 2024-09-13SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110244149.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-05
Publication Date
2024-09-13
Estimated Expiration
2041-03-05

AI Technical Summary

Technical Problem

In the existing technology, system performance problem locating relies on manual intervention, which is inefficient and complex. It is difficult to quickly locate performance problems caused by code problems, memory leaks, memory overflows, thread deadlocks, etc.

Method used

By deploying Optimizatio Agent on the server of the system under test, we collect performance indicator data and call various agents (CPU, Memory, Disk, DB, Thread) through the anaiygic unit analysis unit to check the preset items, and generate the pre-stress test and post-stress test results. Comparison report and provide optimization suggestions.

Benefits of technology

It realizes automatic positioning and optimization of system performance problems, reduces manual intervention, improves positioning efficiency, does not require other software for performance monitoring, and provides one-stop diagnosis and optimization suggestions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905431B
    Figure CN112905431B
Patent Text Reader

Abstract

The present invention relates to a method, device and equipment for automatically locating system performance problems, belonging to the field of communication technology. Optimization Agent is deployed and added on the server of the tested system to test the tested system; during the test, corresponding performance index data is collected through Optimization Agent and stored in a time series database; through an analytic unit analysis unit, Optimization Agent is called to check the preset inspection items of the tested server to parse out the content that needs to be optimized, and the content that needs to be optimized is stored in a MySql database; and a comparison report of the index before and after the stress test is generated. During the stress test, the performance bottleneck can be judged and an optimization plan can be given. The relevant performance indicators are collected by Optimization Agent, and routine inspections are performed through the analytic unit analysis unit, and the index reports before and after the stress test are issued, and the configuration items with relatively high performance utilization rates are displayed, and explanations are given; there is no need to perform performance monitoring through other software or commands; one-stop diagnosis and monitoring, and relevant optimization suggestions can be issued.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a method, device and equipment for automatically locating system performance problems. Background Art

[0002] In most technology companies, there is no or little software for automatically locating problems. Generally, when a problem is found, different locating software or monitoring commands need to be called manually to locate the problem. In this process, it mainly depends on the ability and experience of the executor. If the personnel do not understand the performance test positioning and have no positioning direction and goal, they will not be able to perform the task.

[0003] The existing background for locating performance problems relies on relevant personnel such as testers, DBAs, operations and maintenance, and developers. There is a lot of manual intervention, which inevitably increases communication costs and makes efficiency low. On the other hand, performance problems in the system are complex, such as: system problems caused by code problems, system problems caused by memory leaks, system problems caused by memory overflow (OOM), system problems caused by thread deadlocks, etc., or they may be caused by server kernel configuration (sysctl.conf) problems, database configuration (maxActive / maxIdle / initialSize / maxWait, etc.) problems, database index problems, slow SQL, and other series of problems that lead to performance problems. Therefore, how to quickly locate performance problems has become a technical problem that needs to be solved in the existing technology. Summary of the invention

[0004] The present invention provides an automatic location of system performance problems, which can quickly locate system performance problems by judging relevant monitoring indicators.

[0005] The technical solution provided by the present invention is as follows:

[0006] On the one hand, a method for automatically locating system performance problems is provided, wherein an Optimization Agent is deployed and added to a server of a system under test to test the system under test; the method comprises:

[0007] During the test, the corresponding performance indicator data is collected through the Optimization Agent and stored in a time series database;

[0008] Through the anaiygic unit analysis unit, the Optimization Agent is called to check the preset check items of the tested server, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database;

[0009] Based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database, a comparison report of the indicators before and after the stress test is generated, and the comparison report includes: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report.

[0010] Optionally, the Optimization Agent includes: a CPU agent, a Memory agent, a Disk agent, a DB agent and a Thread agent;

[0011] The Optimization Agent is called to check the preset check items of the tested server through the anaiygic unit analysis unit, and the content that needs to be optimized is parsed, including:

[0012] Through the anaiygic unit analysis unit, call the CPU agent to check the threads of the high-load CPU and dump thread information. Based on the information stored by the Thread agent, parse out the code that needs to be optimized;

[0013] Through the anaiygic unit analysis unit, call the Memory agent to check the gcutil situation, and then use the information stored by the Threadagent to parse out the code and JVM configuration items that need to be optimized;

[0014] Through the anaiygic unit analysis unit, call the DB agent to check the number of database connections and slow SQL status, and then use the information stored in the Thread agent to parse out the database configuration items that need to be optimized;

[0015] Through the anaiygic unit analysis unit, call the Disk agent to check the read and write status of the disk, and then use the information stored in the Thread agent to parse out the code and configuration items that need to be optimized.

[0016] Optionally, generating a comparison report of indicators before and after the stress test includes:

[0017] Generate indicator reports before and after stress testing, displaying configuration items whose performance utilization is higher than the preset threshold or whose performance utilization ranking is within the preset range, and display corresponding explanations.

[0018] Optionally, the calling of the CPU agent to check the threads of the high-load CPU and dump thread information further includes:

[0019] Call the CPU agent to check and record at least one monitoring indicator among user stack, system stack, interrupt, context switch, CPU load, CPULoad, CPU kernel function trace, and CPU scheduling level;

[0020] The calling of the Memory agent to check the gcutil situation also includes:

[0021] Call the Memory agent to check and record at least one monitoring indicator of memory activities, such as scanned pages, page fault tracking, memory swapping, available virtual memory, memory usage and saturation, and memory allocation tracking;

[0022] The calling of DB agent to check the number of database connections and slow SQL status also includes:

[0023] Call the DB agent to check at least one monitoring indicator among the custom slow SQL collection, real-time connection number collection, active connection number collection, cache pool size, query cache, and DB activity;

[0024] The calling of the Disk agent to check the read and write status of the disk also includes:

[0025] Call the Disk agent to check at least one monitoring indicator among the following: record tracking and statistics of logical I / O, page cache statistics of read and write, slow event file tracking, dynamic tracking file practice, file system cache hit rate, blocking I / O statistics, file block size, and disk I / O activity.

[0026] Optionally, the inspection items of the Thread agent include: recording at least one of dump Thread snapshots, multi-thread status, thread life cycle, JVM area status, GC recycling status, high resource consumption thread information, thread deadlock / loop, and Stack overflow.

[0027] In another aspect, a system performance problem automatic location device includes: an Optimization Agent module, the Optimization Agent module is set and deployed on a server of a system under test to test the system under test, the device includes: a collection module, an analysis and calling module, and a generation module;

[0028] The collection module is used to collect corresponding performance indicator data through the Optimization Agent during the test process and store it in a time series database;

[0029] The analysis calling module is used to call the OptimizationAgent to check the preset check items of the tested server through the anaiygic unit analysis unit, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database;

[0030] The generation module is used to generate a comparison report of indicators before and after stress testing based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database, and the comparison report includes: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report.

[0031] Optional, Optimization Agent in the Optimization Agent module, including: CPU agent, Memory agent, Disk agent, DB agent, and Thread agent;

[0032] The analysis and calling module is used to call the CPU agent through the anaiygic unit analysis unit to check the threads of the high-load CPU and dump the thread information, and parse out the code that needs to be optimized based on the information stored in the Thread agent; call the Memory agent through the anaiygic unit analysis unit to check the gcutil situation, and then parse out the code that needs to be optimized and the JVM configuration items that need to be optimized through the information stored in the Thread agent; call the DB agent through the anaiygic unit analysis unit to check the number of database connections and the slow SQL situation, and then parse out the database configuration items that need to be optimized through the information stored in the Thread agent; call the Disk agent through the anaiygic unit analysis unit to check the read and write status of the disk, and then parse out the code and configuration items that need to be optimized through the information stored in the Thread agent.

[0033] Optionally, the generation module is used to generate indicator reports before and after stress testing, displaying configuration items whose performance utilization is higher than a preset threshold or whose performance utilization ranking is within a preset range, and displaying corresponding explanations.

[0034] Optionally, the analysis and calling module is further used to call the CPU agent to check and record at least one monitoring indicator among user stack, system stack, interrupt, context switch, CPU load, CPULoad, CPU kernel function tracking, and CPU scheduling level; call the Memory agent to check and record at least one monitoring indicator among scanned pages, page fault tracking, memory swapping, available virtual memory, memory usage and saturation, memory allocation tracking, etc.; call the DB agent to check at least one monitoring indicator among custom slow SQL collection, real-time connection number collection, active connection number collection, cache pool size, query cache, and DB activity; call the Disk agent to check and record tracking and statistics of logical I / O, page cache statistics read and Write, slow event file tracking, dynamic tracking file practice, file system cache hit rate, blocking I / O statistics, file block size, and disk I / O activity.

[0035] In yet another aspect, a system performance problem automatic location device includes: a processor, and a memory connected to the processor;

[0036] The memory is used to store a computer program, and the computer program is used to at least execute any one of the above-mentioned methods for automatically locating system performance problems;

[0037] The processor is used to call and execute the computer program in the memory.

[0038] The beneficial effects of the present invention are:

[0039] The method, device and equipment for automatically locating system performance problems provided by the embodiment of the present invention deploy and add Optimization Agent on the server of the system under test to test the system under test; during the test, the corresponding performance indicator data is collected through the Optimization Agent and stored in the time series database; the Optimization Agent is called through the anaiygic unit analysis unit to check the preset inspection items of the server under test, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database; based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database, a comparison report of the indicators before and after the stress test is generated, and the comparison report includes: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report. During the stress test, the performance bottleneck can be judged and an optimization plan can be given. The relevant performance indicators are collected by the Optimization Agent, and the analytic unit analysis unit is used to perform routine inspections, and the indicator reports before and after the stress test are issued, and the configuration items with relatively high performance utilization rates are displayed, and explanations are given; there is no need to perform performance monitoring through other software or commands; one-stop diagnostic monitoring, and relevant optimization suggestions can be issued. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A schematic diagram of the structure of a device for automatically locating system performance problems provided by an embodiment of the present invention;

[0042] Figure 2 A schematic diagram of the structure of another specific automatic location device for system performance problems provided by an embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a flow chart of a method for automatically locating system performance problems provided by an embodiment of the present invention;

[0044] Figure 4 A schematic diagram of the structure of a device for automatically locating system performance problems provided by an embodiment of the present invention.

[0045] Figure numerals: 1-Optimization Agent module; 21-collection module; 22-analysis and calling module; 23-generation module; 41-processor; 42-memory. DETAILED DESCRIPTION

[0046] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0047] In the prior art, monitoring indicators through monitoring commands can only be monitored in real time, and cannot be stored. In addition, multiple monitoring windows need to be opened to monitor multiple systems, which is rather confusing. For Jprofiler / jvisualvm, relevant monitoring parameters must be configured in the server project process; then the tool obtains relevant data by remotely connecting to the project process, which brings some inconveniences. For example, the network of the online environment is isolated, and the local monitoring tool cannot connect to the online environment at all. In addition, commercial tools such as jprofiler require payment. The prior art can only monitor resource consumption, but cannot give corresponding optimal suggestions. For colleagues who lack performance testing experience, it is undoubtedly a painful analysis process.

[0048] In order to at least solve the technical problem proposed in the present invention, an embodiment of the present invention provides an automatic positioning device for system performance problems.

[0049] Figure 1 A schematic diagram of a system performance problem automatic location device provided by an embodiment of the present invention, see Figure 1The device of the embodiment of the present application may include: an Optimization Agent module 1, which can be set and deployed on the server of the system under test to test the system under test. The automatic positioning device of system performance problems includes: a collection module 21, an analysis and call module 22, and a generation module 23. Among them, the collection module 21 is used to collect corresponding performance indicator data through the Optimization Agent during the test process and store it in a time series database (TimeSeries DB). The analysis and call module 22 is used to call the Optimization Agent through the anaiygic unit analysis unit to check the preset inspection items of the server under test, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database. The generation module 23 is used to generate a comparison report of the indicators before and after the stress test based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database. The comparison report includes: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report.

[0050] Among them, Agent technology is a computer system packaged in a certain environment, which can act flexibly and autonomously in the environment to achieve the design purpose. In 1995, Wooldrige gave two definitions of Agent: (weak definition) Agent is used to describe a software and hardware system in the most general way. It has the following characteristics: autonomy, sociality, responsiveness, and initiative; (strong definition) In addition to all the characteristics in the weak definition, Agent should also have some characteristics that only humans have, such as knowledge, beliefs, obligations, intentions, etc.

[0051] Figure 2 A schematic diagram of another specific automatic location device for system performance problems provided by an embodiment of the present invention is shown in FIG. Figure 1 and Figure 2 ,Optionally, the Optimization Agent in the Optimization Agent module 1 includes: CPUagent, Memory agent, Disk agent, DB agent and Thread agent;

[0052] The analysis calling module 22 is used to call the CPU agent through the anaiygic unit analysis unit to check the threads of the high-load CPU and dump the thread information, and parse out the code that needs to be optimized based on the information stored in the Thread agent; call the Memory agent through the anaiygic unit analysis unit to check the gcutil situation, and then parse out the code that needs to be optimized and the JVM configuration items that need to be optimized through the information stored in the Thread agent; call the DB agent through the anaiygic unit analysis unit to check the number of database connections and the slow SQL situation, and then parse out the database configuration items that need to be optimized through the information stored in the Thread agent; call the Disk agent through the anaiygic unit analysis unit to check the read and write status of the disk, and then parse out the code and configuration items that need to be optimized through the information stored in the Thread agent.

[0053] TimeSeries DB: Time series database is mainly used to process data with time tags (changing in time sequence, i.e. time serialization). Data with time tags is also called time series data.

[0054] MySQL: It is a relational database management system. A relational database stores data in different tables instead of putting all the data in one large warehouse, which increases speed and flexibility.

[0055] Thread monitoring shell: show-busy-java-threads.sh.

[0056] Zabbix: It is an enterprise-level open source solution that provides distributed system monitoring and network monitoring functions based on the WEB interface.

[0057] Jprofiler: JProfiler is a commercial tool that is mainly used to check and track the performance of the system (limited to Java development). JProfiler can monitor the system's memory usage, garbage collection, thread operation status, etc. at any time.

[0058] visualvm: Used to view detailed information about Java technology-based applications running on the Java Virtual Machine (JVM).

[0059] Optionally, the generation module 23 is used to generate indicator reports before and after the stress test, displaying configuration items whose performance utilization is higher than a preset threshold or whose performance utilization ranking is within a preset range, and displaying corresponding explanations.

[0060] Optionally, the analysis call module 22 is also used to call the CPU agent to check and record at least one monitoring indicator among user stack, system stack, interrupt, context switch, CPU load, CPULoad, CPU kernel function tracking, and CPU scheduling level; call the Memory agent to check and record scanned pages, page fault tracking, memory swapping, available virtual memory, memory usage and saturation, memory allocation tracking, etc., at least one monitoring indicator in memory activities; call the DB agent to check at least one monitoring indicator among custom slow SQL collection, real-time connection number collection, active connection number collection, cache pool size, query cache, and DB activities; call the Disk agent to check and record tracking and statistics of logical I / O, page cache statistics read and Write, slow event file tracking, dynamic tracking file practice, file system cache hit rate, blocking I / O statistics, file block size, and disk I / O activities.

[0061] Optional inspection items of the Thread agent include: recording at least one of the following: dump Thread snapshot, multi-thread status, thread life cycle, JVM area status, GC recovery status, high resource consumption thread information, thread deadlock / loop, and Stackoverflow.

[0062] The automatic positioning device for system performance problems provided by the embodiment of the present invention deploys and adds Optimization Agent on the server of the system under test to test the system under test; during the test process, the corresponding performance indicator data is collected through the Optimization Agent and stored in the time series database; the Optimization Agent is called through the anaiygic unit analysis unit to check the preset inspection items of the server under test, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database; based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database, a comparison report of the indicators before and after the stress test is generated, and the comparison report includes: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report. During the stress test, the performance bottleneck can be judged and an optimization plan can be given. The relevant performance indicators are collected by the Optimization Agent, and the analytic unit analysis unit is used to perform routine inspections, and the indicator reports before and after the stress test are issued, and the configuration items with relatively high performance utilization rates are displayed, and explanations are given; there is no need to perform performance monitoring through other software or commands; one-stop diagnostic monitoring, and relevant optimization suggestions can be issued.

[0063] In this application, the problem of difficulty in troubleshooting performance problems in a link or a single node during stress testing is solved; the difficulty for testers or developers to locate problems is reduced; solutions to problems in multiple dimensions and levels are included and reasonable suggestions are given; the scalability is strong, and the positioning benchmark can be customized according to needs.

[0064] Based on a general inventive concept, an embodiment of the present invention further provides a method for automatically locating system performance problems.

[0065] Figure 3 A flow chart of a method for automatically locating system performance problems provided by an embodiment of the present invention is shown in FIG. Figure 3 , deploy and add Optimization Agent on the server of the system under test to test the system under test. The method provided by the embodiment of the present invention may include the following steps:

[0066] S31. During the test, the corresponding performance indicator data is collected through the Optimization Agent and stored in the time series database.

[0067] S32. Through the anaiygic unit analysis unit, the Optimization Agent is called to check the preset check items of the tested server, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database.

[0068] S33. Based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database, generate a comparison report of the indicators before and after the stress test, the comparison report including: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report.

[0069] Optional, Optimization Agent, including: CPU agent, Memory agent, Disk agent, DBagent and Thread agent;

[0070] Through the anaiygic unit analysis unit, call the Optimization Agent to check the preset check items of the tested server and parse out the content that needs to be optimized, including:

[0071] Through the anaiygic unit analysis unit, call the CPU agent to check the threads of the high-load CPU and dump thread information. Based on the information stored by the Thread agent, parse out the code that needs to be optimized;

[0072] Through the anaiygic unit analysis unit, call the Memory agent to check the gcutil situation, and then use the information stored by the Threadagent to parse out the code and JVM configuration items that need to be optimized;

[0073] Through the anaiygic unit analysis unit, call the DB agent to check the number of database connections and slow SQL status, and then use the information stored in the Thread agent to parse out the database configuration items that need to be optimized;

[0074] Through the anaiygic unit analysis unit, call the Disk agent to check the read and write status of the disk, and then use the information stored in the Thread agent to parse out the code and configuration items that need to be optimized (such as log classes, small file reading and writing, file merging, etc.).

[0075] Optionally, generate a comparison report of the indicators before and after the stress test, including:

[0076] Generate indicator reports before and after stress testing, displaying configuration items whose performance utilization is higher than the preset threshold or whose performance utilization ranking is within the preset range, and display corresponding explanations.

[0077] Optionally, call the CPU agent to check high-load CPU threads and dump thread information, including:

[0078] Call the CPU agent to check and record at least one monitoring indicator among user stack, system stack, interrupt (in), context switch (cs) <active context switch / inactive context switch>, CPU load, CPULoad, CPU kernel function tracking, and CPU scheduling level;

[0079] Call the Memory agent to check the gcutil status, including:

[0080] Call the Memory agent to check and record at least one monitoring indicator of memory activities, such as scanned pages, page fault tracking, memory swapping, available virtual memory, memory usage and saturation, and memory allocation tracking;

[0081] Call DB agent to check the number of database connections, slow SQL, and other information:

[0082] Call the DB agent to check at least one monitoring indicator among the custom slow SQL collection, real-time connection number collection, active connection number collection, cache pool size, query cache (hit rate), and DB activity;

[0083] Calling Disk agent to check the read and write status of the disk also includes:

[0084] Call Disk agent to check at least one monitoring indicator among the following: record tracking and statistics of logical I / O, page cache statistics of read() and Write(), slow event file tracking, dynamic tracking file practice, file system cache hit rate, blocking I / O statistics, file block size, and disk I / O activity.

[0085] Optional inspection items of the Thread agent include: recording at least one of the following: dump Thread snapshot, multi-thread status, thread life cycle, JVM area status, GC recovery status, high resource consumption thread information, thread deadlock / loop, and Stackoverflow.

[0086] Regarding the method in the above embodiment, the specific manner of performing the operation in each step has been described in detail in the embodiment of the device, and will not be elaborated here.

[0087] The method for automatically locating system performance problems provided by the embodiment of the present invention deploys and adds Optimization Agent on the server of the system under test to test the system under test; during the test, the corresponding performance indicator data is collected through the Optimization Agent and stored in the time series database; the Optimization Agent is called through the anaiygic unit analysis unit to check the preset inspection items of the server under test, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database; based on the performance indicator data in the time series database and the content that needs to be optimized in the MySql database, a comparison report of the indicators before and after the stress test is generated, and the comparison report includes: at least one of a hardware comparison report, an inspection item report or an optimization suggestion report. During the stress test, the performance bottleneck can be judged and an optimization plan can be given. The relevant performance indicators are collected by the Optimization Agent, and the analytic unit analysis unit is used to perform routine inspections, and the indicator reports before and after the stress test are issued, and the configuration items with relatively high performance utilization rates are displayed, and explanations are given; there is no need to perform performance monitoring through other software or commands; one-stop diagnostic monitoring, and relevant optimization suggestions can be issued.

[0088] Based on a general inventive concept, an embodiment of the present invention further provides a device for automatically locating system performance problems.

[0089] Figure 4 For a schematic diagram of a system performance problem automatic location device structure provided by an embodiment of the present invention, please refer to Figure 4 , an embodiment of the present invention provides a system performance problem automatic location device, including: a processor 41, and a memory 42 connected to the processor.

[0090] The memory 42 is used to store a computer program, and the computer program is used at least for the method for automatically locating system performance problems described in any one of the above embodiments;

[0091] The processor 41 is used to call and execute the computer program in the memory.

[0092] Based on a general inventive concept, an embodiment of the present invention further provides a storage medium.

[0093] A storage medium stores a computer program. When the computer program is executed by a processor, each step of the above-mentioned method for automatically locating system performance problems is implemented.

[0094] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0095] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0096] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0097] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0098] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0099] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0100] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0101] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0103] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for automatically locating system performance problems, It is characterized in that Deploy and add Optimization Agent on the server of the system under test to test the system under test; the method includes: During the test, the corresponding performance indicator data is collected through the Optimization Agent and stored in a time series database; Through the anaiygic unit analysis unit, the Optimization Agent is called to check the preset check items of the tested server, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database; Based on the performance indicator data in the time series database and the content to be optimized in the MySql database, a comparison report of the indicators before and after the stress test is generated, wherein the comparison report includes at least one of a hardware comparison report, an inspection item report, or an optimization suggestion report; The Optimization Agent includes: CPU agent, Memory agent, Disk agent, DBagent and Thread agent; The Optimization Agent is called to check the preset check items of the tested server through the anaiygic unit analysis unit, and the content that needs to be optimized is parsed, including: Through the anaiygic unit analysis unit, call the CPU agent to check the threads of the high-load CPU and dump the thread information. Based on the information stored by the Thread agent, parse out the code that needs to be optimized; Through the anaiygic unit analysis unit, call the Memory agent to check the gcutil situation, and then use the information stored by the Threadagent to parse out the code and JVM configuration items that need to be optimized; Through the anaiygic unit analysis unit, call the DB agent to check the number of database connections and slow SQL status, and then use the information stored in the Thread agent to parse out the database configuration items that need to be optimized; Through the anaiygic unit analysis unit, call the Disk agent to check the read and write status of the disk, and then use the information stored by the Threadagent to parse out the code and configuration items that need to be optimized; The calling of the CPU agent to check the threads of the high-load CPU and dump thread information also includes: Call the CPU agent to check and record at least one monitoring indicator among user stack, system stack, interrupt, context switch, CPU load, CPULoad, CPU kernel function trace, and CPU scheduling level; The calling of the Memory agent to check the gcutil situation also includes: Call the Memory agent to check and record at least one monitoring indicator among scanned pages, page fault tracking, memory swapping, available virtual memory, memory usage and saturation, memory allocation tracking, and memory activity; The calling of DB agent to check the number of database connections and slow SQL status also includes: Call the DB agent to check at least one monitoring indicator among the custom slow SQL collection, real-time connection number collection, active connection number collection, cache pool size, query cache, and DB activity; The calling of the Disk agent to check the read and write status of the disk also includes: Call the Disk agent to check at least one monitoring indicator among the following: record tracking and statistics of logical I / O, page cache statistics of read and write, slow event file tracking, dynamic tracking file practice, file system cache hit rate, blocking I / O statistics, file block size, and disk I / O activity.

2. The method according to claim 1, It is characterized in that The generated comparison report of indicators before and after stress testing includes: Generate indicator reports before and after stress testing, displaying configuration items whose performance utilization is higher than the preset threshold or whose performance utilization ranking is within the preset range, and display corresponding explanations.

3. The method according to claim 1, It is characterized in that The inspection items of the Thread agent include: recording at least one of dump Thread snapshots, multi-thread status, thread life cycle, JVM area status, GC recycling status, high resource consumption thread information, thread deadlock / loop, and Stack overflow.

4. A device for automatically locating system performance problems, It is characterized in that include: Optimization Agent module, the Optimization Agent module is deployed on the server of the system under test to test the system under test, the device includes: a collection module, an analysis and calling module, and a generation module; The collection module is used to collect corresponding performance indicator data through the Optimization Agent during the test process and store it in a time series database; The analysis calling module is used to call the Optimization Agent to check the preset check items of the tested server through the anaiygic unit analysis unit, parse out the content that needs to be optimized, and store the content that needs to be optimized in the MySql database; The generating module is used to generate a comparison report of the indicators before and after the stress test based on the performance indicator data in the time series database and the content to be optimized in the MySql database, wherein the comparison report includes at least one of a hardware comparison report, an inspection item report or an optimization suggestion report; Among them, the Optimization Agent in the Optimization Agent module includes: CPU agent, Memoryagent, Disk agent, DB agent and Thread agent; The analysis and calling module is used to call the CPU agent through the anaiygic unit analysis unit to check the threads of the high-load CPU and dump the thread information, and parse out the code that needs to be optimized based on the information stored in the Thread agent; call the Memory agent through the anaiygic unit analysis unit to check the gcutil situation, and then parse out the code that needs to be optimized and the JVM configuration items that need to be optimized through the information stored in the Thread agent; call the DB agent through the anaiygic unit analysis unit to check the number of database connections and the slow SQL situation, and then parse out the database configuration items that need to be optimized through the information stored in the Thread agent; call the Disk agent through the anaiygic unit analysis unit to check the read and write status of the disk, and then parse out the code and configuration items that need to be optimized through the information stored in the Thread agent; The analysis calling module is also used to call the CPU agent to check and record at least one monitoring indicator among user stack, system stack, interrupt, context switch, CPU load, CPULoad, CPU kernel function tracking, and CPU scheduling level; call the Memoryagent to check and record at least one monitoring indicator among scanned pages, page fault tracking, memory swapping, available virtual memory, memory usage and saturation, memory allocation tracking, and memory activity; call the DB agent to check at least one monitoring indicator among custom slow SQL collection, real-time connection number collection, active connection number collection, cache pool size, query cache, and DB activity; call the Diskagent to check and record tracking and statistics of logical I / O, page cache statistics read and Write, slow event file tracking, dynamic tracking file practice, file system cache hit rate, blocking I / O statistics, file block size, and disk I / O activity.

5. The device according to claim 4, It is characterized in that The generation module is used to generate indicator reports before and after stress testing, display configuration items whose performance utilization rate is higher than a preset threshold or whose performance utilization rate ranking is within a preset range, and display corresponding explanations.

6. A device for automatically locating system performance problems, It is characterized in that include: A processor, and a memory connected to the processor; The memory is used to store a computer program, and the computer program is used to at least execute the method for automatically locating system performance problems according to any one of claims 1 to 3; The processor is used to call and execute the computer program in the memory.

Citation Information

Patent Citations

  • Method for acquiring and analyzing performance data of server

    CN101533366A

  • Application database dynamic property detection method and detection device

    CN105760286A

  • System performance measurement method, storage medium and server

    CN108446210A

  • Code detection method, device and equipment and readable storage medium

    CN110941553A

  • Monitoring memory consumption

    US20100153475A1