I am trying to see threads management of Play application. Need to use JVisualVm to see the threads running. Basically, the JMX port should be enabled to see the Play Application. I am using Play 2.5 with Activator. Using acivator run command to run the application and configuration the Java Args in the build.sbt file like below.
javaOptions ++= Seq(
"-Dcom.sun.management.jmxremote",
"-Dcom.sun.management.jmxremote.port=5678",
"-Dcom.sun.management.jmxremote.local.only=false",
"-Dcom.sun.management.jmxremote.ssl=false",
"-Dcom.sun.management.jmxremote.authenticate=false",
"-Djava.rmi.server.hostname=192.11.1.18"
)
But nothing works with the above configuration. Can anyone help me in this ?