On that note you can get NetBeans and its profiler and then profile your code.
 
http://www.netbeans.org

It will tell you different things about time spent.

Wade


----- Original Message ----
From: Leon Rosenberg <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Friday, October 5, 2007 3:11:48 PM
Subject: Re: How to increase Tomcat webserver speed?

many interesting mails, but lacking advices :-)

i would hardly recommend you to actually measure your webapps performance.
You can use a filter to measure the request duration, and measure the
db call duration from your persistence service and by that determine
where the time is lost, db or tomcat. Whatever it is, you can
investigate further.
Most database system also offer sql statement duration logging, so you
can see which statements take how long.
It can be the markup generation, the io, the database pooling, a bad
synchronized block, inefficent loop somewhere or 1000 other possible
causes. You will know when you start to measure :-)
regards
Leon


On 10/5/07, Stephen Caine <[EMAIL PROTECTED]> wrote:
> Keglius,
>
> Assuming you are using a web browser to display your data, consider
> the HTML used to construct the page.  Regardless of how fast your
> database is, using TABLEs will always be slower than just using PRE
> or BR tags.  While this may not be very pretty, it does result in
> much faster screen draws.  In some browsers, the table does not start
> drawing until the last record is transferred; while on others rows
> begin to appear as soon as the first record is transferred.
>
> The other suggestions, such as using indexes, will certainly help.
>
>  From our experience, with sufficient memory and CPU processing
> speed, Tomcat is very fast.
>
> Stephen Caine
> Soft Breeze Systems, LLC
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to