-
1. Re: AS 7.1 Final and JMX
dlofthouse Feb 27, 2012 1:43 PM (in response to trevor.flanagan)Please see the following page describing how to achieve this with jconsole: -
Using jconsole to connect to JMX on AS7
Essentially you need to be using a remoting-jmx service URL for the connection as we now use Remoting for the communication.
-
2. Re: AS 7.1 Final and JMX
trevor.flanagan Feb 27, 2012 1:59 PM (in response to dlofthouse)Thanks Darran for getting back to me. I had read your article which you linked to and did try the remoting url using the native management port 9999 and that also didnt work for me either.
When I start my server I do see the following log message that might be relevant?
18:55:35,033 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
Are you aware of anything else I can try?
-
3. Re: AS 7.1 Final and JMX
dlofthouse Feb 27, 2012 2:56 PM (in response to trevor.flanagan)Are you getting any error with the remoting-jmx URL?
Also have you added the JBoss libraries to the classpath of your client? That is going to be required to find the correct provider - I am just on a machine without AS7 installed but the client jar under the bin folder should contain the sufficient classes.
-
4. Re: AS 7.1 Final and JMX
trevor.flanagan Feb 28, 2012 10:07 AM (in response to dlofthouse)1 of 1 people found this helpfulDarran, thanks again for getting back to me. I was successful eventually, first getting JConsole to work and then moving onto JRockit Mission Control using the JConsole classpath. I did the following:
Copied modules folder across to my local machine from JBOSS_HOME.
Create new Application User using the add_users.sh script
Launched mission control as follows adding the classpath to the -J-Xbootclasspath/a: parameter
jrmc.exe -J-Xbootclasspath/a:C:\Users\tflanagan\modules\org\jboss\remoting3\remoting-jmx\main\remoting-jmx-1.0.0.Final.jar;C:\Users\tflanagan\modules\org\jboss\remoting3\main\jboss-remoting-3.2.2.GA.jar;C:\Users\tflanagan\modules\org\jboss\logging\main\jboss-logging-3.1.0.GA.jar;C:\Users\tflanagan\modules\org\jboss\xnio\main\xnio-api-3.0.3.GA.jar;C:\Users\tflanagan\modules\org\jboss\xnio\nio\main\xnio-nio-3.0.3.GA.jar;C:\Users\tflanagan\modules\org\jboss\sasl\main\jboss-sasl-1.0.0.Final.jar;C:\Users\tflanagan\modules\org\jboss\marshalling\main\jboss-marshalling-1.3.9.GA.jar;C:\Users\tflanagan\modules\org\jboss\marshalling\river\main\jboss-marshalling-river-1.3.9.GA.jar
Created connection with custom jmx url eg service:jmx:remoting-jmx://HOST:REMOTING_PORT
Thanks for your help on this