arthas
arthas copied to clipboard
arthas无法连接使用宝兰德中间件启动的进程
- [ ] 我已经在 issues 里搜索,没有重复的issue。
环境信息
-
arthas-boot.jar或者as.sh的版本: xxx - Arthas 版本: 3.6.7
- 操作系统版本: kylin linux advanced server v10 sp1 4.19.90-23.30.v2101.ky10.x86_64
- 目标进程的JVM版本: JDK8u322-b06
- 执行
arthas-boot的版本: 3.6.7
重现问题的步骤
- 使用java -jar arthas-boot.jar 1后无法连接进程,长时间无反应
期望的结果
What do you expected from the above steps?
实际运行的结果
实际运行结果,最好有详细的日志,异常栈。尽量贴文本。
把异常信息贴到这里
看看容器中是不是安装了lsof命令,还有看看用户的ulimit中的nofile的值是不是10亿,如果符合,那么就是lsof命令卡住并且一直消耗cpu
进入容器或者虚拟机之后执行 ulimit -n 65535 之后再运行就可以了
不要用systemctl start bes-standard.service方式启动,用iastool start --server --host localhost --port 1900 --user admin --passwordfile /root/bes/conf/.passwordfile --verbose命令启动即可。
另外,可参考https://github.com/alibaba/arthas/issues/347#issuecomment-1016068682
修改/usr/lib/tmpfiles.d/tmp.conf,增加一行:x /tmp/.java*,