You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Pedersen <jo...@gmail.com> on 2007/08/12 08:39:57 UTC

reload no use?

Hi,

When I reload an app for the third time, Tomcat hangs, and I have to stop
and start it - which is slow as the CPU is being used at close to 100%.

This has been the case with Tomcat 5 and 6, Windows 2000, XP and Vista.

I have to remember to stop/start Tomcat after the second reload. Is there a
better way?

Thanks,

John

Re: reload no use?

Posted by Carl <ca...@etrak-plus.com>.
We have a similar problem with our app.  We narrowed the problem down to the
way we have constructed/used our connection pooling.  Our solution for the
short term is to restart the server each time we update the app.  At some
point, we will get time to restructure the connection pooling process so
that we are not holding onto objects that can't be freed.

Thanks,

Carl
----- Original Message -----
From: "John Pedersen" <jo...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, August 12, 2007 10:52 AM
Subject: Re: reload no use?


> Nothing that suggests a memory leak. Do you have any suggestions how I
might
> go about finding where this might be happening? It only seems to happen on
> reload - otherwise, the app runs and runs.
>
> On 12/08/07, Mark Thomas <ma...@apache.org> wrote:
> >
> > John Pedersen wrote:
> > > When I reload an app for the third time, Tomcat hangs, and I have to
> > stop
> > > and start it - which is slow as the CPU is being used at close to
100%.
> > >
> > > This has been the case with Tomcat 5 and 6, Windows 2000, XP and
Vista.
> > >
> > > I have to remember to stop/start Tomcat after the second reload. Is
> > there a
> > > better way?
> >
> > I regularly re-load apps and the only time I have a problem is when
> > the app leaks memory. I would guess your app has a memory leak. Is
> > there anything in the logs?
> >
> > Mark
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>


----------------------------------------------------------------------------
----


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.13/947 - Release Date: 8/11/2007
2:29 PM


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


Re: reload no use?

Posted by Mark Thomas <ma...@apache.org>.
John Pedersen wrote:
> Nothing that suggests a memory leak. Do you have any suggestions how I might
> go about finding where this might be happening? It only seems to happen on
> reload - otherwise, the app runs and runs.

Get a profiler - I use YourKit since they have free license for open
source development - and test your application with it.

There are lots of things that can catch you out on re-load and not at
other times as the application gets a new classloader.

Mark


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


Re: reload no use?

Posted by John Pedersen <jo...@gmail.com>.
Nothing that suggests a memory leak. Do you have any suggestions how I might
go about finding where this might be happening? It only seems to happen on
reload - otherwise, the app runs and runs.

On 12/08/07, Mark Thomas <ma...@apache.org> wrote:
>
> John Pedersen wrote:
> > When I reload an app for the third time, Tomcat hangs, and I have to
> stop
> > and start it - which is slow as the CPU is being used at close to 100%.
> >
> > This has been the case with Tomcat 5 and 6, Windows 2000, XP and Vista.
> >
> > I have to remember to stop/start Tomcat after the second reload. Is
> there a
> > better way?
>
> I regularly re-load apps and the only time I have a problem is when
> the app leaks memory. I would guess your app has a memory leak. Is
> there anything in the logs?
>
> Mark
>
> ---------------------------------------------------------------------
> 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
>
>

Re: reload no use?

Posted by Mark Thomas <ma...@apache.org>.
John Pedersen wrote:
> When I reload an app for the third time, Tomcat hangs, and I have to stop
> and start it - which is slow as the CPU is being used at close to 100%.
> 
> This has been the case with Tomcat 5 and 6, Windows 2000, XP and Vista.
> 
> I have to remember to stop/start Tomcat after the second reload. Is there a
> better way?

I regularly re-load apps and the only time I have a problem is when
the app leaks memory. I would guess your app has a memory leak. Is
there anything in the logs?

Mark

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