11-02-2012 08:02 AM
We are trying to set up a jmx monitor against one of our servers running thrid party java apps. Since I'm not by anymeans a Java guru, I'm lost as to how to get this resolved. We can get to the jmx-console on port 10008, and it brings up the JBOSS console. when we try to use the JMX Monitor on the same port, we get the 31008 error. I've tried a bunch of ports that I see being defined in the process list, and I get one of two errors for each one that I try. the errors I get are:
Error getting counters :
Error receiving browse data: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: ui01.gold01.uiq.bgesg.net; nested exception is:
java.net.ConnectException: Connection refused]
Error getting counters :
Error receiving browse data: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
Does anyone out there know how to read this process line and tell me if the right pieces are runinng for me to connect to this application, and if not what it is I need to ask the third part vendor to add?
root 6868 1 0 Oct26 ? 00:56:20 /usr/ssn/thirdparty/CURRENT/ssn_home/ssnjdk/jdk/bi
Thanks in advance if anyone can help!
Solved! Go to Solution.
11-12-2012 05:07 AM
Step 1. Add below JAVA Option in to Jboss start up or configure file. set "JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=" set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=" set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false" set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false" Step 2. Restart Jboss Service
Add the following code block to the applicable run.conf and restart the applicable JBoss instance. ### JConsole # Default Settings JAVA_OPTS="$JAVA_OPTS \-Dcom.sun.management.jmxremote \-Dcom.sun.management.jmxremote.port=9007 \-Dcom.sun.management.jmxremote.authenticate=false \-Dcom.sun.management.jmxremote.ssl=false"
These are the two solutions I found on the internet, the first one is from the HP forums
01-16-2013 09:03 AM
Thank you so much! My apologies for being so slow getting back to you! This was a major help! I really appreciate you taking your time to respond! As it turns out, the vendor is not putting any counters out there, so we can only get basic JBoss stuff from it, and the counters I was hoping to find I had to get anotehr way! Thanks again!