Re: After manager says that there was a leak, how to use a profiler?

2010-11-19 Thread Mark Thomas
On 19/11/2010 03:58, Brian wrote: Hi Chris, I already took off the JARs from the shared/lib directory. So that is not an issue now. I have just stopped my apps, and this is what I have found in my log: Nov 18, 2010 10:22:57 PM org.apache.catalina.core.StandardWrapper unload INFO:

RE: After manager says that there was a leak, how to use a profiler?

2010-11-19 Thread Brian
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, November 19, 2010 04:45 AM To: Tomcat Users List Subject: Re: After manager says that there was a leak, how to use a profiler? On 19/11/2010 03:58, Brian wrote: Hi Chris, I already took off the

RE: After manager says that there was a leak, how to use a profiler?

2010-11-18 Thread Brian
Hi Chris, I already took off the JARs from the shared/lib directory. So that is not an issue now. I have just stopped my apps, and this is what I have found in my log: Nov 18, 2010 10:22:57 PM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Nov

RE: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I'm doing it, thanks! -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, November 16, 2010 04:27 PM To: Tomcat Users List Subject: RE: After manager says that there was a leak, how to use a profiler? From: Brian

FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I will have to swallow my pride with this question. I bet this is a very easy issue, but for some reason I haven't found an answer. I moved my JARs from the .../tomcat/shared/lib directory to the web-inf/lib directory in the app itself, but it seems that the JARs there are not being discovered by

RE: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: FW: After manager says that there was a leak, how to use a profiler? I moved my JARs from the .../tomcat/shared/lib directory to the web-inf/lib directory in the app itself It better be WEB-INF/lib; case matters (even on Windows). it

Re: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Pid
On 17/11/2010 20:56, Brian wrote: I will have to swallow my pride with this question. I bet this is a very easy issue, but for some reason I haven't found an answer. I moved my JARs from the .../tomcat/shared/lib directory to the web-inf/lib directory in the app itself, but it seems that the

RE: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
Hi Chuck, -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 17, 2010 04:02 PM To: Tomcat Users List Subject: RE: After manager says that there was a leak, how to use a profiler? From: Brian [mailto:bbprefix-m...@yahoo.com]

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
-Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, November 17, 2010 04:02 PM To: Tomcat Users List Subject: Re: FW: After manager says that there was a leak, how to use a profiler? On 17/11/2010 20:56, Brian wrote: I will have to swallow my pride with this

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: FW: After manager says that there was a leak, how to use a profiler? It seems that the JARs inside ...WEB-INF/lib are not being discovered or used. Hence the request to see your catalina.properties - which looks fine. What's in

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, November 17, 2010 06:46 PM To: Tomcat Users List Subject: RE: FW: After manager says that there was a leak, how to use a profiler? From: Brian [mailto:bbprefix-m...@yahoo.com]

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
I have notices several weird things: - Sometimes it runs, sometimes it doesn't - When I'm in Eclipse, if I already started the Tomcat server and it is running, if I ask to run it again, it does without any error messages in the log It looks like if it was a syncronization issue. Something like

RE: FW: After manager says that there was a leak, how to use a profiler?

2010-11-17 Thread Brian
Solved: I had several contexts in my server, in each one was already a WAR created days ago. I forgot about all these old WARs. Since I took off my JARs from the shared/lib directory, all these old WARs could not work because they didn't include the JARs inside. So basically I was trying to run

Re: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Mark Thomas
On 16/11/2010 04:12, Brian wrote: Maybe my question sounded too vague and repetitive. What I meant is something like this Is the a class loader (or something like that) than I should start analyzing? I mean, is there a route I should follow in order to see which objects are stucked? If the

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Brian
Hi Mark, I read your information, which I will quote here: 1. Find an app that you can't reload without OOME 2. Get a profiler - I like Yourkit Full disclosure: they give ASF committers a free copy 3. Reload you app once 4. Use the profiler to look for instances of WebappClassLoader 5. Look

Re: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/16/2010 10:42 AM, Brian wrote: If I choose the report of Paths from GC roots from it, I see LOTS of items! And all of them have the loader of indication. All the items are classes programmed by me, so I guess I'm guilty, and not the

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Brian
All my JARs are in the shared directory that Tomcat has. I don't upload them in the WAR everytime I deploye again my app. Is that a problem? I have just read somewhere do it could actually be a problem, that when they are shared among the apps, bad things happen. I have basically two apps running,

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: After manager says that there was a leak, how to use a profiler? All my JARs are in the shared directory that Tomcat has. Is that a problem? Yes, that's a problem. You very likely have some references in the shared classes that

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Brian
Thanks a lot for the info Konstantin. I will read it asap! -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Monday, November 15, 2010 11:08 PM To: Tomcat Users List Subject: Re: After manager says that there was a leak, how to use a profiler?

After manager says that there was a leak, how to use a profiler?

2010-11-15 Thread Brian
Hi, After the Tomcat manager warns that there was a leak with one app what was stopped or undeployed, how do I use the profiler to investigate that? I mean, that is the starting point to analize that? What should I look for? Brian

Re: After manager says that there was a leak, how to use a profiler?

2010-11-15 Thread Konstantin Kolinko
2010/11/16 Brian bbprefix-m...@yahoo.com: Hi, After the Tomcat manager warns that there was a leak with one app what was stopped or undeployed, how do I use the profiler to investigate that? I mean, that is the starting point to analize that? What should I look for? E.g., using Eclipse MAT,

RE: After manager says that there was a leak, how to use a profiler?

2010-11-15 Thread Brian
Maybe my question sounded too vague and repetitive. What I meant is something like this Is the a class loader (or something like that) than I should start analyzing? I mean, is there a route I should follow in order to see which objects are stucked? If the Tomcat Manager knows that something got