Jump to content
Changes to the Jaspersoft community edition download ×
  • How to connect JConsole to Tomcat running as a service


    rmiller
    • Features: JasperReports Server Product: JasperReports® Server

    Issue:

    When Tomcat is running as a service the PID of the Tomcat process does not display in the JConsole New Connection dialog. The issue is that when you start JConsole only Java processes started by the same user are listed in the connection dialog.


    Resolution:

    Connect to the Tomcat service using remote JMX connection.

    1. Navigate to the apache-tomcatbin directory.

    2. Rename tomcate6w.exe to jasperserverTomcat.exe, double-click on it to open the Tomcat properties window.

    3. In the Java tab add the following properties to the end of the Java Options window and restart the service.

      -Dcom.sun.management.jmxremote
      -Dcom.sun.management.jmxremote.port=8082
      -Dcom.sun.management.jmxremote.ssl=false
      -Dcom.sun.management.jmxremote.authenticate=false
      -Djava.rmi.server.hostname=<host ip address>

      Tomcat_java.png.9f4c5f153ff8794501539cbac5721e1c.png

    4. Note the port number and open a command window, then type localhost:8082 and hit enter.

      start_jconsole.png.625225e81a4c912112bf6e1241e437ad.png

      JConsole will open to the Overview window. Note that the JAVA_HOME environment variable must be set for this to work

      jconsole.png.1def9d199e5fe230ab6805f07b7cb337.png

    Read this article to learn about How to Use JConsole to Monitor the JasperReports Server

    start_jconsole.png.2091d20730db1673dbf640a8b1c25ab7.png

    jconsole.png.834dd6a4ee3ffbadec297f46d95f98d6.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...