java - tomcat not generating hprof file on outofmemory error -
itemprop = "text">
There is some memory leak problem in my web app that is posted in the tanker. I able to find the root cause by setting the HeapDumpOnOutOfMemory error :
-XX: -HeapDumpOnOutOfMemoryError -XX: HeapDumpPath = / usr / local / badge / log
and the badge has memory settings:
-Xms256m -Xmx768m -XX: PermSize = 128 -XX: MaxPermSize = 256M
Out of memory issue, I'm seeing
java.lang.OutOfMemoryError: Java heap space on the badge
Log file, but .hprof file is not generated. I'm missing some settings here
@ beny23 Is written in the form you should use the -XX: + HeapDumpOnOutOfMemoryError
and as stated here:
-XX: + HeapDumpOnOutOfMemoryError command line option hotspot tells VM to generate a heap dump when an allocation can not be satisfied with the Java Stack or the Permanent Generation. Running with this option is no overhead, and therefore it can be useful for production systems where OutOfMemoryError takes you to the surface for a long time.
The check was also in this option since its Java version 1.4. Update 12, 5.0 update 7.
Comments
Post a Comment