tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Mcminn" <NMcm...@theblragency.com>
Subject RE: How to monitor RAM Usage
Date Fri, 14 Nov 2003 19:22:19 GMT
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:nmcminn@NequalsOne.com
http://www.NequalsOne.com 

> -----Original Message-----
> From: neal cabage [mailto:nealcabage@yahoo.com] 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message