Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Recovery from OutOfMemoryError?

Andrew Miehs

2007-07-31

Replies:


On 31/07/2007, at 7:39 PM, Marco wrote:

> Dear Craig,
>
> You are familiar with, even with enough systemmemory, JVM uses limited
> memory?
> I your application consumes much memory, you could change settings
> in the
> tomcat6.conf file:
>
> #JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
> JAVA_OPTS="-Xmx1024M -Xms512M"

mx and ms should be the same for a server application.
And as mentioned by someone earlier, you will probably want to increase
MaxPermSize as well.

-Xmx1500m -Xms1500m -XX:MaxPermSize=256m

Cheers

Andrew




---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.