Useful methods on the Runtime class:
In jdk 1+ Runtime.getRuntime().getTotalMemory();
In jdk 1+ Runtime.getRuntime().getFreeMemory();
In jdk 1.4 Runtime.getRuntime().getMaxMemory();
These methods are diagnostic. You'll need to find out why you are getting OutOfMemory errors. Time to profile your app...


HTH,

Jon


Neal wrote:


Does anyone know how I can check to see how much memory is in use or
available on Tomcat at any point in time?  I've been getting a
java.error.OutOfMemory error lately and I need to be able to track
what's going on.

Thanks.
Neal



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





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



Reply via email to