MangoCool

Unable to open socket file: target process not responding or HotSpot VM not loaded

2024-02-06 15:11:29   作者:anobody   来源:MangoCool

使用arthas工具监控java进程时,遇到问题:Unable to open socket file: target process not responding or HotSpot VM not loaded

原因很简单,运行进程的用户和运行arthas的用户不一致

使用相同用户运行arthas即可,如下

su tomcat -c "/opt/lnmpp/java/bin/java -jar arthas-boot.jar" -s /bin/bash

标签: arthas jvm java

分享:

上一篇OpenJDK 64-Bit Server VM warning: You have loaded library /usr/lib64/libeyibc.so which might have disabled stack guard. The VM will try to fix the stack guard now.

下一篇下载大文件出现直接内存溢出:java.lang.OutOfMemoryError: Direct buffer memory

关于我

崇尚极简,热爱技术,喜欢唱歌,热衷旅行,爱好电子产品的一介码农。

座右铭

当你的才华还撑不起你的野心的时候,你就应该静下心来学习,永不止步!

人生之旅历途甚长,所争决不在一年半月,万不可因此着急失望,招精神之萎葸。

Copyright 2015- 芒果酷(mangocool.com) All rights reserved. 湘ICP备14019394号

免责声明:本网站部分文章转载其他媒体,意在为公众提供免费服务。如有信息侵犯了您的权益,可与本网站联系,本网站将尽快予以撤除。