54. Docker/cgroups リソース制限を守る:
Memory
• メモリの設定 (JDK 10)
• -m<size>
• 影響を及ぼされた振舞
• Java ヒープサイズ, GC 領域サイズ, その他の VM の内部構造(例 code cache)
• JDK-8186248: Allow more flexibility in selecting Heap % of
available RAM
• 従来の「⽐率」ベースのオプションの代わりに
-XX:InitialRAMPercentage
-XX:MaxRAMPercentage
-XX:MinRAMPercentage
54
https://mjg123.github.io/2018/01/10/Java-in-containers-jdk10.html
55. その他
• JDK-8179498: attach in linux should be relative to
/proc/pid/root and namespace aware (JDK 10)
• JDK-8193710: jcmd -l and jps commands do not list Java
processes running in Docker containers (JDK 11)
• 将来の JEP
• Draft JEP: JDK-8182070: Container Awareness
55