Method and system for inspecting memory leaks and analyzing contents of garbage collection files
AssigneeSap SE
InventorsIvo V. Simeonov, Krasimir I. Topchiyski
Life of this patent
Estimating the term…
Abstract
A system and method is provided to inspect memory leaks and analyze contents of garbage collection files. In one embodiment, a garbage collection file is selected from a plurality of garbage collection files at a file system. The garbage collection file includes histograms. Each histogram is compared with other histograms in the garbage collection file to identify objects associated with memory leaks The results of such comparison are provided.
Claims14
A computer-implemented method, the method comprising:
- using one or more processors to perform operations of:
- accessing a garbage collection file comprising a first histogram and a second histogram;
- automatically generating comparison data based on analysis of the first histogram and the second histogram, the generating comprising calculating a value reflecting deviation between a class parameter in the first histogram and the class parameter in the second histogram based on a number of instances for a class indicated in the first histogram and a number of instances for the class indicated in the second histogram;
- and
- automatically generating a report reflecting the comparison data.
A system comprising:
- a server including a computer system having a processor and a memory coupled with the processor, the memory having a runtime system environment, the server comprising:
- a request module to access a garbage collection file associated with the runtime system environment, the garbage collection file comprising a first histogram and a second histogram, and
- a histogram analyzer to automatically generate comparison data based on analysis of the first histogram and the second histogram, the generating comprising calculating a value reflecting deviation between a class parameter in the first histogram and the class parameter in the second histogram based on a number of instances for a class indicated in the first histogram and a number of instances for the class indicated in the second histogram;
- and
- a display device coupled with the server, the display device to display a report including the comparison data.
A machine-readable storage medium comprising instructions which, when executed, cause a machine to:
- in response to detecting an out of memory error, access a garbage collection file comprising a first histogram and a second histogram;
- automatically generate comparison data based on analysis of the first histogram and the second histogram, the generating comprising calculating a value reflecting deviation between a class parameter in the first histogram and the class parameter in the second histogram based on a number of instances for a class indicated in the first histogram and a number of instances for the class indicated in the second histogram;
- and
- automatically generate a report reflecting the comparison data.
Dependencies are inferred from the claim text.