Memory analysis method and device, system and computing device

A technology for computing equipment and memory analysis, applied in the computer field, which can solve the problem of inability to accurately know the distribution and occupation of heap memory consuming objects.

Active Publication Date: 2018-04-27
ALIBABA (CHINA) CO LTD
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Therefore, when an OOM error occurs, we want to know what objects occupy the heap of the JVM at this point in

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
  • Memory analysis method and device, system and computing device
  • Memory analysis method and device, system and computing device
  • Memory analysis method and device, system and computing device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0033] Before describing the present invention, several concepts involved in the present invention are briefly explained.

[0034] Memory mirroring: the heap information of the process.

[0035] Hprof file: the obtained memory image file, Hprof is the suffix of the file name.

[0036] JVM: The virtual machine where the Java program runs.

[0037] OOM: Out Of Memory Error in the Java language, because the heap space is exhausted, the progr...

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 memory analysis method and device, a system and a computing device. In the method, a memory image file of the heap data of a to-be-monitored process is obtained and parsed toobtain the object information and the object reference relationship of the predetermined type of object, then suspicious objects are determined based on the object information, and object reference chains of the suspicious objects are generated based on the object reference relationship. In this way, for the problem of excessive heap occupancy of the Java program, according to the long-tail theory and the actual situation, the memory analysis method and device, the system and the computing device place the analysis focus on large objects (such as a very long byte array), classify large objects as the suspicious objects, and can find out the cause of excessive heap occupancy of the Java program by obtaining the suspicious objects in the heap data of the process and the reference chains ofthe suspicious objects.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a memory analysis method, device, system and computing equipment. Background technique [0002] In application development, when the JVM (the virtual machine where the Java program runs) does not have enough memory to allocate space for the object and the garbage collector has no space to reclaim, an OOM (out of memory) error will be thrown. [0003] In Java programs, due to the automatic garbage collection mechanism, it is generally not necessary to actively release the memory occupied by unused objects, that is, theoretically speaking, there will be no OOM errors. However, if the coding is improper, for example, the reference of an object is placed in the global Map, although the method ends, the object cannot be recycled in time because the garbage collector will reclaim the memory according to the reference of the object. This makes the object continue to occupy memory, wh...

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/36G06F9/50
CPCG06F9/5016G06F11/3612G06F9/50G06F11/36
Inventor 韩进巍
Owner ALIBABA (CHINA) CO 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