Error attaching to process: sun.jvm.hotspot.runtime.VMVersionMismatchException

不念不忘少年蓝@ 2023-01-11 03:49 137阅读 0赞
  1. [root@hadoop102 ~]# jmap -heap 9578
  2. Attaching to process ID 9578, please wait...
  3. Error attaching to process: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.275-b01. Target VM is 25.211-b12
  4. sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.275-b01. Target VM is 25.211-b12
  5. at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:435)
  6. at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:305)
  7. at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
  8. at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
  9. at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
  10. at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:50)
  11. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  12. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  13. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  14. at java.lang.reflect.Method.invoke(Method.java:498)
  15. at sun.tools.jmap.JMap.runTool(JMap.java:201)
  16. at sun.tools.jmap.JMap.main(JMap.java:130)
  17. Caused by: sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.275-b01. Target VM is 25.211-b12
  18. at sun.jvm.hotspot.runtime.VM.checkVMVersion(VM.java:227)
  19. at sun.jvm.hotspot.runtime.VM.<init>(VM.java:294)
  20. at sun.jvm.hotspot.runtime.VM.initialize(VM.java:370)
  21. at sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:431)
  22. ... 11 more

排查原因是由于机器上安装了多个jdk导致的。所以使用时要指定路径 :

  1. /opt/module/jdk1.8.0_211/bin/jmap -heap 9578

发表评论

表情:
评论列表 (有 0 条评论,137人围观)

还没有评论,来说两句吧...

相关阅读