Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/16/2010 3:23 PM, Brian wrote: > Nov 15, 2010 8:37:28 PM org.apache.catalina.loader.WebappClassLoader > clearReferencesThreads > SEVERE: The web application [] is still processing a request that has yet to > finish. This is very likely t

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-16 Thread Brian
0.29 using more and more RAM until it collapses? > > On 16/11/2010 05:08, Brian wrote: > > I still have to find the reason of the leak. > > Tomcat attempts to find & notify you of potential memory leaks. You > reported messages in your logs at app reload. Did yo

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-16 Thread Pid
On 16/11/2010 05:08, Brian wrote: > I still have to find the reason of the leak. Tomcat attempts to find & notify you of potential memory leaks. You reported messages in your logs at app reload. Did you tell us what they are yet? p 0x62590808.asc Description: application/pgp-keys signatur

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Brian
t Users List > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > > From: Brian [mailto:bbprefix-m...@yahoo.com] > > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > > Isn't there a log of all the requests? > &

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Caldarale, Charles R
> From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > Isn't there a log of all the requests? Not by default, but you can enable the AccessLogValve in server.xml, that will display the request URI and the

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Brian
2010 10:38 PM > To: Tomcat Users List > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > > From: Brian [mailto:bbprefix-m...@yahoo.com] > > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > > sometimes Tomcat thin

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Caldarale, Charles R
> From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > sometimes Tomcat thinks that needs a huge buffer, so it makes > the array to increase to millions of chars. I have no such big > pages in my site This is

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Brian
Hi Chris, > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Monday, November 15, 2010 09:04 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > -BEGIN PGP SIGNED MESS

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/14/2010 1:30 AM, Brian wrote: > It seems that I solved my problems! So far, these are my > conclutions: > > - Very often, when I restart/redeploy my app, some garbage is left in > the memory. I don't know why, given that my code closes e

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread André Warnier
Rainer Jung wrote: André, On 14.11.2010 20:11, André Warnier wrote: For the "using JMX clients" page, may I recommend : http://code.google.com/p/jmxsh/ which for Java ignorami of my level, is a useful tool to do nifty things in a scripting (non-graphic) mode. I use it only for really simple thi

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Rainer Jung
André, On 14.11.2010 20:11, André Warnier wrote: For the "using JMX clients" page, may I recommend : http://code.google.com/p/jmxsh/ which for Java ignorami of my level, is a useful tool to do nifty things in a scripting (non-graphic) mode. I use it only for really simple things, but I have the

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-15 Thread Mark Thomas
On 14/11/2010 19:11, André Warnier wrote: > Great. > For the "using JMX clients" page, may I recommend : > http://code.google.com/p/jmxsh/ > which for Java ignorami of my level, is a useful tool to do nifty things > in a scripting (non-graphic) mode. > I use it only for really simple things, but I

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-14 Thread André Warnier
Pid wrote: On 14/11/2010 17:37, Konstantin Kolinko wrote: 2010/11/14 André Warnier : Jon Mercer wrote: On 14 November 2010 16:55, Pid wrote: On 13/11/2010 23:10, Leon Rosenberg wrote: On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: On 12/11/2010 21:27, Leon Rosenberg wrote: P.S. I have a s

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-14 Thread Pid
On 14/11/2010 17:37, Konstantin Kolinko wrote: > 2010/11/14 André Warnier : >> Jon Mercer wrote: >>> >>> On 14 November 2010 16:55, Pid wrote: >>> On 13/11/2010 23:10, Leon Rosenberg wrote: > > On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: >> >> On 12/11/2010 21:27, Leon Rosen

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-14 Thread Konstantin Kolinko
2010/11/14 André Warnier : > Jon Mercer wrote: >> >> On 14 November 2010 16:55, Pid wrote: >> >>> On 13/11/2010 23:10, Leon Rosenberg wrote: On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: > > On 12/11/2010 21:27, Leon Rosenberg wrote: >> >> P.S. I have a small tool that cr

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-14 Thread André Warnier
Jon Mercer wrote: On 14 November 2010 16:55, Pid wrote: On 13/11/2010 23:10, Leon Rosenberg wrote: On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: On 12/11/2010 21:27, Leon Rosenberg wrote: P.S. I have a small tool that creates a diff of two subsequent histograms, i can share it if you need i

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-14 Thread Jon Mercer
On 14 November 2010 16:55, Pid wrote: > On 13/11/2010 23:10, Leon Rosenberg wrote: > > On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: > >> On 12/11/2010 21:27, Leon Rosenberg wrote: > >>> P.S. I have a small tool that creates a diff of two subsequent > >>> histograms, i can share it if you need it

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-14 Thread Pid
On 13/11/2010 23:10, Leon Rosenberg wrote: > On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: >> On 12/11/2010 21:27, Leon Rosenberg wrote: >>> P.S. I have a small tool that creates a diff of two subsequent >>> histograms, i can share it if you need it. >> >> Post it to the wiki, perhaps? > > Which p

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Brian
or the 20 WARs full of static pages. This problem was also swallowing hundreds of MB! Brian > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Saturday, November 13, 2010 11:03 AM > To: Tomcat Users List > Subject: RE: Tomcat

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Brian
he LIMIT value =true, the buffer will shrink to 512 bytes again, huh? That will be nice. :-) > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Saturday, November 13, 2010 07:21 AM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using m

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Brian
ginal Message- > From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Sent: Friday, November 12, 2010 04:27 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > Hello Brian, > > maybe I missed half of the communicati

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Leon Rosenberg
On Sat, Nov 13, 2010 at 10:19 PM, Pid wrote: > On 12/11/2010 21:27, Leon Rosenberg wrote: >> P.S. I have a small tool that creates a diff of two subsequent >> histograms, i can share it if you need it. > > Post it to the wiki, perhaps? Which page would fit best? Leon > > > p > --

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Pid
On 13/11/2010 01:13, Brian wrote: > I had noticed some warnings about that indeed. What might those have been? Posting the information about what you found will help others understand the process you've been through, whether their problem is similar to yours and if a similar solution applies. p

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Pid
On 12/11/2010 21:27, Leon Rosenberg wrote: > P.S. I have a small tool that creates a diff of two subsequent > histograms, i can share it if you need it. Post it to the wiki, perhaps? p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Caldarale, Charles R
> From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > the Eden Space is barely used (10MB right now). The survivor > space is even less used (1MB right now). An object is normally created in Eden and will migrate

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Mark Thomas
On 12/11/2010 20:44, Christopher Schultz wrote: > In fact, that's a good test: search your memory snapshot for instances > of WebappClassLoader. There's a boolean in each one ("active" I think) It is "started". > that tells you if it's active. Force a couple of full GCs, then see how > many of th

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-13 Thread Mark Thomas
On 12/11/2010 20:35, Brian wrote: > Ok, I will do that now! > > I have taken another snapshot of the JVM a few minutes ago. Now I also see > that 160MB are being used by org.apache.jasper.runtime.BodyContextImpl. > This contains images of my DYNAMIC pages! That is sort of what I'd expect. A litt

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
y, November 12, 2010 02:19 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 12/11/2010 19:12, Brian wrote: > > Oh, I think I found what you were asking, the "path to the GC root": > > > > o

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
> To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Brian, > > On 11/12/2010 3:02 PM, Brian wrote: > >> -Original Message- > >> From: Christop

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Leon Rosenberg
..@yahoo.com] >> Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > >> Now I also see that 160MB are being used by >> org.apache.jasper.runtime.BodyContextImpl. > > There are a couple of system properties you can set to control this: > > org.

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Caldarale, Charles R
> From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > Now I also see that 160MB are being used by > org.apache.jasper.runtime.BodyContextImpl. There are a couple of system properties you can set to

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/12/2010 3:02 PM, Brian wrote: >> -Original Message- >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Sent: Thursday, November 11, 2010 02:39 PM > >> I agree with Chuck's assessment, but there may be some que

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
ubject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 12/11/2010 19:12, Brian wrote: > > Oh, I think I found what you were asking, the "path to the GC root": > > > > org.apache.naming.resources.FileDirCont

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
Hi Chris, I saved your email and hadn't replied yet. Here are my responses, thanks! > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, November 11, 2010 02:39 PM > To: Tomcat Users List > Subject: Re: Tomcat 6

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
schultz.net] > Sent: Friday, November 12, 2010 02:21 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Brian, > > On 11/12/2010 2:12 PM, Brian wrote: > >

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > On 11/12/2010 2:12 PM, Brian wrote: > > Oh, I think I found what you were asking, the "

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/12/2010 2:12 PM, Brian wrote: > Oh, I think I found what you were asking, the "path to the GC root": > > org.apache.naming.resources.FileDirContext$FileResource > org.apache.naming.resources.CacheEntry > org.apache.naming.resources.Cach

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Mark Thomas
On 12/11/2010 19:12, Brian wrote: > Oh, I think I found what you were asking, the "path to the GC root": > > org.apache.naming.resources.FileDirContext$FileResource > org.apache.naming.resources.CacheEntry > org.apache.naming.resources.CacheEntry[XXX] > org.apache.naming.resources.ResourceCache >

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/12/2010 11:19 AM, Brian wrote: > Great advice, thanks > I'm using it right now, and I'm also using www.yourkit.com as a trial. > My problem is in the "Tenured/Gen" area. There is where most of the RAM is > getting used. Now I need to

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
DirContext etc etc etc > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, November 12, 2010 01:38 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 12/11/2010 18:30, Brian wrot

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Caldarale, Charles R
> From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > I'm using Yourkit, and this this what I see. But we can't, since the mailing list strips attachments. - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Mark Thomas
On 12/11/2010 18:59, Brian wrote: > Well, maybe you can help me to make an interpretation. > > I'm using Yourkit, and this this what I see. The most RAM is used by byte > arrays. If I choose this entry in the list of classes, below you will see a > list of objects. If you choose the first one and

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
che.org] > Sent: Friday, November 12, 2010 01:38 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 12/11/2010 18:30, Brian wrote: > > Hi Mark, > > > > Besides using Tomcat to serve my app (which itself

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Mark Thomas
On 12/11/2010 18:30, Brian wrote: > Hi Mark, > > Besides using Tomcat to serve my app (which itself serves about 600,000 > diferent URLs), I also use it to serve static pages (HTML pages stored in > the hard disk). > I don't know if Tomcat is caching my dinamically generated pages (maybe it > is)

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
I let Google crawl my site with more speed, my site (and Tomcat itself, I guess) crashes sooner. > -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, November 12, 2010 01:19 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more a

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Mark Thomas
On 12/11/2010 18:13, Brian wrote: > I found the problem and this time it wasn't my fault! :-) I wouldn't be so sure about that just yet. > I used a profiler (www.yourkit.com) and took a snapshot of all the objects > in the JVM. I found that tons of RAM is being used by images of my delivered

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Thursday, November 11, 2010 02:11 PM > To: Tomcat Users List > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > From: Brian [mailto:bbprefix-m...@yahoo.com] > > Subject: Tomcat 6.0.29 using more

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Brian
essage- > From: Pid [mailto:p...@pidster.com] > Sent: Friday, November 12, 2010 03:49 AM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 12/11/2010 05:54, Brian wrote: > > Hi Pid, > > > > I did it,

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-12 Thread Pid
p >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Sent: Thursday, November 11, 2010 03:06 PM >> To: Tomcat Users List >> Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? >> >> On 11/11/2010 18:54, Brian wrote:

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
Thursday, November 11, 2010 03:06 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 11/11/2010 18:54, Brian wrote: > > I don't think my app is taking all this RAM, because when I restart > > it, the RAM usage does

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Pid
u already have it. It's in the java/bin directory. p >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Sent: Thursday, November 11, 2010 03:06 PM >> To: Tomcat Users List >> Subject: Re: Tomcat 6.0.29 using more and more RAM until it collap

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
t: Thursday, November 11, 2010 03:06 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 11/11/2010 18:54, Brian wrote: > > I don't think my app is taking all this RAM, because when I restart > > it, the RAM us

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
Thanks for the link. I will read it asap. > -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Thursday, November 11, 2010 03:01 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > On 11/11/2010 19:55,

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Thursday, November 11, 2010 02:55 PM > To: Tomcat Users List > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > From: Brian [mailto:bbprefix-m...

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Pid
On 11/11/2010 18:54, Brian wrote: > I don't think my app is taking all this RAM, because when I restart it, the > RAM usage doesn't go down. It does only if I restart Tomcat itself, instead > of my app running there. Yes, this is a classic sign of a problem with the app. Reboot Tomcat, restart yo

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Pid
On 11/11/2010 19:55, Caldarale, Charles R wrote: > From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > >> > Yes, in a Finally block. This is what I do: > I presume you mean you call your closeRsStmt() meth

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Thursday, November 11, 2010 02:39 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > -BEGIN PGP SIGNED MESS

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > Yes, in a Finally block. This is what I do: I presume you mean you call your closeRsStmt() method in a finally block, since there certainly aren't any finally clauses

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
sys.com] > Sent: Thursday, November 11, 2010 02:32 PM > To: Tomcat Users List > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > > From: Brian [mailto:bbprefix-m...@yahoo.com] > > Subject: RE: Tomcat 6.0.29 using more and more RAM until it c

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/11/2010 2:26 PM, Brian wrote: > I'm using it properly. After I perform a SQL sentence, I close the objects > (result set, then its statement). http://blog.christopherschultz.net/index.php/2009/03/16/properly-handling-pooled-jdbc-connect

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/11/2010 1:54 PM, Brian wrote: > I don't think my app is taking all this RAM, because when I restart it, the > RAM usage doesn't go down. That doesn't necessarily mean that your webapp isn't using all that heap space: it's very easy for a

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Caldarale, Charles R
> From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > After I perform a SQL sentence, I close the objects > (result set, then its statement). In a finally block? If not, you'll leave them open when an

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
onnections. > -Original Message- > From: Ben Souther [mailto:b...@souther.us] > Sent: Thursday, November 11, 2010 02:06 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > The most common cause of this, that I've seen

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: Tomcat 6.0.29 using more and more RAM until it collapses? > I don't think my app is taking all this RAM It is. > when I restart it, the RAM usage doesn't go down. Classic symptom of a webapp leaking memory due to

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Ben Souther
The most common cause of this, that I've seen is the failure to properly close all database connections. If you're using the container managed connection pooling, it is possible that restart your app won't free the ram consumed by any orphaned connections. Without seeing everthing you're doing ev

Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-11 Thread Brian
Hi, In my Linux machine, I'm using the JVM version 1.6.0_11-b03. On top of that, I only run Tomcat 6.0.29. On that Tomcat installation, I'm running a couple of sites, both of them use exactly the same code, actually it is the same WAR. So they are two apps, but we could consider them as one. T