JDK-6822407 : heapOopSize lookup is incorrect in Serviceability Agent.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: hs15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2009-03-26
  • Updated: 2011-02-16
  • Resolved: 2009-04-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u18Fixed 7Fixed hs15Fixed
Related Reports
Relates :  
heapOopSize is looked up HotspotTypeDataBase.java here:

private void readVMIntConstants() {
    String symbol = "heapOopSize"; // global int constant and value is initialized at runtime.
    addIntConstant(symbol, (int)lookupInProcess(symbol).getCIntegerAt(0, 4, false));

This is causing SA failures on some Windows systems. 

sun.jvm.hotspot.debugger.NoSuchSymbolException: Could not find symbol "heapOopSize" in any of the known library names (jvm.dll, jvm_g.dll)
      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:565)
      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.PermStat.main(PermStat.java:46)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at sun.tools.jmap.JMap.runTool(JMap.java:197)
      at sun.tools.jmap.JMap.main(JMap.java:128)
Debugger attached successfully.
sun.jvm.hotspot.tools.PermStat requires a java VM process/core!

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/f30ba3b36599