49

容器(docker)中运行java需关注的几个小问题-java关博的博客

 5 years ago
source link: http://blog.51cto.com/14049376/2319053
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
简介container: 资源隔离、平台无关, 限制cpu、mem等资源  java不知道自己运行在container里,以为它看到的资源都能用。结果:java工作在资源充足的详述程序运行的两个核心资源:cpu和mem,其他资源或许也有限制,暂不涉及。cpujvm检测可用cpu个数来优化运行时,影响jvm后台做的一些决策。影响java.lang.Runtime 所以u

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK