aditya
(Aditya Athalye)
April 23, 2019, 2:31pm
1
I am using standard JMX properties that worked for Play 2.3.x.
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=9001
-Dcom.sun.management.jmxremote.rmi.port=9002
-Djava.rmi.server.hostname=localhost
The connection would go through successfully on port 9001 (JConsole, JVisualVM etc.).
The same properties do not seem to work with Play 2.6.20.
Are there any new properties required?
Hey @aditya ,
There are no new requirements from Play itself, but you update Java as well, I suggest that you check if all these properties are okay for the version you are using now.
What does that mean? You are getting an error?
Best.
aditya
(Aditya Athalye)
May 8, 2019, 4:05am
3
Yes standard error from jconsole/jvisualvm indicating connection failure to the RMI host/port.
I am using java 8.
Thanks
aditya
(Aditya Athalye)
September 21, 2019, 6:56am
4
The java.rmi.server.hostname
was pointing to local host instead of the name/ip of the host. After correcting that, JMX connection was successful.
cc - @marcospereira