#1120903 openjdk-21: very low default maximum heap size on powerpc

#1120903#5
Date:
2025-11-18 04:47:53 UTC
From:
To:
Hi!

This only happens on powerpc, not any other arch. java (openjdk-21 or 25) is completely not usable on my machine:


Processing triggers for ca-certificates-java (20240118) ...
Error occurred during initialization of VM
Too small maximum heap
Unable to execute Java. Skipping Java certificates setup.


`java --version` returns the same error, but `java -Xmx2M --version` is fine.

Context: this all happens in a powerpc chroot, the host is running ppc64. openjdk-25 also returns the same error, but not others.

I don't have a clue what's going on, but since it crashes with the default max heap size, I can't run `java -XX:+PrintFlagsFinal 2>&1 | grep MaxHeapSize` to see how much the default is.

#1120903#10
Date:
2025-11-18 05:24:29 UTC
From:
To:
Hi,

Probably a 32 bit representation of 4GB.

    Simon