Tomcat threads! = JVM threads?

Tomcat Manager reports a different number of threads than ThreadMXBean. The number of threads reported by ThreadMXBean is the same as the number of threads reported in YourKit Profiler. Is there any difference between Tomcat threads and JVM threads?

Line from Tomcat Manager:
Maximum threads: 200 Number of current threads: 7 Current thread busy: 3

ManagementFactory.getThreadMXBean () getThreadCount () :.
38

+5
source share
2 answers

Tomcat thread is a request processing thread and does not take into account another thread that may be running.

, , Thread.getAllStackTraces().

+5

javadocs ManagementFactory.getThreadMXBean().getThreadCount():

, , -.

, JVM 38 ( ). Tomcat ( ). , .

+1

All Articles