Java APP running in pod restarted because of "OOM" after AKS's version up.

2023-09-27T04:48:42.5866667+00:00

We deployed "Forgerock openam" in AKS and it worked fine.

We recently upgraded AKS (from v1.24 to v1.27).

After updating, the POD in the AKS repeatedly restarted due to OOM error.

Originally 3Gi memory was sufficient, but it has continued to increase to 20Gi.

P.S.

Forgerock Openam is a Java application, and the JAVA version in the Pod is "openjdk 11.0.10". Since this is a problem in a production environment, please let me know if there is a fix that has the least impact.

Best reguards

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,116 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anrodrigues-MSFT 0 Reputation points Microsoft Employee
    2023-09-27T08:34:59.4533333+00:00

    Hello SEH 呂 暁権/Lu, Xiaoquan (NTT DATA)

    Thank you for reaching out to the Microsoft Q&A platform.

    It sounds like that you are experiencing issues with this breaking change introduced in AKS 1.25 related with CGROUPSv2 (changelog here: https://github.com/Azure/AKS/releases/tag/2023-07-23)
    You have also here (https://learn.microsoft.com/en-gb/troubleshoot/azure/azure-kubernetes/aks-increased-memory-usage-cgroup-v2) the article that explains in better detail your issue.
    From the information collected, i see that you are using "openjdk 11.0.10", and please note that this issue is present until version "openjdk 11.0.18".
    I found for you also this workaround (https://github.com/Azure/AKS/blob/master/examples/cgroups/README.md) where you can temporarily revert no CGROUPSv1


    If you have any questions, please drop a comment by tagging my userid @anrodrigues-MSFT

    If this does answer your question, please accept it as the answer as a token of appreciation.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.