Unlock instant, AI-driven research and patent intelligence for your innovation.

A memory analysis method, 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: 2020-12-29
ALIBABA (CHINA) CO LTD
View PDF6 Cites 0 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 time, but now we cannot accurately know the distribution of objects at the time of abnormal heap memory consumption

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

Provided are a memory analysis method, a device, a system and a computing device. Wherein, a memory image file of heap data of a to-be-monitored process is acquired (S210); the memory image file is parsed to obtain object information and an object reference relationship of an object of a predetermined type (S220); an suspicious object is determined on the basis of the object information (S230); and an object reference chain of the suspicious object is generated on the basis of the reference relationship (S240). Thus, regarding the problem of large heap occupancy of Java applications, according to the long tail theory and the actual situation, an analysis is focused on large objects (such as a long array of bytes), and the large object is taken as a suspicious object. By acquiring the suspicious object in the heap data of the process and the reference chain for the suspicious object, causes for the problem why the heap occupancy of Java applications is large can be found out.

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36G06F9/50
CPCG06F9/5016G06F11/3612G06F9/50G06F11/36
Inventor 韩进巍
Owner ALIBABA (CHINA) CO LTD