Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316418

containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC

XMLWordPrintable

    • gc
    • b17

        Reproduced on AL like this:

        ```
        $ CONF=linux-x86_64-server-fastdebug make test TEST=containers/docker TEST_VM_OPTS="-XX:+UseParallelGC"
        ...
        [0.002s][trace][os,container] CgroupSubsystem::active_processor_count (cached): 36^M
        ];
         stderr: []
         exitValue = 137

        java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [137]
                at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
                at jdk.test.lib.containers.docker.Common.run(Common.java:108)
                at TestMemoryWithCgroupV1.testMemoryLimitWithSwappiness(TestMemoryWithCgroupV1.java:83)
                at TestMemoryWithCgroupV1.main(TestMemoryWithCgroupV1.java:61)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
                at java.base/java.lang.Thread.run(Thread.java:1570)
        ```

        dmesg says:

        ```
        [387702.462552] Tasks state (memory values in pages):
        [387702.466721] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
        [387702.474297] [ 4318] 0 4318 455731 30386 393216 0 0 java
        [387702.481643] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=04fc22b6369352a1472928ae217c0e90282d164604894bfe4d29424bb6ece541,mems_allowed=0,oom_memcg=/docker/04fc22b6369352a1472928ae217c0e90282d164604894bfe4d29424bb6ece541,task_memcg=/docker/04fc22b6369352a1472928ae217c0e90282d164604894bfe4d29424bb6ece541,task=java,pid=4318,uid=0
        [387702.504062] Memory cgroup out of memory: Killed process 4318 (java) total-vm:1822924kB, anon-rss:100120kB, file-rss:21424kB, shmem-rss:0kB, UID:0 pgtables:384kB oom_score_adj:0
        ```

              sgehwolf Severin Gehwolf
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: