Why does APM report a different value for Active Threads compared to jvisualvm?

Document ID : KB000019553
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

In the jvisualvm the number of live/active threads always shows as a much higher value than is reported in the Investigator - as you can see from the screen shots below.

jvisualvm is reporting 69-72 threads:

Figure 1

where as the APM Investigator is showing 40:

Figure 2

Solution:

The thread count in APM does not include the agent and system threads, thus the APM thread count will always be lower than that reported by jconsole / jvisualvm.