报错:
1: Unable to open socket file /proc/1/root/tmp/.java_pid1: target process 1 doesn't respond within 10500ms or HotSpot VM not loaded
Thanks very much for your interest in Elasticsearch.
The issue is that the elasticsearch
process runs as uid 1000 and gid 0, but when you su elasticsearch
uid:gid 1000:1000
; instead you should try docker exec -u 1000:0 -ti es01 /bin/bash
and run jstack from there without su
'ing.
Having said that, this appears to be a user question, and we'd like to direct these kinds of things to the Elasticsearch forum. If you can stop by there, we'd appreciate it. This allows us to use GitHub for verified bug reports, feature requests, and pull requests.
There's an active community in the forum that should be able to help get an answer to your question. As such, I hope you don't mind that I close this.
非常感谢您对Elasticsearch的兴趣。
问题是elasticsearch进程以uid1000和gid 0运行,但当您su elasticsearch-uid:gid 1000:1000;相反,您应该尝试docker exec-u 1000:0-ti es01/bin/bash,然后在没有su'ing的情况下从那里运行jstack。
话虽如此,这似乎是一个用户问题,我们想把这些事情引导到Elasticsearch论坛。如果您能在这里停留,我们将不胜感激。这使我们能够使用GitHub进行验证的错误报告、功能请求和拉取请求。
论坛上有一个活跃的社区,应该能够帮助你得到问题的答案。因此,我希望你不要介意我关闭这个。
es的issues中
can't run jstack command in elasticsearch docker container · Issue #50727 · elastic/elasticsearch · GitHub
上一篇:Redis持久化机制——随记2
下一篇:kmp算法next求解详解