Dear All,
I always used tomcat from the point of view of developer.
But now I'm starting to use it also as a sys admin.
 
>From time to time I'm getting OutOfMemoryError.
I've just 128Mb of Ram on my webserver, and I'm running on Linux. tomcat
5.0.18
 
What I see on the manager complete status is that I've 
Free memory: 10.59 MB Total memory: 44.62 MB Max memory: 63.56 MB
Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current
thread count: 25 Current thread busy: 3

This is the command line used to start tomcat (as seen from the proc
directory for the PID of the main java process running)
/usr/java/current/bin/[EMAIL PROTECTED]/usr/tomcat/common/endo
[EMAIL PROTECTED]@/usr/java/current/lib/tools.jar:/usr/tomcat/bin/bootst
rap.jar:/usr/tomcat/bin/[EMAIL PROTECTED]/usr/to
[EMAIL PROTECTED]/usr/[EMAIL PROTECTED]/usr/tomcat/[EMAIL PROTECTED]
[EMAIL PROTECTED]@

And in the connector definition I've in the server.xml
 

    <Connector port="80"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               debug="0" connectionTimeout="20000"  />

 
I don't have many connection to the webserver, just 500-800 pages per
day, but when the above current thread count reaches the max of spare
threads the server goes in OutOfMemory.
 
What I'd like to know is some pointer on the memory management of
Tomcat, and, hopefully, some tips on what can be the problem in my
configuration.
 
thank you so much
Simone
 
-------------------------
Simone Chiaretta
 <http://www.piyosailing.com/S> www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"
 

Reply via email to