Re: Performance tricks with multiple tomcat instances

2006-03-14 Thread Darryl L. Miles
Leon Rosenberg wrote: Well, personally I had collywobbles before we've gone on 2 cpu machines, but it went well. I mean, as long as you are one cpu machine you can be sure that your threads are never really concurrent and atomic operations remain atomic (like ++) but in case of 2 cpus you start

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Performance tricks with multiple tomcat instances Tomcat APR will use one thread per connection. but APR also has non blocking option. Does Tomcat use the non-blocking option? (I haven&#

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Subject: Re: Performance tricks with multiple tomcat instances > > Tomcat APR will use one thread per connection. but APR also has non > blocking option. Does Tomcat use the non-blocking option? (I haven't looke

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Performance tricks with multiple tomcat instances the select (non blocking) capability would be required if you wanna do keep alive connections with less threads than connections that is why BEA

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] > Subject: Re: Performance tricks with multiple tomcat instances > > the select (non blocking) capability would be required > if you wanna do keep alive connections with less threads > than connections > that is why

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: The select capability isn't required to implement the behavior I described. Once the request is read in over the wire, the request object is passed off to a worker thread, and the reader thread goes back for another one. I'm going to have to dig deeper into the Catal

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: Performance tricks with multiple tomcat instances > > Hmm, I always thought operations which are declared atomic > are guaranted to be executed at once, for example addition. Addition is normally not atomic; assignm

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: Performance tricks with multiple tomcat instances > > In particular, assignment to variables of any type except > long or double is atomic. Note this is _assignment_ not arithmetic. Depending on the capabilities of

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
On 3/9/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > > Subject: Re: Performance tricks with multiple tomcat instances > > > > I mean, as long as you are one cpu machine you can be > > sure that your thr

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
On 3/9/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > > Subject: Re: Performance tricks with multiple tomcat instances > > > > I mean, as long as you are one cpu machine you can be > > sure that your thr

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Justin Greene
> -Original Message- > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 3:06 PM > To: Tomcat Users List > Subject: Re: Performance tricks with multiple > tomcat instances > > On 3/9/06, Justin Greene <[EMAIL PROTECTED]>

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: Performance tricks with multiple tomcat instances > > I mean, as long as you are one cpu machine you can be > sure that your threads are never really concurrent and > atomic operations remain atomic (like ++)

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
On 3/9/06, Justin Greene <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > > Sent: Thursday, March 09, 2006 10:28 AM > > To: Tomcat Users List > > Subject: Re: Performance tricks with multiple

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Justin Greene
> -Original Message- > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 10:28 AM > To: Tomcat Users List > Subject: Re: Performance tricks with multiple > tomcat instances > > On 3/9/06, Filip Hanik - Dev Lists <[EMAIL PROTECTE

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
On 3/9/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > he he, thats where bladeservers come in, of course, they are not cheap, > and you'd probably need a SAN! ;) yeah... and this is the point where the tco skyrockets ;:-) > > Filip Leon --

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Filip Hanik - Dev Lists
Leon Rosenberg wrote: On 3/9/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: If I were to add my two cents, I would say the OS scheduler, the bus, memory access all will play their part. ie, I think you will get more juice out of 8 single CPU machines each running a tomcat, than one ma

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
On 3/9/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > > Subject: Re: Performance tricks with multiple tomcat instances > > > > so with 4 tomcats I should reduce the number of gc threads to 2 per vm > > an

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
On 3/9/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > If I were to add my two cents, I would say the OS scheduler, the bus, > memory access all will play their part. > ie, I think you will get more juice out of 8 single CPU machines each > running a tomcat, than one machine with 8 CPU's,

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: Performance tricks with multiple tomcat instances > > so with 4 tomcats I should reduce the number of gc threads to 2 per vm > and with 2 tomcats to 4 for vm to have the same number of threads as > with single tom

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Filip Hanik - Dev Lists
If I were to add my two cents, I would say the OS scheduler, the bus, memory access all will play their part. ie, I think you will get more juice out of 8 single CPU machines each running a tomcat, than one machine with 8 CPU's, as your 8cpu machine will not have 8 parallel buses, 8 drives, 8 ev

Re: Performance tricks with multiple tomcat instances

2006-03-09 Thread Leon Rosenberg
Thanx Chuck, so with 4 tomcats I should reduce the number of gc threads to 2 per vm and with 2 tomcats to 4 for vm to have the same number of threads as with single tomcat, and hope that shorter gc runs will increase overall performance? What do you think, is it adviseable to have multiple tomcat

RE: Performance tricks with multiple tomcat instances

2006-03-09 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Performance tricks with multiple tomcat instances > > One of my assumption for relative bad performance is the gc. If I > install 2 or 4 tomcat instances on the same machine, I assume that if > I'm lucky the gc in the separate VMs will r