RuntimeException: Type "nmethodBucket*", referenced in VMStructs::localHotSpotVMStructs in the remot
来源:互联网 发布:咸鱼淘宝介入怎么处理 编辑:程序博客网 时间:2024/05/21 08:00
问题:使用jmap命令查看某个进程的堆情况时(jmap -heap 198376),抛异常如下:
Attaching to process ID 198376, please wait...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.tools.jmap.JMap.runTool(JMap.java:179)
at sun.tools.jmap.JMap.main(JMap.java:110)
Caused by: java.lang.RuntimeException: Type "nmethodBucket*", referenced in VMStructs::localHotSpotVMStructs in the remote VM, was not present in the remote VMStructs::localHotSpotVMTypes table (should have been caught in the debug build of that VM). Can not continue.
at sun.jvm.hotspot.HotSpotTypeDataBase.lookupOrFail(HotSpotTypeDataBase.java:362)
at sun.jvm.hotspot.HotSpotTypeDataBase.readVMStructs(HotSpotTypeDataBase.java:253)
at sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:87)
at sun.jvm.hotspot.bugspot.BugSpotAgent.setupVM(BugSpotAgent.java:568)
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.HeapSummary.main(HeapSummary.java:39)
... 6 more
解决方法:
抛异常原因是该进程运行所用的java和使用jmap时的java不是同一个版本,使用和所运行程序相同的java版本即可。很可能是因为机器上装有多个jdk,默认路径下的jmap和所运行进程使用的不是同一个jdk,所以抛异常了。解决办法是使用全路径,如/usr/local/jdk1.7.0_80/bin/jmap -heap 198376
- RuntimeException: Type "nmethodBucket*", referenced in VMStructs::localHotSpotVMStructs in the remot
- 161.In your database instance, the user sessions are connected to the database server from the remot
- the PDO type in C++
- The Message Type in ABAP
- the data type of tuple in python
- the data type of list in python
- Exception in thread "main" java.lang.RuntimeException: Cannot instantiate object of type com.gatz.d
- System.in.read() IOException RuntimeException
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.
- The method setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener)in the type RadioGroupisnot
- The method setOnClickListener(View.OnClickListener) in the type---错误
- Could not load the "logo.png" image referenced from a nib in the bundle with identifier
- Could not load the "" image referenced from a nib in the bundle with identifier XXXXX
- Could not load the image referenced from a nib in the bundle
- Could not load the "*.png" image referenced from a nib in the bundle with identifier
- Could not load the "null" image referenced from a nib in the bundle with identifier ""
- Could not load the "" image referenced from a nib in the bundle with identifier "com.****.***
- 打印出现:Could not load the "" image referenced from a nib in the bundle with identifier
- leetcode 234. Palindrome Linked List
- 数据库
- linux添加网关和出接口不同网段的路由
- UnicodeString.BytesOf()
- js 将json字符串转换为json兑现
- RuntimeException: Type "nmethodBucket*", referenced in VMStructs::localHotSpotVMStructs in the remot
- Eclipse 注释中单词校验错误
- #每日一题# 2016腾讯笔试题之一
- VC 加载图片
- android图形系统View layer
- 如何用VC 6.0 打开Sln的工程文件?
- Reverse Nodes in k-Group(与leetcode不同)
- 如何不刷新页面而刷新页面中某个文件
- 自定义控件:动态获取控件的高