UseContainerSupport VM参数有什么作用? [英] What does UseContainerSupport VM parameter do?

查看:90
本文介绍了UseContainerSupport VM参数有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此选项在docker文件中做什么?

What does this option do in docker file?

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

docker容器是否在不使用此参数的情况下启动?
我检查了一篇文章,其中说

Will the docker container start without this parameter? I checked one article which says


启用内存支持

enable memory support

但是我仍然不清楚。

推荐答案

是。容器将不使用 -XX:+ UseContainerSupport 开始。

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

-XX:+ UseContainerSupport 用于分配更大的内存。

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

要防止JVM在容器中运行时调整最大堆大小,请设置 -XX:-UseContainerSupport

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

除此之外, https://www.eclipse.org/openj9/docs/xxusecontainersupport/ 可能会有所帮助。

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

这篇关于UseContainerSupport VM参数有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆