You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Tom Grahame (GMSA)" <to...@gmsa.ac.uk> on 2008/08/27 16:21:33 UTC

Tomcat 5.5.26 OutOfMemoryError -Xms -Xmx Set

I'd like to confirm that I am trying the right things in fixing a memory
error and discover what else I can do to resolve my problem. I realise
this is a common problem as I have Googled, read the Tomcat memory FAQ
and searched the mailing lists. I have tried looking at catalina.out
however I am not a java programmer.

I am getting a "java.lang.OutOfMemoryError: Java heap space" error using
an application on the below configuration:

Tomcat 5.5.26
java-1.6.0-sun-1.6.0.5
CentOS 5.2 Linux 2.6.18-53.el5

Tomcat runs fine, the application extracts ok, my error occurs 16
seconds after trying to upload a 6MB XML file to the application. I am
running Tomcat using jsvc.
To try and fix the error I have appended:

JAVA_OPTS="$JAVA_OPTS -Xms512M -Xmx1620M"
CATALINA_OPTS="$CATALINA_OPTS -Xms512M -Xmx1620M"

to bin/catalina.sh

I am starting jsvc with -Xms512M -Xmx1620M.
Of 2026MB my system is using 1859MB of memory.

I can upload smaller files to the application, I'd like to be able to
upload larger ones too. I'd be very grateful if someone could suggest
what else I might try to resolve this directly or another route to
diagnosing the issue.

Thank you,

Tom

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5.26 OutOfMemoryError -Xms -Xmx Set

Posted by Kees Jan Koster <kj...@kjkoster.org>.
Dear Tom,

> I'd like to confirm that I am trying the right things in fixing a  
> memory
> error and discover what else I can do to resolve my problem. I realise
> this is a common problem as I have Googled, read the Tomcat memory FAQ
> and searched the mailing lists. I have tried looking at catalina.out
> however I am not a java programmer.

Here is a quick-start memory tuning guide I wrote earlier.

http://java-monitor.com/forum/showthread.php?t=30

Basically, you have to find and tune the right memory pool. Use  
jconsole to see what memory pool fills up.

Hope this helps.
--
Kees Jan

http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192

Human beings make life so interesting. Do you know that in a universe  
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry  
Partchett


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org