Ben 35a718c061 feat: support attach across mount namespace for k8s ephemeral debug container (#3247)
When attaching from a k8s ephemeral debug container, the debug container
shares the pid namespace but NOT the mount namespace with the target app
container, which breaks the JDK attach mechanism. This adds cross mount
namespace support (auto-gated by comparing /proc/<pid>/ns/mnt), so normal
same-container / non-Linux usage is unaffected:

- expose the target attach socket via a /proc/<pid>/root symlink
- copy the full arthas home into the target container (incl. arthas-spy.jar,
  async-profiler, arthas.properties), chowned to the target uid/gid
- clean up the temp arthas home on stop/destroy (gated by a marker file)
- post-attach telnet port health check with a clear error pointing to arthas.log
- as.sh: skip the user/owner consistency check when running as root
2026-08-13 20:14:08 +08:00
2026-08-12 14:41:52 +08:00
2026-08-12 14:41:52 +08:00
2025-12-08 10:09:51 +08:00
2026-01-10 09:09:03 +00:00
2023-04-23 16:21:22 +08:00
2026-03-09 14:14:41 +08:00
2025-03-11 11:08:25 +08:00
2026-01-08 17:33:50 +08:00
2025-12-24 23:30:10 +08:00
2025-12-29 21:30:38 +08:00
2018-08-31 11:49:48 +08:00
2025-12-29 21:30:38 +08:00
2026-08-12 14:41:52 +08:00
2026-08-12 14:41:52 +08:00
2019-11-26 11:20:58 +08:00
2025-03-24 15:39:01 +08:00
2021-10-18 23:44:07 +08:00
2026-08-12 14:41:52 +08:00
2026-05-09 16:34:07 +08:00
2018-08-31 11:49:48 +08:00
2025-03-11 11:08:25 +08:00
S
Description
Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas
Readme Apache-2.0
161 MiB
Languages
Java 81.6%
JavaScript 6.9%
Vue 5.1%
TypeScript 3.2%
HTML 0.9%
Other 2.2%