user2824073
user2824073

Reputation: 2485

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.

Upvotes: 1

Views: 3762

Answers (2)

Stradia Mil Grau
Stradia Mil Grau

Reputation: 1

In the case of domain installation, just check the file below.

In the installation directory /domain/wildfly.pid shows the PID that is running

In the case of standalone, the file should be /standalone/wildfly.pid

Upvotes: 0

fscherrer
fscherrer

Reputation: 218

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.

Upvotes: 3

Related Questions