> From: Scott Mueller [mailto:[EMAIL PROTECTED] 
> Subject: Re: Running out of memory too easily in Tomcat 6.0.16
> 
> Stores nothing ever in any sessions and I can't imagine 
> memory leaks with the simple code.

You can't ignore the Spring and Hibernate libraries, which could easily
be the cause of the problem.

> In the meantime, what's the proper way to increase the 
> memory allocated to tomcat?

Use -XX:MaxPermSize=xx to increase the space reserved for classes.  This
is only a stopgap, since your memory leak still exists.  References for
heap and GC management are here:
http://java.sun.com/javase/technologies/hotspot/gc/index.jsp

Most of that is related to the main Java heap rather than PermGen, so is
probably not pertinent to your situation.  Use JConsole to find out
what's actually going on inside the JVM memory spaces.

> And should I allocate more than my physical ram?

Definitely not - that will cause page thrashing and kill your
performance.

> Is there a general formula for how much ram to allocate to 
> tomcat on a machine dedicated to only that function?

No, because Tomcat itself uses very little of the heap; it's pretty much
all dependent on the webapp(s) you're running.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to