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

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


On Wed, 4 Dec 2024 18:47:29 GMT, Henrik Dafgård <hdafgard at openjdk.org> wrote:

>> Happy to get feedback
>
> 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

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

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


More information about the jmc-dev mailing list