RE: How to monitor RAM Usage

2003-11-17 Thread Shapira, Yoav

Howdy,

>Thanks. Out of curiosity, what sort of RAM allocations would you
typically
>do on a production UNIX machine?  Obviously I don't want to use up all
of
>my memory, but this and mySQL are my only two production apps.

There's no general answer: it depends on both your application and your
expected load.  Know what the expected load is, develop stress test
scripts the mimic it, and test your application.  If you run out of
memory, figure out why (leak or just not enough allocated), and repeat
this process until your app can handle the desire load with the desired
response time.

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]



RE: How to monitor RAM Usage

2003-11-15 Thread Nathan Mcminn
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:[EMAIL PROTECTED]
http://www.NequalsOne.com 

> -Original Message-
> From: neal cabage [mailto:[EMAIL PROTECTED] 
> 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 <[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
> 

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



RE: How to monitor RAM Usage

2003-11-14 Thread James Black
> Thanks. Out of curiosity, what sort of RAM allocations would you typically
> do on a production UNIX machine?  Obviously I don't want to use up all of
> my memory, but this and mySQL are my only two production apps.

  It depends on what your application does. Mine does a lot of graphs, and
the data could be considerable, so I have it where it can be up to 400M. You
could try 256M and see if that works for you.  Your unit tests should help
to see if that is enough.




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



Re: How to monitor RAM Usage

2003-11-14 Thread neal cabage
Thanks. Out of curiosity, what sort of RAM allocations would you typically do on a 
production UNIX machine?  Obviously I don't want to use up all of my memory, but this 
and mySQL are my only two production apps.
'
Thanks.
Neal


James Black <[EMAIL PROTECTED]> wrote:
neal cabage wrote:

>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. 
>
If you use top (on unix) or the taskmanager, on windows, you can see 
how large it gets. Most likely you will just need to add a java option 
to catalina.sh

try
JAVA_OPTS=-mx512m if you want it to grow to 512megs in size.

>
>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

RE: How to monitor RAM Usage

2003-11-14 Thread neal cabage
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

Re: How to monitor RAM Usage

2003-11-14 Thread James Black
neal cabage wrote:

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. 

 If you use top (on unix) or the taskmanager, on windows, you can see 
how large it gets. Most likely you will just need to add a java option  
to catalina.sh

try
JAVA_OPTS=-mx512m if you want it to grow to 512megs in size.
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]


RE: How to monitor RAM Usage

2003-11-14 Thread Nathan Mcminn
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]



How to monitor RAM Usage

2003-11-14 Thread neal cabage

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