How to collect VM.Info from a java pod that does not include the jcmd binary
Issue
- There exists a need to export and review the VM.info output from a running java process inside a container running on OpenShift, but the deployment of java in the container does not include the
jcmd
binary. - Cannot modify the deployment to include an updated build of jcmd, or this is a production instance that prevents changes but still need to debug the java process.
Environment
- OpenJDK 8, OpenJDK 11, OpenJDK 17
- Red hat OpenShift Container Platform (OCP)
- 4.x
- Java container deployed applications like DataGrid or other self-published applications running with java openjre/openjdk
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.