Leon Rosenberg wrote:
On 6/19/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote:
Leon Rosenberg wrote:
>> Teoreticly, your servers should be faster if you configure 4 Tomcat
>> instances (4 JVMs) to do round robin.
>> You should be able to improve performances almost 4x.
>>
> could you explain why??
Isn't Tomcat and JVM still single threaded?
Single thread = single processor usage
LOL. Each HTTP request/response cycle is handed off to a worker thread,
the available worker threads are dynamically increased to cope with the
number of the simultaneous HTTP requests being processed in the moment.
Biernatowski, Is your HTTP application multi-threaded ? What is the
nature of the application, when you say there is a performance
bottleneck how are you measuring it and what is the nature of the
workload each request is doing.
There is a big difference between getting tomcat to serve static content
and making your servlet do long running SQL jobs.
Do you have the apache httpd tool "ab", use it to get some hard
performance numbers to work out if particular URLs are the problem or of
everything is affected.
Darryl
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]