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.
jutky source
share