Where are the HeapDumpOnOutOfMemoryError and HeapDumpPath params set in the startup.bat file for Tomcat on a Windows PC? I put both params in the file as follows :
set JAVA_OPTS=-Xms100m -Xmx192m
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=c:\jakarta-tomcat\webapps
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
:end
Is that the area where those params should go? I'm getting the following message when I startup Tomcat > The filename, directory name, or volume label syntax is incorrect.
I'm not sure what part of the statement is incorrect. What am I missing here?
The -XX:+HeapDumpOnOutOfMemoryError command-line option tells the HotSpot VM to generate a heap dump when an allocation from the Java heap or the permanent generation cannot be satisfied.
If you want to split a command into several lines, you have to escape the newlines.
set JAVA_OPTS=-Xms100m -Xmx192m ^
-XX:+HeapDumpOnOutOfMemoryError ^
-XX:HeapDumpPath=c:\jakarta-tomcat\webapps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With