How to collect number of stuck threads on Weblogic
What is under weblogicworkmanager instance or weblogicthreadpool topology is what is available through the MBeans. If weblogic doesn’t make available this data, we cannot update it.
e.g. From the docs for WebLogic MBean Reference 10.3.4 (http://docs.oracle.com/cd/E17904_01/apirefs.1111/e13951/core/index.html)
HoggingThreadCount is an attribute of Runtime MBeans -> ThreadPoolRuntimeMBean
StuckThreadCount is an attribute of Runtime MBeans -> WorkManagerRuntimeMBean
The stuck threads data in the JVM dashboard is directly from JVM mbeans.