Howdy,

>We have found that if we push the server too hard, the Java VM running
>tomcat crashes.  I'm assuming it's running out of memory, or file
>descriptors, or somesuch.

You can take one of two approaches, or even both together:
- Write a little program that watches tomcat's PID (tomcat can write out
its PID to a file you designate when it starts up, see
$CATALINA_HOME/bin/catalina.sh for instructions), and if the PID is
unavailable for a few seconds restarts tomcat.

- Actually figure out when and why you're crashing, and tune your app
and the server to handle that load.  Increase memory and file
descriptors as needed, figure out what your max capacity is on your
current hardware, etc, ie actually do the work instead of covering
everything with the above band-aid.

>A temporary problem caused by a restart is acceptable.
>Flatlining due to a VM crash isn't.

I agree ;)  I always tell my engineers, however, that an improperly
benchmarked system is unacceptable as well, so that wouldn't even make
it to production without a clear specification of its max load and
required hardware/software configuration to support that load.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to