[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21



On Wed, 25 Jun 2025 08:33:24 +0200 Harald Dunkel <harri@afaics.de>
wrote:
> Package: linux-image-6.12.33+deb13-amd64
> Version: 6.12.33-1
> 
> By default kernel 6.12 dropped some deprecated features around
cgroupv2
> support. This affects openjdk 21 and older, see
> 
>       https://bugs.openjdk.org/browse/JDK-8347811
>       https://bugs.debian.org/1107967
> 
> This is fatal: Using cgroupv2 openjdk 21 doesn't recognize the
container
> limits by default anymore, the Java GC is not run since there seems to
> be plenty of memory, and the Java app runs into the container's memory
> limit and is killed with OOM.
> 
> openjdk 25 has been fixed, AFAICT.
> 
> Workaround is to configure the kernel with
> 
>       CONFIG_CPUSETS_V1=y
>       CONFIG_MEMCG_V1=y
> 
> to bring back the deprecated features.
> 
> I would like to suggest to re-enable the deprecated features in the
> kernel. It is pretty much unlikely that openjdk 21 is fixed in time
> for Trixie. Not to mention the kernel backport to Bookworm.

Thank you for bringing this to our attention.

I don't think it makes sense for us to re-enable cgroups v1, given that
it has been deprecated for so long and OpenJDK itself can use v2.

I will look into whether we can instead provide only a /proc/cgroups
file, which seems to be all that OpenJDK actually needed.

Ben.

-- 
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: