arthas icon indicating copy to clipboard operation
arthas copied to clipboard

arthas无法连接使用宝兰德中间件启动的进程

Open qinjxqjx opened this issue 1 year ago • 4 comments

  • [ ] 我已经在 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

重现问题的步骤

  1. 使用java -jar arthas-boot.jar 1后无法连接进程,长时间无反应

期望的结果

What do you expected from the above steps?

实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。

把异常信息贴到这里

qinjxqjx avatar Nov 07 '24 11:11 qinjxqjx

看看容器中是不是安装了lsof命令,还有看看用户的ulimit中的nofile的值是不是10亿,如果符合,那么就是lsof命令卡住并且一直消耗cpu

kengrary avatar Nov 28 '24 08:11 kengrary

进入容器或者虚拟机之后执行 ulimit -n 65535 之后再运行就可以了

jinlong2010 avatar Mar 24 '25 09:03 jinlong2010

不要用systemctl start bes-standard.service方式启动,用iastool start --server --host localhost --port 1900 --user admin --passwordfile /root/bes/conf/.passwordfile --verbose命令启动即可。

hi-unc1e avatar May 15 '25 08:05 hi-unc1e

另外,可参考https://github.com/alibaba/arthas/issues/347#issuecomment-1016068682
修改/usr/lib/tmpfiles.d/tmp.conf,增加一行:x /tmp/.java*

hi-unc1e avatar May 15 '25 08:05 hi-unc1e