- 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:
Invocation Target class com.sun.tools.attach.VirtualMachine command:start : null
Invocation Target class com.sun.tools.attach.VirtualMachine command:status : null
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.