Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6382802

jconsole fails to connect to Tomcat when run as service using local SYSTEM account

XMLWordPrintable

    • b73
    • generic
    • windows_2000

      JDK: Mustang b69

      I am not using the com.sun.management.jmxremote property because
      Mustang is supposed to not require it. I believe I tried with it at
      least once and it did not help.

      I have no idea what the difference is between tomcat.exe and the tomcat
      service (as far as I know, they should be invoking the same
      command-line). I tried jconsole -debug and got:

      java.io.IOException: Access is denied
               at sun.tools.attach.WindowsVirtualMachine.openProcess(Native Method)
               at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.java:38)
               at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:46)
               at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:194)
               at sun.tools.jconsole.LocalVirtualMachine.loadManagementAgent(LocalVirtualMachine.java:164)
               at sun.tools.jconsole.LocalVirtualMachine.startManagementAgent(LocalVirtualMachine.java:79)
               at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:142)
               at sun.tools.jconsole.VMPanel$3.run(VMPanel.java:289)

      jps -v returns:

      -Dcatalina.home=C:\Program Files\Tomcat 5.5 -Dcatalina.base=C:\Program
      Files\Tomcat 5.5 -Djava.endorsed.dirs=C:\Program Files\Tomcat
      5.5\common\endorsed -Djava.io.tmpdir=C:\Program Files\Tomcat 5.5\temp
      -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
      -Djava.util.logging.config.file=C:\Program Files\Tomcat
      5.5\conf\logging.properties -Dsun.java2d.opengl=true
      -Djava.awt.headless=true -ea:desktopbeautifier...
      -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=c:/ vfprintf -Xmx256m

      Does this help?

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: