Unable to bind Jolokia JVM agent with my PID

1.7k views Asked by At
  • We are unable to attach the JVM agent to pid of flink process with jmx enabled on it.
  • We are using java 1.8, java hotspot is enabled, and doing it with the same UID (sudo) only.
  • Also there are no other agents attached to that process.
  • Also we have restarted the process n number of times and tried that.
  • when i give list option with the agent it shows this process in the list.
  • Yet we are not able to bind the JVM agent with that process.

Error:

  1. Invocation Target class com.sun.tools.attach.VirtualMachine command:start : null

  2. Invocation Target class com.sun.tools.attach.VirtualMachine command:status : null

jolokia-issue-error-snapshot

1

There are 1 answers

0
Nicholas On

It seems you're using the JRE which doesn't have required attach API in its runtime class path ? Try launching the agent installer with the full JDK java executable, or add tools.jar to the class path.