Search code examples
jbosswildfly

Is it possible to detect JBoss/WildFly PID?



When running in Domain mode, there are several JBoss JVMs running. Is it possible to detect which is the PID related to one server instance ? I need to monitor a specific server through JConsole, but I'm not able to figure out which one is it.


Solution

  • I don't have a scenario here to try, so, could you give jps a try?

    jps -lv
    

    From the jps man page:

    • -l Displays the full package name for the application's main class or the full path name to the application's JAR file.
    • -v Displays the arguments passed to the JVM.

    Maybe the arguments passed to the JVM have a hint.