I was running a java application on Windows however it occasionally crashes every months due to peak traffic.To make things worse JVM automatically generated memory dumps everytime its crashes and eating disk space rapidly.Is there any JVM arguments/or any other methods to prevent it from generating full memory dumps as I don't need these many dumps?
Asked
Active
Viewed 545 times
1 Answers
1
Based on this answer you should add parameter in start command of JVM:
-XX:HeapDumpPath=/dev/null
On Windows command should be something like:
-XX:HeapDumpPath=NUL:
(the NUL is equivalent in Windows of /dev/null in UNIX and Linux)
To set zero size of core dump in entire OS (Linux) you can use this command:
ulimit -c -H 0
Romeo Ninov
- 6,677