Tomcat multithreading issue

I am writing a Java application that runs on Tomcat on multi-core hardware. The application executes the algorithm and returns a response to the user. The problem is that even when I run two requests at the same time, no more than one processor core is used in the tomcat process.
As far as I understand, each request in Tomcat is executed in a separate thread, and the JVM should run each thread on a separate processor core.

What could be the problem with the JVM or Tomcat using no more than one core?

Thanks in advance.

+5
source share
4 answers

, . .

, ?

0

. , , .

0

- /, ? tomcat server.xml , 200 , IIRC.

0

tomcat http://tomcat.apache.org/tomcat-5.5-doc/balancer-howto.html

I think this will work with Tomcat 6 as well, as they mentioned that Webapp balancer comes with tomcat 5.0 and later.

-1
source

All Articles