<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: VisualVM -> JBoss AS 7.1.1
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/katrinsk">Katrin Skoglund</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/831962#831962">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p>I just had a similar problem and even though this post is old, the solution may be useful to other people, so:</p><p>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 <a class="jive-link-external-small" href="http://everything-jboss.blogspot.se/2013/06/ways-of-connecting-to-as-7-using-jmx.html" rel="nofollow">this blog post</a> and just make some minor modifications to the jconsole.bat/jconsole.sh script that comes with your JBoss installation (in the bin directory).</p><p>Quote from blog post (applies to .bat file):</p><blockquote class="jive-quote"><p><span style="color: #666666; font-family: verdana; font-size: small; background-color: #ffffff;">Follow the steps listed below to be able to execute jvisualvm.exe and use the </span><strong style="color: #666666; font-family: verdana; font-size: small; background-color: #ffffff;">remoting-jmx</strong><span style="color: #666666; font-family: verdana; font-size: small; background-color: #ffffff;"> functionality supported by JBoss to connect remotely:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ol style="color: #666666; font-family: verdana; font-size: small; background-color: #ffffff;"><li>Copy the jconsole.bat in the %EAP_HOME%\bin into the same folder and call it jvisualvm.bat</li><li>Edit the line that launches jconsole.exe and rename it jvisualvm.exe, as shown below<span class="com" style="color: #880000;">// Before </span><span class="pln" style="color: #000000;"> </span><span class="str" style="color: #008800;">"%JAVA_HOME%\bin\jconsole.exe"</span><span class="pln" style="color: #000000;"> </span><span class="pun" style="color: #666600;">-</span><span class="pln" style="color: #000000;">J</span><span class="str" style="color: #008800;">"-Djava.class.path=%CLASSPATH%"</span><span class="pln" style="color: #000000;">&#160; </span><span class="com" style="color: #880000;">// After</span><span class="pln" style="color: #000000;"> </span><span class="str" style="color: #008800;">"%JAVA_HOME%\bin\jvisualvm.exe"</span><span class="pln" style="color: #000000;"> </span><span class="str" style="color: #008800;">"-cp:a"</span><span class="pln" style="color: #000000;"> </span><span class="str" style="color: #008800;">"%CLASSPATH%"</span></li><li>Run the batch file jvisualvm.bat at command prompt</li><li>Right click on the <strong>Remote</strong> and add the remote IP and optionally give it a name</li><li>Now right-click on the new entry under Remote and choose <strong>Add JMX Connection</strong></li><li>In the new dialog box provide the connection in the form: <strong>service:jmx:remoting-jmx://{host_name}:{port}</strong></li><li>Before choosing Ok, provide the username and password for the connection as the remote JMX connection is secure by default</li></ol></blockquote></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/831962#831962">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>