title: Heap dump on Out of Memory error
body: <p>I am using Tomcat server and I want to get a heap dump on Out of Memory error.
  How can I do this by specifying parameters in the Catalina.bat file?
  Also is there a way to specify the path where the dump file is stored?</p>