OTUser
OTUser

Reputation: 3848

JVM argument to save heap dumps in different drive

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

Answers (1)

Amir Afghani
Amir Afghani

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

Related Questions