Can Jprofile connect to JVM running in docker

shawn picture shawn · Aug 9, 2016 · Viewed 9.3k times · Source

I'm new to JProfiler. I came into a problem recently. My Java app is running in docker which means the JVM is runnning in docker. But my jprofile is installed in the host machine. I know the jprofiler must connect to a JVM. So, is there anyway that the jprofiler can connect to jvm running in docker?

Answer

Andrew Liu picture Andrew Liu · Aug 30, 2016

It is similar as connects JProfiler to a remote JVM, you just need to have the JProfiler agent ready inside your container and expose the port.

This post has a step by step guide http://geekspearls.blogspot.com.au/2016/08/configure-jprofiler-92-to-profiling.html