jvm - 如何使用 JCMD 访问 NMT 数据
问题描述
我正在尝试通过以下代码使用 jcmd 访问 NMT:
jcmd 4348 VM.native_memory [summary] [scale=10 GB]
但是得到以下错误:
com.sun.tools.attach.AttachNotSupportedException: Unable to attach to 32-bit pro
cess running under WOW64
at sun.tools.attach.WindowsVirtualMachine.openProcess(Native Method)
at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.j
ava:56)
at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAt
tachProvider.java:69)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)
at sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:147)
at sun.tools.jcmd.JCmd.main(JCmd.java:131
)
解决方案
推荐阅读
- javascript - 将标记标签添加到谷歌地图标记
- python - Django View 不返回 httpresponse
- javascript - 为什么 Javascript 中的日期值不同
- ios - 具有多种颜色的 UIAlertController 消息
- jquery - 动态乘以每行的单元格值
- javascript - 当元素到达窗口顶部时仅调用一次函数
- php - php图像未获取stdClass
- objective-c - 试图欺骗 macOS 软件在 High Sierra 上运行
- r - 在 r markdown 中为打印命令修剪空白
- c++ - 如何制作一个填充数组的函数发送到函数?而不是其参数中的数组