Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果java进程是通过system-service启动的,不能使用arthas监听吗? #2887

Open
1 task done
GZK0329 opened this issue Aug 27, 2024 · 3 comments
Open
1 task done

Comments

@GZK0329
Copy link

GZK0329 commented Aug 27, 2024

  • 我已经在 issues 里搜索,没有重复的issue。

环境信息

  • arthas-boot.jar 或者 as.sh 的版本:4.0.0
  • Arthas 版本: 4.0.0
  • 操作系统版本: 3.10.0-1062.9.1.ky3.kb8.pg.x86_64
  • 目标进程的JVM版本: 1.8.0_162
  • 执行arthas-boot的版本: 4.0.0

重现问题的步骤

  1. 如果进程是做在system-service中的,arthas无法识别到这个java进程。
  2. /tmp目录下和直接启动java的进程不同,但是我看也有jvm信息。
  3. 会考虑支持一下这种启动情况吗?虽然这种情况jps -l也无法查看到。

期望的结果

  1. 做在system-serive中的java进程,也可以被arthas正常识别。

实际运行的结果

  1. 做在system-service中的java进程,arthas无法识别。
把异常信息贴到这里
@GZK0329 GZK0329 changed the title 如果java进程是通过system-serive启动的,不能使用arthas监听吗? 如果java进程是通过system-service启动的,不能使用arthas监听吗? Aug 27, 2024
@WangJi92
Copy link
Contributor

https://arthas.aliyun.com/doc/quick-start.html#_2-%E5%90%AF%E5%8A%A8-arthas 执行该程序的用户需要和目标进程具有相同的权限

@lxyyouxiang123
Copy link

只要是jvm启动启动都应该可以,使用跟进程相同的用户和传递pid就行

@zdqpp
Copy link

zdqpp commented Oct 17, 2024

如果使用windows service wrapper启动的jvm, 会报出以下报错,目前没有找到好的解决方法:
image

@github-staff github-staff deleted a comment from mayank785 Oct 23, 2024
@github-staff github-staff deleted a comment from mayank785 Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants