Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
When dumping a heap that has big arrays java can crash. A debug build fails on an assert in heapDumper.cpp. Test: public static void main (String[] args) throws IOException { long[] a = new long[268435456]; // Sleep here and initiate a heapdump, for example with jcmd <pid> GC.heap_dump /tmp/dump.hprof Error: # A fatal error has been detected by the Java Runtime Environment: # # Internal Error ([...]/src/share/vm/services/heapDumper.cpp:1038) # assert(length_in_bytes > 0) failed: nothing to copy ...