java - tomcat multithreading problem -


I am writing a Java application running in Tomcat on multi-core hardware. Implemented application algorithm and responds to user. The problem is that whenever I run two requests simultaneously, then the use of the tomcat process in a very high CPU core.
As far as I understand that each request in the Toketet is executed on a separate thread, and JVM should run each thread on a different CPU core.

What could be the problem that limits JVM or TOMK to use more than one core?

Thanks in advance.

Are you sure that two threads are being created? You name the thread as a quick test Can easily print.

What if you run the algorithm in a standalone app?


Comments