tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Out of memory
Date Fri, 12 Aug 2005 14:54:05 GMT
You can also get OOME in development by causing restarts by copying class files or web.xml
files into a running web application with reloadable="true" and depending on how good you
are at cleaning out your appliacation this leaks until such a point you get the OOME usually
with PermGen error.

> -----Original Message-----
> From: Brian Cook [mailto:bcook@printtime.com]
> Sent: 12 August 2005 15:48
> To: Tomcat Users List
> Subject: Re: Out of memory
> 
> 
> 
> You would probably be better served looking at what you can change in 
> the app so it does not require so much RAM.  It has been my 
> experience 
> that when I get an out of memory error it is because I was 
> forgetting to 
> close an object, or calling too many large objects globally, 
> or reading 
> in too much data into a result set.
> 
> Of all my web apps only one requires the heap size to be 
> raised to the 
> 512MB limit.  It loads multiple 1MB - 10MB overlays them on 
> one another 
> and then dynamically overlays a lot of font specific 
> anti-aliasing text.
> 
> Unless the application is doing similarly demanding you would 
> probably 
> be better severed by debugging the app to see what is using 
> so much RAM.
> 
> If you are making a development error like say forgetting to close an 
> object something everyone on the list has done it is always better to 
> learn of errors as early as possible so you do not carry it over to 
> other apps.
> 
> A lesson I have learned the hard way.
> 
> 
> Allistair Crossley wrote:
> > Oh yes :) 
> > 
> > 
> >>-----Original Message-----
> >>From: Wolfgang Hackl [mailto:wolf.hackl@gmx.at]
> >>Sent: 12 August 2005 09:24
> >>To: Tomcat Users List
> >>Subject: RE: Out of memory
> >>
> >>
> >>
> >>
> >>>You can modify the memory settings for the windows service 
> >>
> >>also in the
> >>
> >>>service.bat file itself. I've been known to uninstall the 
> >>
> >>service, modify 
> >>
> >>>the bat file and then service install again. 
> >>
> >>Forget about a reinstall. Use regedit and go to 
> >>
> >>HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
> >>2.0\<yourTomcatServiceName>\Parameters\Java 
> >>
> >>and edit the JvmMx and JvmMs settings as your deployment requires.
> >>
> >>Kind regards
> >>Wolfgang
> >>
> >>-- 
> >>5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> >>+++ GMX - die erste Adresse für Mail, Message, More +++
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >>
> > 
> > 
> > 
> > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
> > -------------------------------------------------------
> > QAS Ltd.
> > Registered in England: No 2582055
> > Registered in Australia: No 082 851 474
> > -------------------------------------------------------
> > </FONT>
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> -- 
> Brian Cook
> Digital Services Analyst
> Print Time Inc.
> bcook@printtime.com
> 913.345.8900
> 
> 

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