syrm-ll commented on issue #123: URL: https://github.com/apache/rocketmq-docker/issues/123#issuecomment-3324953632
更新这个问题, JVM 也不适合作为 PID 1 刚发现 JFR 对此有警告 > Process runs with PID 1. > > Java processes should not run with PID 1 as this PID is reserved for the init process in Linux, which is responsible for signal handling > and process management. Java processes do not natively handle signals like SIGTERM correctly, leading to issues such as unclean > shutdowns and orphaned child processes. > > Enforce the process does not run with PID 1. In Docker, this can be achieved by using the lightweight init system tini with the '--init' > flag. For an example with Docker Compose refer to the documentation from Docker Compose. 但是总好过现在这样连关机信号都没有程序处理 更好的方案是使用 `tini` 或类似工具 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
