title: How to set HeapDumpOnOutOfMemoryError and HeapDumpPath in startup.bat file on Windows XP
body: <p>Where are the <b>HeapDumpOnOutOfMemoryError</b> and <b>HeapDumpPath</b> params set in the startup.bat file for Tomcat on a Windows PC? I put both params in the file as follows :</p>
  
  <pre><code>set JAVA_OPTS=-Xms100m -Xmx192m
  -XX:+HeapDumpOnOutOfMemoryError 
  -XX:HeapDumpPath=c:\jakarta-tomcat\webapps
  
  call "%EXECUTABLE%" start %CMD_LINE_ARGS%
  
  :end
  </code></pre>
  
  <p>Is that the area where those params should go? I'm getting the following message when I <b>startup</b> Tomcat >
  <b>The filename, directory name, or volume label syntax is incorrect.</b></p>
  
  <p>I'm not sure what part of the statement is incorrect. What am I missing here?</p>