I know that VisualVM looks to files in predefined path when build list of running java applications.
Unfortunately Java process created by
gradle bootRun (to run Spring Boot app) doesn’t register itself by this path.
Can any point how can I attach to this process with VisualVM?
I get PID via procexp and get dump via jmap:
bash# /cygdrive/c/opt/Java/jdk1.8.0_144/bin/jmap.exe -dump:live,format=b,file=x.bin 7508
I don’t suppose you ever found a solution to attaching VisualVM to a Gradle-launched process?
I have an idea of starting process with open JXM port. Each Java tasks allow to pass JWM args…
VisualVM can attach to JMX port on localhost.