tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Seek help for javax.servlet.ServletException: Java heap space
Date Thu, 02 Oct 2008 13:04:45 GMT
> From: Choudhury@labware.com [mailto:Choudhury@labware.com]
> Subject: RE: Seek help for javax.servlet.ServletException:
> Java heap space
>
> Why is it usually better to set -Xms and -Xmx to the
> same value ?

It avoids the overhead of expansion and contraction of the heap, including the associated
bookkeeping.  In this age of inexpensive RAM, there's no point in trying to be conservative.

> Also there are some weird problems in running tomcat 6.0.18
> with Jconsole remotely .

Only due to firewalls blocking the secondary JMX port.  You can run JConsole locally on the
target machine and tunnel the output to your display if using Linux.  (For Windows, use Terminal
Services to run JConsole locally.)  There's some overhead incurred on the target machine,
but when analyzing heap issues that's not a problem.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message