RFR: 8296: No Java process should ever be PID 1

Marcus Hirt hirt at openjdk.org
Fri Dec 6 15:03:19 UTC 2024


On Thu, 5 Dec 2024 14:04:07 GMT, Marcus Hirt <hirt at openjdk.org> wrote:

>> core/org.openjdk.jmc.flightrecorder.rules.jdk/src/main/java/org/openjdk/jmc/flightrecorder/rules/jdk/general/PID1Rule.java line 80:
>> 
>>> 78: 			return ResultBuilder.createFor(this, valueProvider).setSeverity(Severity.WARNING)
>>> 79: 					.setSummary(Messages.getString(Messages.PID1Rule_TEXT_INFO))
>>> 80: 					.setExplanation(Messages.getString(Messages.PID1Rule_TEXT_INFO_LONG)).build();
>> 
>> I'd also appreciate a potential solution for what the user can try to do if they end up in this case.
>
> The solution can for example be to use tini:
> https://computingpost.medium.com/how-to-use-tini-init-system-in-docker-containers-69283d0099ed

"docker run --init" will use tini. For docker compose "init: true".

-------------

PR Review Comment: https://git.openjdk.org/jmc/pull/613#discussion_r1871450402


More information about the jmc-dev mailing list