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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.