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 Sat, 15 Nov 2003 21:54:27 GMT
I just put them in a simple jsp page as scriptlets.  That way I can view
the mem usage from wherever I happen to be.

Like this in your jsp page

<%out.println(Runtime.getRuntime().totalMemory());%/>


--------------------------------------------
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 5:31 PM
> To: Tomcat Users List
> Subject: RE: How to monitor RAM Usage
> 
> 
> Thanks. How do I issue such a command?  Command line, etc?
>  
> Neal
> 
> 
> Nathan Mcminn <NMcminn@theblragency.com> 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: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
> 
> 
> ---------------------------------
> 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