On Monday 27 November 2006 19:37, Jon Miller wrote: 

> Is anyone running into issues with memory leaks occuring whenever a
> webapp is redeployed? 

Yes ... :)

> I've been having a lot of problems with this. I 
> think what's exacerbating the problem is that I'm using Hibernate and
> JAX-WS which I have bundled with my application which use a lot of
> memory.
>
> I think I read in a FAQ that even using a singleton in your app will
> cause memory leaks? Does anyone know if this is true?

It seems to be true if you implement your singletons using static instances. 
The way I understand it, each time you redeploy, Tomcat will reload your 
classes and as the result, create another set of instances of your 
singletons. See the description of the problem and some workarounds in

http://wiki.apache.org/tomcat/OutOfMemory

-- 
Nicholas Sushkin, Senior Software Engineer
Open Finance, Chelsea Piers Pier 62 Suite 316, New York NY 10011
Tel +1 646 723 2790 Fax +1 646 723 2789 [EMAIL PROTECTED]

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