-
1. Re: HeapDumpOnOutOfMemoryError JVM option doesn't seem to work for Wildfly process
ctomc May 23, 2016 6:10 AM (in response to route_nl)you are not getting Out of memory error in JVM but on your system.
so kernel kills off the jvm process, so you cannot get the jvm dump, as it is not jvm that cannot allocate more memory, but kernel itself.
take a look at kernel log and you will see more details. there should be some messages around "OOM killer"
it should be in dmesg and/or /var/log/messages.
-
2. Re: HeapDumpOnOutOfMemoryError JVM option doesn't seem to work for Wildfly process
route_nl May 23, 2016 7:50 AM (in response to ctomc)Awesome, thanks for your fast reply.
You are correct, the kern.log shows Linux killed the JVM with the oom-killer. If we set the Xmx to a lower value, would that help to prevent the oom-killer killing the wildfly process before the Java OOME happens, so the heapdump can be completed?
-
3. Re: HeapDumpOnOutOfMemoryError JVM option doesn't seem to work for Wildfly process
ctomc May 23, 2016 8:38 AM (in response to route_nl)Route nl wrote:
If we set the Xmx to a lower value, would that help to prevent the oom-killer killing the wildfly process before the Java OOME happens, so the heapdump can be completed?
yes, if jvm runs out of memory, than jvm will do heap dump for you.
but you know you can always manually trigger memory dump using jmap tool in bin folder of jvm.
-
4. Re: HeapDumpOnOutOfMemoryError JVM option doesn't seem to work for Wildfly process
route_nl May 23, 2016 9:05 AM (in response to ctomc)yes, if jvm runs out of memory, than jvm will do heap dump for you.
but you know you can always manually trigger memory dump using jmap tool in bin folder of jvm.
Thank you!