I'm guessing this is because enabling remote JMX adds a second port that
the app is trying to listen on. On Heroku your process can only listen
on one port (for HTTP). So unfortunately you won't be able to do remote
JMX management of the app on Heroku.
It's not JMX, but the New Relic add-on provides a lot of information
about your processes on Heroku. Perhaps that will give you what you need.
-James
On 02/06/2012 11:45 AM, Ian wrote:
I'm trying to run the petclinic app with JMX monitoring enabled. I'm
using the following JVM options:
JAVA_OPTS => -Xmx384m -Xss512k -XX:+UseCompressedOops -
Dcom.sun.management.jmxremote.port=6543 -
Dcom.sun.management.jmxremote.authenticate=false -
Dcom.sun.management.jmxremote.ssl=false
After doing that, I get an application error when I try to load the
petclinic. The heroku logs show the following errors:
State changed from starting to crashed
Password file read access must be restricted: /usr/lib/jvm/java-6-
openjdk/jre/lib/management/jmxremote.password
Is this something I can fix?
Thanks for any help,
Ian
--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.