tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Blumenthal" <dan...@wordchamp.com>
Subject RE: Java heap space
Date Sat, 07 Oct 2006 16:21:53 GMT
The quick answer is no - all of the code is non-reentrant, and there aren't
many places for a memory leak to hide from the garbage collector, but saying
that there isn't a leak is like saying your code is bug free.  The one area
that is suspect is the database code - I'm fairly careful, but every once in
a while I find a PreparedStatement or ResultSet that isn't closed...

Still, these are two different tracks.  I'd like to get Java set up
correctly to give maximum memory to Tomcat, while simultaneously trying to
track down any leaks.

Daniel


> -----Original Message-----
> From: Santosh Puranshettiwar [mailto:santosh@wirkle.com] 
> Sent: Saturday, October 07, 2006 6:00 AM
> To: Tomcat Users List
> Subject: Re: Java heap space
> 
> Are you sure there isn't any memory leak? I mean it  might 
> happen that you are increasing the heap size just to delay 
> the OutOfMemoryErrors.
> 
> Santosh.
> 
> Daniel Blumenthal wrote:
> > I've been running a struts app on a plain vanilla install of Tomcat 
> > (5.0.28), and recently I've been getting some OutOfMemoryErrors.  I 
> > did some looking, and found the -Xms and -Xmx flags, and 
> was hoping to 
> > get some advice regarding good values.
> >
> > I'm upgrading to a couple of RH Linux servers which will only be 
> > running apache and tomcat (the database will be on other 
> machines).  
> > Each server has 4GB of memory.  What would reasonable 
> values be to get 
> > the best performance out of Tomcat?
> >
> > Thanks!
> >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 



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