thank you!
I'm not sure how to set -XX:+HeapDumpOnOutOfMemoryError
I found somewhere I have to add it to JAVA_OPTS in catalina.sh

export JAVA_OPTS="-Xmx32000000 -Djava.awt.headless=true
-XX:+HeapDumpOnOutOfMemoryError"

is that right? is catalina.sh in $CATALINA_HOME/bin right script to edit?
Tomcat doesn't start after I changed it


Caldarale, Charles R wrote:
> 
>> From: dfobox [mailto:dfo...@gmail.com]
>> Subject: Re: Migrating website from own server to hosting company
>> 
>> Caused by: java.lang.OutOfMemoryError: Java heap space
>>
>> does it mean 32 Mb heap memory size isn't enough to 
>> resize 800 Kb picture?
> 
> Maybe.  A 32 MB heap is hardly enough to do anything, these days.  You may
> have a memory leak, or you may simply need a larger heap.  You can set
> -XX:+HeapDumpOnOutOfMemoryError to find out what the state of the world is
> at the time of the error.  You can also use various JDK tools such as
> jconsole, jmap, and jhat to monitor a running instance of your Tomcat. 
> Any of the numerous heap profilers would also help.
> 
>  - 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Migrating-website-from-own-server-to-hosting-company-tp23708196p23713893.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

Reply via email to