Hi Chuck,
                   Why is it  usually better to set -Xms and -Xmx to the 
same value ? Can you please explain a little bit of this . Also there are 
some weird problems in running tomcat 6.0.18 with Jconsole remotely . It 
keeps giving me "Connection refused error" . Mark did mention about the 
new LifeCycleListener that we can expect to have out of the box in 6.0.19 
which is supposed to make life easy with using Jconsole but still then I 
don't have any clue to what I can do get going with Jconsole remotely .Any 
ideas ?BTW this is the thread that I am talking about here ..

http://www.mail-archive.com/users@tomcat.apache.org/msg51208.html

Regards,

Subhrajyoti 
Mobile: +919830079545
Mail: [EMAIL PROTECTED]
Web: www.labware.com

LabWare LIMS Solutions - Results Count



"Caldarale, Charles R" <[EMAIL PROTECTED]> 
10/02/2008 10:02 AM
Please respond to
"Tomcat Users List" <users@tomcat.apache.org>


To
Tomcat Users List <users@tomcat.apache.org>
cc

Subject
RE: Seek help for javax.servlet.ServletException: Java heap space






> From: BruceLee [mailto:[EMAIL PROTECTED]
> Subject: Seek help for javax.servlet.ServletException: Java heap space
>
> I tried JAVA_OPTS -Xms128m -Xmx512m -Xss1024k -XX:MaxPermSize=128m.
> On my local machine, everything is fine without any JAVA_OPTS
> customization.

What JVM are you using on your hosting server?

What JVM are you using on your local machine?

1) Read this:
http://wiki.apache.org/tomcat/FAQ/Memory

2) Use JConsole to see what's really going on in the Tomcat heap on your 
hosting server while it's running.

3) If JConsole access isn't permitted, turn on -verbose:gc to get an idea 
of what's happening with the heap.

4) Turn on -XX:+HeapDumpOnOutOfMemoryError and use jhat to see what's 
consuming the space.  Look here for info on jhat:
http://java.sun.com/javase/6/docs/technotes/tools/share/jhat.html

5) The -Xss value seems rather high; you normally don't have to play with 
this.

6) It's usually better to set -Xms and -Xmx to the same value to avoid 
heap thrashing.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you 
received this in error, please contact the sender and delete the e-mail 
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to