简体   繁体   中英

Heap dump not generated

I have already added -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="C:\\hd.hprof" to Default VM arguments but I don't know why the heap dump file not generated when OutOfMemoryError thrown. Can anyone halp me?

More details:

  • My JRE version is 1.7.0_02

  • The heap dump is generated once for the first time but when I change HeapDumpPath, it not generated anymore. Already revert HeapDumpPath to be the same as the first time but heap dump still not generated

  • File C:\\hd.hprof already exists.

  • Below image is the eclipse dialog when I force close eclipse. In that dialog, I can see that eclipse have included my arguments ]![Below image is the eclipse dialog when I force closing eclipse. In that dialog, I can see that eclipse have included my arguments

在此处输入图片说明

Thanks you.

一些抛出的堆溢出并不是真正的溢出,而是计算后直接抛出。实际上并没有溢出,所以不会产生堆转储。例如使用DirectByteBuffer时

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM