Re: Hundreds of Instances

2007-12-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Delian, Delian Krustev wrote: >>> Really? From your other message, you make it look like Java is taking >>> something like 1GB of memory. Sure, the JVM adds some overhead to the >>> heap size you configured, but it shouldn't be more than 5% or 10%...

Re: Hundreds of Instances

2007-12-05 Thread Delian Krustev
> > Really? From your other message, you make it look like Java is taking > > something like 1GB of memory. Sure, the JVM adds some overhead to the > > heap size you configured, but it shouldn't be more than 5% or 10%... > > nothing like 200%. It could be more that 200% depending on the heap size

Re: Hundreds of Instances

2007-12-05 Thread Breno Jacinto
Hi Christopher, > Nope. You'll have to write it yourself. fortunately, It's fairly simple > to write. Never written a Filter before? Just read the javadoc for the > Filter interface and it should all be clear. Thanks a lot. I'll check it out. > > - -chris > cheers, -- -- :: Breno Jacint

Re: Hundreds of Instances

2007-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Breno, Breno Jacinto wrote: >> /foo/bar.jsp?id=1324 27ms >> /foo/bar/jsp?id=1235 31ms >> /foo/baz.jsp 897234ms > > Is this filter provided by Tomcat? Is there any documentation on > this? The information would be very helpful, indeed. Nope. You

Re: Hundreds of Instances

2007-12-04 Thread Breno Jacinto
Hi Christopher, 2007/12/4, Christopher Schultz <[EMAIL PROTECTED]>: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Breno, > > Breno Jacinto wrote: > > http://www.freeunix.com.br/tomcat/all-2007-12-04-after-restart.html > > It looks like your JSPs are doing a /lot/ of work: > > jsp [ *.jsp ,

Re: Hundreds of Instances

2007-12-04 Thread Breno Jacinto
Hi Christopher, > You could turn on the AccessLogValve and then simply look at the log > files. Another option would be to write your own Valve or Filter and > record the accesses yourself, but the AccessLogValve is already there. I > think it can easily be configured to emit "standard" httpd-sty

Re: Hundreds of Instances

2007-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Breno, Breno Jacinto wrote: > http://www.freeunix.com.br/tomcat/all-2007-12-04-after-restart.html It looks like your JSPs are doing a /lot/ of work: jsp [ *.jsp , *.jspx ] Processing time: 28.512 s Max time: 14843 ms Request count: 8 Error count: 0

Re: Hundreds of Instances

2007-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Breno, Breno Jacinto wrote: > Hi Christopher, > > >>> Not really. I dont have the exact numbers, but I think we'd get at >>> most 50 users every 10 minutes = 5 users / min. I believe that´s >>> pretty low. >> Is that estimated, or measured? > >

Re: Hundreds of Instances

2007-12-04 Thread Breno Jacinto
Hi Chuck, 2007/12/3, Caldarale, Charles R <[EMAIL PROTECTED]>: > > From: Breno Jacinto [mailto:[EMAIL PROTECTED] > > Subject: Re: Hundreds of Instances > > > > when does tomcat creates a new thread, and > > when and how does it get deallocated? >

Re: Hundreds of Instances

2007-12-04 Thread Breno Jacinto
Hi Christopher, > > Not really. I dont have the exact numbers, but I think we'd get at > > most 50 users every 10 minutes = 5 users / min. I believe that´s > > pretty low. > > Is that estimated, or measured? It's just estimation. BTW, is there any tool that could help me with effectively

Re: Hundreds of Instances

2007-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Breno, Breno Jacinto wrote: >> Tomcat itself is extremely stable. This is most likely an application >> problem. Perhaps your application does well with little traffic but does >> not scale well. You got a burst of traffic and everything fell apart. ?

RE: Hundreds of Instances

2007-12-03 Thread Caldarale, Charles R
> From: Breno Jacinto [mailto:[EMAIL PROTECTED] > Subject: Re: Hundreds of Instances > > when does tomcat creates a new thread, and > when and how does it get deallocated? This is controlled by the maxThreads, maxSpareThreads, and minSpareThreads attributes of

RE: Hundreds of Instances

2007-12-03 Thread Caldarale, Charles R
> From: Breno Jacinto [mailto:[EMAIL PROTECTED] > Subject: Re: Hundreds of Instances > > They get very, very slow because Linux starts to swap like > crazy, after the Tomcat process eats almost 100% of RAM. If you're encountering significant swapping with your current hea

Re: Hundreds of Instances

2007-12-03 Thread Breno Jacinto
Hi, Just one curiosity came to my mind: when does tomcat creates a new thread, and when and how does it get deallocated? If this is not a question for this list, please ignore it. cheers, -- :: Breno Jacinto :: :: breno - at - gprt.ufpe.br :: :: FingerPrint :: 2F15 8A61 F566 E442 8581

Re: Hundreds of Instances

2007-12-03 Thread Breno Jacinto
Hi Christopher, 2007/12/3, Christopher Schultz <[EMAIL PROTECTED]>: > You are probably seeing 170 threads, not 170 Tomcat instances. Yes, you're right. I used instances because thats what tomcat says when it's shutting down. > Tomcat itself is extremely stable. This is most likely an appli

Re: Hundreds of Instances

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Breno, Breno Jacinto wrote: > I have an application running under Tomcat for a couple of months > now, and itś always been memory intensive (I run it in a combination > with Apache2 + JK + Berkeley DB XML in the backend). But from a few > days to