Katrin Skoglund [
https://community.jboss.org/people/katrinsk] created the discussion
"Re: VisualVM -> JBoss AS 7.1.1"
To view the discussion, visit:
https://community.jboss.org/message/831962#831962
--------------------------------------------------------------
Hi,
I just had a similar problem and even though this post is old, the solution may be useful
to other people, so:
For JBoss AS 7.1.1 you cannot use a script for AS 7.0 (like the one suggested below) since
the paths to the required jars have changed. In fact, the easiest way for any version
probably is to follow the instructions in
http://everything-jboss.blogspot.se/2013/06/ways-of-connecting-to-as-7-us... this
blog post and just make some minor modifications to the jconsole.bat/jconsole.sh script
that comes with your JBoss installation (in the bin directory).
Quote from blog post (applies to .bat file):
Follow the steps listed below to be able to execute jvisualvm.exe and
use the *remoting-jmx* functionality supported by JBoss to connect remotely:
1. Copy the jconsole.bat in the %EAP_HOME%\bin into the same folder and call it
jvisualvm.bat
2. Edit the line that launches jconsole.exe and rename it jvisualvm.exe, as shown below//
Before "%JAVA_HOME%\bin\jconsole.exe"
-J"-Djava.class.path=%CLASSPATH%" // After
"%JAVA_HOME%\bin\jvisualvm.exe" "-cp:a" "%CLASSPATH%"
3. Run the batch file jvisualvm.bat at command prompt
4. Right click on the *Remote* and add the remote IP and optionally give it a name
5. Now right-click on the new entry under Remote and choose *Add JMX Connection*
6. In the new dialog box provide the connection in the form:
*service:jmx:remoting-jmx://{host_name}:{port}*
7. Before choosing Ok, provide the username and password for the connection as the remote
JMX connection is secure by default
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/831962#831962]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]