Thanks. How do I issue such a command?  Command line, etc?
 
Neal

Nathan Mcminn <[EMAIL PROTECTED]> wrote:
Neal,

This will get you the total amount of memory available to the JVM tomcat
is running in:
Runtime.getRuntime().totalMemory()

And this will get you the amount free
Runtime.getRuntime().freeMemory()

--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

> -----Original Message-----
> From: neal cabage [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 14, 2003 1:07 PM
> To: Tomcat Users List
> Subject: How to monitor RAM Usage
> 
> 
> 
> Does anyone know how I can montior RAM usage/availability on 
> Tomcat at any given time? 
> 
> I'm currently having a problem wherein Tomcat crashes about 
> once per week and gives the error Java.error.OutOfMemory but 
> I can't see any diagnostics by which to establish any 
> patterns. I also can't find this information on the Apache 
> site, after having looked for 1/2 hour. 
> 
> Any thoughts/info would be greatly appreciates.
> 
> Thanks.
> 
> Neal
> 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> 

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


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to