What does UseContainerSupport VM parameter do?

前端 未结 2 802
我在风中等你
我在风中等你 2020-12-18 21:30

What does this option do in docker file?

ENTRYPOINT java -XX:+UseContainerSupport $JAVA_OPTIONS -jar /myapp.jar

Will the docker container s

2条回答
  •  臣服心动
    2020-12-18 21:54

    Yes. The container will start without -XX:+UseContainerSupport.

    -XX:+UseContainerSupport is used to allocate a larger fraction of memory.

    To prevent the JVM adjusting the maximum heap size when running in a container, set -XX:-UseContainerSupport.

    In addition to that, https://www.eclipse.org/openj9/docs/xxusecontainersupport/ might be helpful.

提交回复
热议问题