reload no use?

2007-08-12 Thread John Pedersen
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?

2007-08-12 Thread Mark Thomas
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: reload no use?

2007-08-12 Thread John Pedersen
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: reload no use?

2007-08-12 Thread Carl
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 [EMAIL PROTECTED]
To: Tomcat Users List users@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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 







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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: reload no use?

2007-08-12 Thread Mark Thomas
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]