RE: [OT] Shutdown hook for correctly unloading drivers

2010-04-07 Thread Propes, Barry L
Ok, thanks, Chris. I'll look more deeply into those potential issues. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, April 07, 2010 4:16 PM To: Tomcat Users List Subject: Re: [OT] Shutdown hook for correctly unloading dr

Re: [OT] Shutdown hook for correctly unloading drivers

2010-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, On 4/7/2010 2:53 PM, Propes, Barry L wrote: > Ok, Chris, thanks. > > Mine wasn't "recognizing" any app on the host and port. I've only done local profiling, not remote, so I won't be too much help, here. You might want to double-check any fir

RE: [OT] Shutdown hook for correctly unloading drivers

2010-04-07 Thread Propes, Barry L
r Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, April 07, 2010 11:03 AM To: Tomcat Users List Subject: Re: [OT] Shutdown hook for correctly unloading drivers -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, On 4/7/2010 10:18 AM, Propes, Barry L wrote: > Ok, thanks. Having a bit of a

Re: [OT] Shutdown hook for correctly unloading drivers

2010-04-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, On 4/7/2010 10:18 AM, Propes, Barry L wrote: > Ok, thanks. Having a bit of an issue early on, since I'm notusing an IDE of > any kind to embed it. That shouldn't be a problem: YourKit asks you to choose your IDE, just choose "Cancel". It's n

RE: Shutdown hook for correctly unloading drivers

2010-04-07 Thread Propes, Barry L
Ok, thanks. Having a bit of an issue early on, since I'm notusing an IDE of any kind to embed it. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, April 06, 2010 5:56 PM To: Tomcat Users List Subject: Re: Shutdown hook for correctly unloading drivers

Re: Shutdown hook for correctly unloading drivers

2010-04-06 Thread Mark Thomas
e a couple of times when I needed one for projects at work. Mark > > Thanks, > > Barry > > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, March 26, 2010 7:27 AM > To: Tomcat Users List > Subject: Re: Shutdown hook for corr

RE: Shutdown hook for correctly unloading drivers

2010-04-06 Thread Propes, Barry L
t: Re: Shutdown hook for correctly unloading drivers On 26/03/2010 11:52, Timo Meinen wrote: > Hi, > > I would like to know, if there is a shutdown-hook for Tomcat > available. Or what the prefered way is, to correctly unload drivers > like JDBC drivers. > > Unloading the

Re: AW: AW: Shutdown hook for correctly unloading drivers

2010-03-29 Thread Mark Thomas
On 29/03/2010 10:19, Steffen Heil wrote: > Hi > >>> I am thinking about a strategy to iterate over all running threads and >>> interrupt (and if absolutely necessary stop) all threads started by a >>> certain classloader (not sure if it is possible, but I suspect so - > might >>> require instrumen

AW: AW: Shutdown hook for correctly unloading drivers

2010-03-29 Thread Steffen Heil
Hi > > I am thinking about a strategy to iterate over all running threads and > > interrupt (and if absolutely necessary stop) all threads started by a > > certain classloader (not sure if it is possible, but I suspect so - might > > require instrumention though.) > Tomcat can already do this. Gr

RE: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Caldarale, Charles R
> From: Steffen Heil [mailto:li...@steffen-heil.de] > Subject: AW: Shutdown hook for correctly unloading drivers > > However, there are web applications that have own threads > (file reaper, connection pool, etc.). It's the application's responsibility to manage tho

Re: AW: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Mark Thomas
On 28/03/2010 19:46, Steffen Heil wrote: > Hi > > You wrote, that when an application is unloaded, that tomcat discards all > references to the classes of that web application, therefore the garbage > collector could effectively "unload" that application. > > However, there are web applications t

AW: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Steffen Heil
so - might require instrumention though.) Regards, Steffen -Ursprüngliche Nachricht- Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Gesendet: Sonntag, 28. März 2010 16:39 An: Tomcat Users List Betreff: RE: Shutdown hook for correctly unloading drivers > From: Steffen He

RE: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Caldarale, Charles R
> From: Steffen Heil [mailto:li...@steffen-heil.de] > Subject: AW: Shutdown hook for correctly unloading drivers > > This does not hold, as soon as Threads are involved, right? I don't understand your comment; Thread objects always exist, and what do you think that has to

AW: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Steffen Heil
Hi > > How does tomcat unload classes? > It doesn't, at least not directly. Tomcat simply eliminates all references to the classes; the actual unloading is done by GC at some point in the future. > > Is there even a way in java to do this? > Just the above. But making the classes unreachable sh

RE: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Caldarale, Charles R
> From: Steffen Heil [mailto:li...@steffen-heil.de] > Subject: AW: Shutdown hook for correctly unloading drivers > > How does tomcat unload classes? It doesn't, at least not directly. Tomcat simply eliminates all references to the classes; the actual unloading is done by GC

AW: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Steffen Heil
Hi > > I would like to know, if there is a shutdown-hook for Tomcat > > available. Or what the prefered way is, to correctly unload drivers > > like JDBC drivers. > Tomcat has unloaded the driver. That won't be causing your memory leak. How does tomcat unload classes? Some (especially some pool

Re: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Mark Thomas
On 26/03/2010 12:35, Timo Meinen wrote: > Hi Mark, > > thank you for the answer. I do have a YourKit license for our open > source framework, so I will profile my webapp. > >> Tomcat has unloaded the driver. That won't be causing your memory leak. > Does this mean, that the additional memory whic

Re: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Timo Meinen
Hi Mark, thank you for the answer. I do have a YourKit license for our open source framework, so I will profile my webapp. > Tomcat has unloaded the driver. That won't be causing your memory leak. Does this mean, that the additional memory which is allocated after a redeploy cannot be the mysql-d

Re: Shutdown hook for correctly unloading drivers

2010-03-26 Thread Mark Thomas
On 26/03/2010 11:52, Timo Meinen wrote: > Hi, > > I would like to know, if there is a shutdown-hook for Tomcat > available. Or what the prefered way is, to correctly unload drivers > like JDBC drivers. > > Unloading the drivers seems to be important for us, because after > redeploying the web app

Shutdown hook for correctly unloading drivers

2010-03-26 Thread Timo Meinen
Hi, I would like to know, if there is a shutdown-hook for Tomcat available. Or what the prefered way is, to correctly unload drivers like JDBC drivers. Unloading the drivers seems to be important for us, because after redeploying the web appliction to often during continuous integration leads to