Re: Tomcat classloader memory leak when an object is stored into session

2014-02-10 Thread Michal Botka
On 07/02/2014, Mark Thomas wrote: > There is no leak. ... Hello Mark, thank you very mych for help and your great presentation. You were absolutely right, there was no memory leak :-) Obviously there was a different issue in my application causing the leak... I'm sorry for spamming. Best regards

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-07 Thread Mark Thomas
On 07/02/2014 06:38, Michal Botka wrote: > Is there a way how to avoid this leak? There is no leak. > I would like to develop an application which can be safely > deployed/undeployed without restarting the server. That is very much under your control. I'd suggest reading this: http://people.apac

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Mark Thomas
Michal Botka wrote: >Is there a way how to avoid this leak? >I would like to develop an application which can be safely >deployed/undeployed without restarting the server. >OK, now I know that my application cannot store it's objects into >session, but that is very strong requirement which the mos

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Fri, Feb 7, 2014 at 8:38 AM, Michal Botka wrote: > Is there a way how to avoid this leak? > I would like to develop an application which can be safely > deployed/undeployed without restarting the server. > OK, now I know that my application cannot store it's objects into > session, but that is

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Michal Botka
Is there a way how to avoid this leak? I would like to develop an application which can be safely deployed/undeployed without restarting the server. OK, now I know that my application cannot store it's objects into session, but that is very strong requirement which the most of the applications don'

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Fri, Feb 7, 2014 at 12:45 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > > Subject: Re: Tomcat classloader memory leak when an object is stored > into session > > > > When an appl

RE: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Subject: Re: Tomcat classloader memory leak when an object is stored into > session > > When an application stores an object into the session and then the > > application is reloaded using Tomcat Web App

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Leon Rosenberg
On Thu, Feb 6, 2014 at 11:58 PM, David Kerber wrote: > On 2/6/2014 3:13 PM, Michal Botka wrote: > >> When an application stores an object into the session and then the >> application is reloaded using Tomcat Web Application Manager, the >> classloader cannot be garbage collected. As a result, the

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread David Kerber
On 2/6/2014 3:13 PM, Michal Botka wrote: When an application stores an object into the session and then the application is reloaded using Tomcat Web Application Manager, the classloader cannot be garbage collected. As a result, the "OutOfMemoryError: PermGen space" error occurs after several relo

Tomcat classloader memory leak when an object is stored into session

2014-02-06 Thread Michal Botka
When an application stores an object into the session and then the application is reloaded using Tomcat Web Application Manager, the classloader cannot be garbage collected. As a result, the "OutOfMemoryError: PermGen space" error occurs after several reloads. To illustrate the issue, you can find