mirror of
https://github.com/corda/corda.git
synced 2025-06-23 17:53:31 +00:00
for heapdump=true builds, optionally generate dump on OOM
If the VM runs out of heap space and the "avian.heap.dump" system property was specified at startup, the VM will write a heap dump to the filename indicated by that property. This dump may be analyzed using e.g. DumpStats.java.
This commit is contained in:
@ -16,8 +16,9 @@ import java.util.Arrays;
|
||||
* heap dump generated by Avian's heapdump.cpp. The output is a list
|
||||
* of classes (identified by number in the case of anonymous,
|
||||
* VM-internal classes), each followed by (1) the total memory
|
||||
* footprint of all instances of the class, and (2) the number of
|
||||
* instances. The output is ordered by instance memory footprint.
|
||||
* footprint of all instances of the class in machine words, and (2)
|
||||
* the number of instances. The output is ordered by instance memory
|
||||
* footprint.
|
||||
*/
|
||||
public class DumpStats {
|
||||
private static final int Root = 0;
|
||||
|
Reference in New Issue
Block a user