Manual heap dump in elasticsearch not working

Over last few days noticed more GC in my es server and was trying to take
a look at heap .. My ES is running on EC2 , with Amazon linux AMI OS.
When i tried to take heap dump with
"jmap -dump:format=b,file=/var/lib/elasticsearch/test.hprof 3529" getting
..............
3529: Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding
..............

If tried with -F "jmap -F -dump:format=b,file=/var/lib/elasticsearch/test.hprof 3529" getting
...............
Attaching to process ID 3529, please wait...
Error attaching to process: java.lang.RuntimeException: can't determine target's VM version : field "_reserve_for_allocation_prefetch" not found in type Abstract_VM_Version
sun.jvm.hotspot.debugger.DebuggerException: java.lang.RuntimeException: can't determine target's VM version : field "_reserve_for_allocation_prefetch" not found in type Abstract_VM_Version
at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:435)
at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:305)
at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
..........................
even tried by switching to elasticsearch user "sudo -su elasticsearch" no luck.
Does any one have solution for it?.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.