Reputation: 3848
I have my JRE on C:
drive but I want my heapdumps to be saved on D:
since I have less memory on C:
drive. So I added the below JVM arguments
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=E:\SAVE\
After adding this arguments my tomcat didn't startup and failing with below error
Commons Daemon procrun stderr initialized
Please use CMSClassUnloadingEnabled in place of CMSPermGenSweepingEnabled in the future
Unrecognized VM option 'HeapDumpPath=E:\SAVE\'
After removing -XX:HeapDumpPath=E:\SAVE\
tomcat starts up. Can someone please me whats wrong with the JVM argument?
Upvotes: 1
Views: 392
Reputation: 38541
I believe the first option is HeapDumpOnOutOfMemoryError
, which is slightly different than what you have:
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=E:\SAVE\
Upvotes: 1