[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: RE: Tuning Tomcat , i need some advice
From: "George Sexton" <gsexton () mhsoftware ! com>
Date: 2006-01-30 22:58:11
Message-ID: 20060130225812.6B1EB71975 () mail ! mhsoftware ! com
[Download RAW message or body]
My mistake.
http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm
George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
> -----Original Message-----
> From: George Sexton [mailto:gsexton@mhsoftware.com]
> Sent: Monday, January 30, 2006 3:50 PM
> To: 'Tomcat Users List'
> Subject: RE: Tuning Tomcat , i need some advice
>
> 80ms was with the server saturated and running 100% CPU
> utilization. Min
> times were in the 10ms range, with the more db intensive
> pages having min
> times in the 60ms range.
>
> Here's my complete testing results.
>
> http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?pa
> ge=622.html
>
> I'm sure a large part of my overhead was that the testing
> took place with
> the DB, and tomcat app on the same consumer grade machine.
>
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>
>
> > -----Original Message-----
> > From: Leon Rosenberg [mailto:rosenberg.leon@googlemail.com]
> > Sent: Monday, January 30, 2006 3:18 PM
> > To: Tomcat Users List
> > Subject: Re: Tuning Tomcat , i need some advice
> >
> > On 1/30/06, George Sexton <gsexton@mhsoftware.com> wrote:
> > > Database interaction is by far the major issue. In my
> > application, a page
> > > with no db interaction runs in something like 80ms, while a
> > page with DB
> > > interaction takes something like 350-400ms. There's no
> > silver bullet to
> > > tuning tomcat applications, and most of the advice you'll
> > get here won't
> > > make any difference (use this connector, instead of that).
> > So, my advice is:
> >
> > Hmm, 80 ms per page is extremely slow. We have a high traffic
> > application here with approx. 100 request / per second / per
> > webserver. Our middle execution time is by 10 ms (both db
> and not db).
> > Requests without calls to backend are served in below 1 millisecond
> > (mostly ajax).
> >
> > I would say that the most important point is the size of the jsp.
> > Large jsps need time, and CPU.
> >
> > Other points are:
> > Avg. Request duration.( see above). With 30 requests per second you
> > can't afford spending more than 33 ms per request.
> >
> > Connection Speed: If you have keep-alive on, the thread will be
> > blocked until the data is delivered. Http 1.1 (keep-alive)
> connections
> > consume 1.5 threads per connection. My advice: use http 1.0. Zipping
> > can also reduce thread consumption (but increase cpu consumption).
> >
> > WIth all above said, if you can serve fast enough, use no
> http1.1 and
> > zip, you can use tomcat default settings (max 150 threads).
> >
> > Alas, do you know your read/update ratio for the db? If you have
> > 80-90% reads on the DB, you can win a lot of performance through
> > caches.
> >
> > Regards
> > Leon
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic