tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <Peter.Crowt...@melandra.com>
Subject RE: Help Requested: Sending file attachments greater than 4mb causes OOM errors
Date Wed, 14 May 2008 14:24:32 GMT
> From: Lyman [mailto:lbyrd@memach.com]
> I increased the machine specs
> from 64mb ram 500 mhz pII to a P4 1.3ghz 1gb ram.

Java will only use the amount of RAM you tell it to, not the entire machine RAM.  It defaults
to a low value - probably 64Mbytes in your environment.  You'll need to add appropriate statements
to set Java's minimum and maximum heap memory to your Tomcat startup script.  From memory
(it's a long time since I used a non-Windows Tomcat) this comes down to adding something like:

export JAVA_OPTS=-Xms512m -Xmx768m

to catalina.sh - if it already has JAVA_OPTS in there, just add those to the end.  You'll
need to tune them so you still have enough memory for the OS and any other services on the
box.

http://wiki.apache.org/tomcat/FAQ/Memory is probably useful reading.

                - Peter

---------------------------------------------------------------------
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


Mime
View raw message