> From: Jonathan Soons [mailto:jso...@juilliard.edu]
> Subject: More heap space for jhat
> 
> When I run jhat on this I get:
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> 
> Is there a way to make jhat use more memory? I cannot find a command
> line option that does this.

To quote from the Sun documentation on jhat:

-J<flag> 
    Pass <flag> to the Java virtual machine on which jhat is run. For example, 
-J-Xmx512m to use a maximum heap size of 512MB.

http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html

The -J option is the standard mechanism for most if not all of the JDK tools.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to