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

[linux] Experimental support for cgroup memory limits in container (ie Docker) environments

    Details

    • Type: Backport
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u152
    • Fix Version/s: 8u152
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b01
    • OS:
      linux

      Issue Links

        Activity

        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/c7140a91e56a
        User: dholmes
        Date: 2017-01-06 04:42:29 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/hotspot/rev/c7140a91e56a User: dholmes Date: 2017-01-06 04:42:29 +0000
        Hide
        dholmes David Holmes added a comment -
        Default behaviour in 128MB Docker container:

        root@4b4024ad1b4d:/# ./jdk8/bin/java -XX:+PrintGCDetails -XX:+Verbose -version
          Maximum heap size 16870012928
          Initial heap size 1054375808
          Minimum heap size 6815736
        ...

        New behaviour:

        root@4b4024ad1b4d:/# ./jdk8/bin/java -XX:+PrintGCDetails -XX:+Verbose -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version
        Setting phys_mem to the min of cgroup limit (128MB) and initial phys_mem (64353MB)
          Maximum heap size 67108864
          Initial heap size 6815736
          Minimum heap size 6815736
        ...
        Show
        dholmes David Holmes added a comment - Default behaviour in 128MB Docker container: root@4b4024ad1b4d :/# ./jdk8/bin/java -XX:+PrintGCDetails -XX:+Verbose -version   Maximum heap size 16870012928   Initial heap size 1054375808   Minimum heap size 6815736 ... New behaviour: root@4b4024ad1b4d :/# ./jdk8/bin/java -XX:+PrintGCDetails -XX:+Verbose -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version Setting phys_mem to the min of cgroup limit (128MB) and initial phys_mem (64353MB)   Maximum heap size 67108864   Initial heap size 6815736   Minimum heap size 6815736 ...
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/c7140a91e56a
        User: robm
        Date: 2017-01-20 23:38:54 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/c7140a91e56a User: robm Date: 2017-01-20 23:38:54 +0000

          People

          • Assignee:
            dholmes David Holmes
            Reporter:
            hgupdate HG Updates
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: