All Apps and Add-ons

Can we find hung threads using the Monitoring of Java Virtual Machines with JMX app on a JBoss server?

chillao123
Explorer

I would like to check if JMX can help find hung threads so that I can set up alerts for potential downtime. I'm using a JBoss server.

0 Karma

Damien_Dallimor
Ultra Champion

The java.lang mbean domain has numerous Threading attributes and operations that you can poll into Splunk to perform Thread analysis.
And the JMX App can be setup to access this data in its configuration file (comprehensive examples ship with the install).

alt text

sandipan1982
Explorer

It is working now. There was no hung thread in my environment so no data was coming. But I found data is coming when Hung Thread created.

0 Karma

sandipan1982
Explorer

Hi Damien

I have enable operation in configuration file like below:

    <operation name="findMonitorDeadlockedThreads" outputname="findMonitorDeadlockedThreads"/>
    <operation name="findDeadlockedThreads" outputname="findDeadlockedThreads"/>

But I am not getting any data in Splunk.

Search:

index=* sourcetype="*jmx*" host=xxxxx mbean_domain="java.lang" mbean_property_type=Threading

Result:

host=xx.xx.xx.xx ,jvmDescription="jbossCloudJMX",mbean_domain=java.lang,mbean_property_type=Threading,findDeadlockedThreads=,findMonitorDeadlockedThreads=

Could you please help us if we are doing anything wrong?

0 Karma

Damien_Dallimor
Ultra Champion

What happens if you invoke those operations in JConsole ? Any output ?

0 Karma

sandipan1982
Explorer

Thanks Damien.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...