Re: question on multi -user performance

2002-11-07 Thread Collin VanDyck
It's possible that your servlet could be coded such that it is not
threadable.  Can you give an example of what your code is doing?


- Original Message -
From: "Tak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 6:28 AM
Subject: question on multi -user performance


> I'm performing a testing on the performance of tomcat 4.0.4 against the
> number of concurrent user. So I start from 1 request to call a servlet to
do
> a certain task and record the time elapsed. Then I start 2 requests at the
> same time to call the same servlet and do the same task again and record
the
> time elapsed. I repeat the testing for 3, 4 requests and so on. It is
found
> that it takes "N" ms for 1 request to finish.; it takes slightly less than
> "2N" ms to finish if there 2 requests; it takes slight less than "3N" ms
to
> finish for 3 requests; and so on.
>
> My question is whether the result is reasonable. If not, how can I tune
the
> tomcat server to have a better performance?
>
> Thanks
>
> Tak
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: question on multi -user performance

2002-11-07 Thread Ralph Einfeldt
Whether multithreaded will speed this up, depends
on the fact where the time is spent. If 90% of the 
time is spent in the cpu then this will not help
much as long as you don't put additional cpu's in 
the server.

Optimisation without profiling is worthless. If
you don't know where the time is spent you won't 
know where to twist the screws.

> -Original Message-
> From: Collin VanDyck [mailto:collin@;hannonhill.com]
> Sent: Thursday, November 07, 2002 3:20 PM
> To: Tomcat Users List
> Subject: Re: question on multi -user performance
> 
> 
> It's possible that your servlet could be coded such that it is not
> threadable.  Can you give an example of what your code is doing?
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: question on multi -user performance

2002-11-07 Thread Tak
My servlet to do a XSL transformation on the input XML.

Thanks

Tak

-Original Message-
From: Collin VanDyck [mailto:collin@;hannonhill.com] 
Sent: Thursday, November 07, 2002 10:20 PM
To: Tomcat Users List
Subject: Re: question on multi -user performance


It's possible that your servlet could be coded such that it is not
threadable.  Can you give an example of what your code is doing?


- Original Message -
From: "Tak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 6:28 AM
Subject: question on multi -user performance


> I'm performing a testing on the performance of tomcat 4.0.4 against 
> the number of concurrent user. So I start from 1 request to call a 
> servlet to
do
> a certain task and record the time elapsed. Then I start 2 requests at 
> the same time to call the same servlet and do the same task again and 
> record
the
> time elapsed. I repeat the testing for 3, 4 requests and so on. It is
found
> that it takes "N" ms for 1 request to finish.; it takes slightly less 
> than "2N" ms to finish if there 2 requests; it takes slight less than 
> "3N" ms
to
> finish for 3 requests; and so on.
>
> My question is whether the result is reasonable. If not, how can I 
> tune
the
> tomcat server to have a better performance?
>
> Thanks
>
> Tak
>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>