tomcat multithreading problem
Posted
by jutky
on Stack Overflow
See other posts from Stack Overflow
or by jutky
Published on 2010-05-18T06:21:56Z
Indexed on
2010/05/18
6:40 UTC
Read the original article
Hit count: 253
Hi all
I'm writing a java application that runs in Tomcat, on a multi-core hardware.
The application executes an algorithm and returns the answer to the user. The problem is that even when I run two requests simultaneously, the tomcat process uses at most one CPU core.
As far as I understand each request in Tomcat is executed in separate thread, and JVM should run each thread on separate CPU core.
What could be the problem that bounds the JVM or Tomcat to use no more than one core?
Thanks in advance.
© Stack Overflow or respective owner