Detecting method, device and system for performance deficiency

A defect detection and performance technology, applied in the field of Java performance testing, to avoid system crashes and ensure performance

Active Publication Date: 2013-05-15
ALIBABA GRP HLDG LTD
View PDF2 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, the inventor has found through research that there is no method for accurately detecting t

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Detecting method, device and system for performance deficiency
  • Detecting method, device and system for performance deficiency
  • Detecting method, device and system for performance deficiency

Examples

Experimental program
Comparison scheme
Effect test

specific example

[0138] The code snippet is as follows:

[0139]

[0140] In the above code segment, func() has applied for a connection object by calling getConnection in line 2, but in line 5, it has applied for a new connection object and lost the reference to the first applied object After that, when the program calls the func() method every time, it will result in applying for a new object without releasing it.

[0141] When the above code is run in the Java virtual machine, the performance defect detection method provided by this application will detect that there is a memory leak in the above code, and adjust the above code according to the detected performance defect. Line 5 can be deleted.

[0142] Similarly, if a thread deadlock is detected in this application, a resource allocation solution algorithm will be invoked accordingly to adjust the resource allocation during code execution to solve the thread deadlock problem.

[0143] For the aforementioned method embodiments, for th...

Embodiment 1

[0144] Corresponding to the method provided in Embodiment 1 of a performance defect detection method of the present application, see Figure 10 , the present application also provides Embodiment 1 of a performance defect detection device. In this embodiment, the device may include:

[0145] Data acquisition module 601 and detection module 602;

[0146] in:

[0147] The data acquisition module 601 is used to obtain the performance defect detection data of the Java program during the Java virtual machine JVM running the Java program, and the performance defect detection data includes:

[0148] The memory data of the JVM, the thread state data of the Java program and the response data of the Java program thread to the request sent by the client;

[0149] In this application, the Jstat tool in the Java JDK tool can be specifically set in the data acquisition module 601 to collect the JVM memory resource consumption data;

[0150] thread dump tool, thread dump tool is a tool for...

Embodiment 2

[0174] Corresponding to the method provided in Embodiment 2 of a performance defect detection method of the present application, see Figure 12 , the present application also provides a preferred embodiment 2 of a performance defect detection device. In this embodiment, the device may specifically include:

[0175] adjustment module 607;

[0176] The adjustment module 607 is configured to adjust the source code of the Java program according to the detected performance defect.

[0177] In this embodiment, the adjustment module 607 searches the Java program for the source code of the performance data according to the performance data corresponding to the detected performance defect, and adjusts the found source code according to the detected performance defect, so that the Java program Can better run in the actual computer system.

[0178] Corresponding to the above embodiments of a performance defect detection method and device in the present application, the present applicat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a detecting method, a detecting device and a detecting system for performance deficiency. The detecting method includes the following steps: obtaining performance deficiency detecting data of a Java program in the process that a Java virtual machine (JVM) runs the Java program, and detecting the performance deficiency of the Java program in the operational process of the Java program according to preset performance deficiency analysis rules and the performance deficiency detecting data, so that the existing performance deficiency of a Java program source code can be accurately determined before the running of the Java program in a real environment, and the source code with performance deficiency can be timely adjusted, the performance of a computer system which actually runs the Java program is guaranteed, and the problem of possible breakdown of the computer system due to the performance deficiency of the Java program when the computer system runs the Java program is further avoided.

Description

technical field [0001] The present application relates to the field of Java performance testing, in particular to a performance defect detection method, device and system. Background technique [0002] Java is an object-oriented programming language that can write cross-platform application software. A very important feature of the Java language is its independence from the platform. The use of Java virtual machine is the key to realize this feature. If a general high-level language is to be run on different platforms, at least it needs to be compiled into different object codes. [0003] A Java Virtual Machine (Java Virtual Machine, JVM) is a virtual computer that runs Java programs by simulating the functions of various computers on an actual computer. When implemented, the JVM can include a set of bytecode instruction sets, a set of registers, a stack, a garbage collection heap, and a storage method field. When the Java virtual machine runs a Java program, the source ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
Inventor 王成军
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products