parenko.dev
@parenko.dev
I had experimented and used -XX:InitialRAMPercentage=60 for the pods. After running a Java command in the terminal, the pod was oomkilled. Because JDK_JAVA_OPTIONS used by every JDK tool. So I wondered if it was possible to use the var only once, to avoid such trap and still remain flexible.
September 13, 2025 at 9:12 PM
Well, you can't remove the environment variable after the container starts. Only during your terminal session - if you don't forget.
September 13, 2025 at 5:45 PM
You mean eg ```ENV JDK_JAVA_OPTIONS="-Xmx512m -XX:+UseG1GC"
ENTRYPOINT ["/bin/sh", "-c", "java -jar app.jar && unset JDK_JAVA_OPTIONS"]```. Or in Terminal at the beginning.
September 12, 2025 at 8:39 AM
Is there also a way to delete this environment variable after use? So that it is not used again when calling Java in the terminal and the pod is possibly killed because too much memory was allocated.
September 12, 2025 at 4:39 AM
Reposted
The DORA research found that there is NO TRADE-OFF BETWEEN SPEED & QUALITY
Teams with good scores on both, spend 44% more time on new features!!!

Read “Accelerate” by Nicole Forsgren et al.
4/4
May 1, 2025 at 8:26 PM