This discussion is archived
5 Replies Latest reply: May 27, 2011 12:34 PM by DrClap RSS

In  jdk jmap tool it will give  java.lang.ExceptionInInitializerError

863088 Newbie
Currently Being Moderated
Hi,

look for following case in jdk jmap tool.

PLEASE TELL ME REASON OF THIS PROBLEN AND DETAILED STEP TO COME OUT OF THIS

THANKS IN ADVANCE.


/usr/jdk/instances/jdk1.5.0/bin/sparcv9/jmap -heap 16300
Attaching to process ID 16300, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_11-b03

using parallel threads in the new generation.
using thread-local object allocation.
Concurrent Mark-Sweep GC

Heap Configuration:
MinHeapFreeRatio = 40
MaxHeapFreeRatio = 70
MaxHeapSize = 6442450944 (6144.0MB)
NewSize = 1310720000 (1250.0MB)
MaxNewSize = 1310720000 (1250.0MB)
OldSize = 3932160000 (3750.0MB)
NewRatio = 15
SurvivorRatio = 8
PermSize = 21757952 (20.75MB)
MaxPermSize = 88080384 (84.0MB)

Heap Usage:
New Generation (Eden + 1 Survivor Space):
capacity = 1179648000 (1125.0MB)
used = 546539592 (521.2207717895508MB)
free = 633108408 (603.7792282104492MB)
46.330735270182295% used
Eden Space:
capacity = 1048576000 (1000.0MB)
used = 512136112 (488.4110565185547MB)
free = 536439888 (511.5889434814453MB)
48.84110565185547% used
From Space:
capacity = 131072000 (125.0MB)
used = 34403480 (32.809715270996094MB)
free = 96668520 (92.1902847290039MB)
26.247772216796875% used
To Space:
capacity = 131072000 (125.0MB)
used = 0 (0.0MB)
free = 131072000 (125.0MB)
0.0% used
concurrent mark-sweep generation:
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
sun.jvm.hotspot.memory.ConcurrentMarkSweepGeneration.class$(ConcurrentMarkSweepG
eneration.java:39)
at
sun.jvm.hotspot.memory.ConcurrentMarkSweepGeneration.cmsSpace(ConcurrentMarkSwee
pGeneration.java:38)
at
sun.jvm.hotspot.memory.ConcurrentMarkSweepGeneration.capacity(ConcurrentMarkSwee
pGeneration.java:43)
at sun.jvm.hotspot.tools.HeapSummary.printGen(HeapSummary.java:170)
at sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:77)
at sun.jvm.hotspot.tools.JMap.run(JMap.java:85)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JMap.main(JMap.java:126)
Caused by: java.lang.RuntimeException: field "_collector" not found
in type CompactibleFreeListSpace
at sun.jvm.hotspot.types.basic.BasicType.getField(BasicType.java:156)
at sun.jvm.hotspot.types.basic.BasicType.getField(BasicType.java:163)
at sun.jvm.hotspot.types.basic.BasicType.getField(BasicType.java:167)
at
sun.jvm.hotspot.types.basic.BasicType.getAddressField(BasicType.java:251)
at
sun.jvm.hotspot.memory.CompactibleFreeListSpace.initialize(CompactibleFreeListSp
ace.java:36)
at
sun.jvm.hotspot.memory.CompactibleFreeListSpace.access$000(CompactibleFreeListSp
ace.java:18)
at
sun.jvm.hotspot.memory.CompactibleFreeListSpace$1.update(CompactibleFreeListSpac
e.java:24)
at
sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver(VM.java:306)
at
sun.jvm.hotspot.memory.CompactibleFreeListSpace.<clinit>(CompactibleFreeLi
stSpace.java:22)
... 10 more

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points