4 Replies Latest reply: Jun 7, 2013 9:55 AM by user12019372 RSS

    JINFO: Don't print information forJVM-process

    368125
      I tried to use diagnostic tools from SunJDK 1.5 (1.5.0_30) on SunOS 5.10 (SPARC). I can't print information for any local JVM-process with the jinfo tool.

      user-name@hostname: jinfo 21324
      Attaching to process ID 21324, please wait...
      Debugger attached successfully.
      Client compiler detected.
      JVM version is 1.5.0_30-b03
      Java System Properties:

      Exception in thread "main" java.lang.NullPointerException
      at sun.jvm.hotspot.memory.SystemDictionary.find(SystemDictionary.java:109)
      at sun.jvm.hotspot.memory.SystemDictionary.getSystemKlass(SystemDictionary.java:94)
      at sun.jvm.hotspot.runtime.VM.readSystemProperties(VM.java:733)
      at sun.jvm.hotspot.runtime.VM.getSystemProperties(VM.java:727)
      at sun.jvm.hotspot.tools.SysPropsDumper.run(SysPropsDumper.java:18)
      at sun.jvm.hotspot.tools.JInfo$1.run(JInfo.java:52)
      at sun.jvm.hotspot.tools.JInfo.run(JInfo.java:67)
      at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
      at sun.jvm.hotspot.tools.JInfo.main(JInfo.java:111)


      When i try to use another SunJDK, I can't print information about process too. But I have got another listing of jinfo-tool:
      jinfo 21324
      Attaching to process ID 21324, please wait...
      sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "heapOopSize" in any of the known library names (libjvm.so, libjvm_g.so, gamma_g)
      at sun.jvm.hotspot.HotSpotTypeDataBase.lookupInProcess(HotSpotTypeDataBase.java:390)
      at sun.jvm.hotspot.HotSpotTypeDataBase.readVMIntConstants(HotSpotTypeDataBase.java:310)
      at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:88)
      at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:562)
      at sun.jvm.hotspot.bugspot.BugSpotAgent.go(BugSpotAgent.java:494)
      at sun.jvm.hotspot.bugspot.BugSpotAgent.attach(BugSpotAgent.java:332)
      at sun.jvm.hotspot.tools.Tool.start(Tool.java:163)
      at sun.jvm.hotspot.tools.JInfo.main(JInfo.java:128)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at sun.tools.jinfo.JInfo.runTool(JInfo.java:79)
      at sun.tools.jinfo.JInfo.main(JInfo.java:53)
      Debugger attached successfully.
      jinfo requires a java VM process/core!

      Edited by: andrei_s on Oct 7, 2011 8:53 AM (Added info about JDK 1.6)