java - Jruby Heap Dump Failure -
i running app using jruby , puma. have issue potential memory leak , generate heap dump can debug. local environment running linux mint 17. have run following:
jmap -histo:live 6450
and resulted in :
6450: unable open socket file: target process not responding or hotspot vm not loaded -f option can used when target process not responding
i've tried this:
jmap -dump:live,format=b,file=heap.bin 6450
result
6450: unable open socket file: target process not responding or hotspot vm not loaded
as propmt suggested tried running -f
flag:
jmap -f -dump:live,format=b,file=heap.bin 6450 attaching process id 6450, please wait... debugger attached successfully. server compiler detected. jvm version 25.45-b02 dumping heap heap.bin ... exception in thread "main" java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ sun.tools.jmap.jmap.runtool(jmap.java:201) @ sun.tools.jmap.jmap.main(jmap.java:130) caused by: sun.jvm.hotspot.utilities.assertionfailure: can not class data java/lang/unixprocess$platform$$lambda$10x0000000100393428 @ sun.jvm.hotspot.utilities.assert.that(assert.java:32) @ sun.jvm.hotspot.utilities.heaphprofbinwriter.writeinstance(heaphprofbinwriter.java:803) @ sun.jvm.hotspot.utilities.abstractheapgraphwriter$1.doobj(abstractheapgraphwriter.java:95) @ sun.jvm.hotspot.oops.objectheap.iterateliveregions(objectheap.java:353) @ sun.jvm.hotspot.oops.objectheap.iterate(objectheap.java:171) @ sun.jvm.hotspot.utilities.abstractheapgraphwriter.write(abstractheapgraphwriter.java:51) @ sun.jvm.hotspot.utilities.heaphprofbinwriter.write(heaphprofbinwriter.java:433) @ sun.jvm.hotspot.tools.heapdumper.run(heapdumper.java:62) @ sun.jvm.hotspot.tools.tool.startinternal(tool.java:260) @ sun.jvm.hotspot.tools.tool.start(tool.java:223) @ sun.jvm.hotspot.tools.tool.execute(tool.java:118) @ sun.jvm.hotspot.tools.heapdumper.main(heapdumper.java:83) ... 6 more`
does have suggestions how around these errors , generate heap dump ? have tried using jvisualvm , eclipse memory analyzer generate heap dump well, , run same issue.
this looks jvm bug in jdk 1.8_45 see link more info
Comments
Post a Comment