WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Get threads info with JMX

    Posted 10/10/14 08:04 AM
    Hello.

    I'm developing a web application for Websphere management with JMX. I'd like to know if there's any way to get all threads in a web container and print all available information about them, like if a thread is waiting, hung, etc., not only of the current JVM but from remote JVMs which I connnect to with a AdminClient instance throug a SOAP connector.

    I know there are ThreadPool JMX beans and one of them has "WebContainer" as name, but I cannot find any way to get current threads in that web container.

    Maybe the only way is to invoke a Thread dump and analyze the resulting file? This has some inconveniences I trying to avoid.

    Thanks for your help.