Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Remote access</h2> <p>Remote access means access from another machine, to access locally via another VM you <a href="http://download.oracle.com/javase/6/docs/technotes/guides/management/agent.html" rel="nofollow">don't have to setup JMX</a>[note 1]. You can try this by starting an java application wthout JMX, and then start VisualVM on the same machine. The started app should appear under "Local" (in VisualVM).</p> <p>As the exception states: <code>Authentication failed! Credentials required</code> did you supply the username and password? ;) I guess you did...</p> <h2>Possible solution</h2> <p>If you did, then you should try to remove <code>$CATALINA_BASE</code> from CATALINA_OPTS and enter a hardcoded value, just to see if this is the root problem.</p> <p>example:</p> <blockquote> <p>CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=18070 -Dcom.sun.management.jmxremote.password.file=<strong>/opt/tomcat6</strong>/conf/jmxremote.password -Dcom.sun.management.jmxremote.ssl=false"</p> </blockquote> <p>If it works, than try like this:</p> <pre><code>CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=18070 -Dcom.sun.management.jmxremote.password.file=`echo $CATALINA_BASE`/conf/jmxremote.password -Dcom.sun.management.jmxremote.ssl=false" </code></pre> <hr> <p><em>[note 1]: Here says: "Under previous releases of the Java SE platform, to allow the JMX client access to a local Java VM, you had to set the following system property (com.sun.management.jmxremote) when you started the Java VM or Java application. Setting this property registered the Java VM platform's MBeans and published the Remote Method Invocation (RMI) connector via a private interface to allow JMX client applications to monitor a local Java platform, that is, a Java VM running on the same machine as the JMX client. In the Java SE 6 platform, it is no longer necessary to set this system property. Any application that is started on the Java SE 6 platform will support the Attach API, and so will automatically be made available for local monitoring and management when needed."</em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload