How to determine JBoss PID for any JBoss version?

Solution Unverified - Updated -

Issue

Multiple versions of EAP are being running that use varying versions of Java and run on different servers. The following command is being on each server to determine the PID of each JBoss instance:

/usr/bin/jps -J-Djava.io.tmpdir=/var/tmp/jboss -lv | grep -i jboss | cut -d ' ' -f 1

However, it does not return the PID for some instances.

Environment

Red Hat Enterprise Application Platform (EAP) - All versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content