【转】java、docker

本文探讨Oracle Java SE支持流程及其对Docker/K8S的影响。目标是能否基于其他操作系统构建客户Docker镜像并在Openshift或Canonical Kubernetes上运行,以及是否获Oracle支持。解决方案表明配置可行,Java SE 8u131及JDK 9的JVM能感知Docker CPU限制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

What Is the Oracle Java SE Support Process and It's Impact on Docker/K8S Openshift or Canonical Kubernetes? (文档 ID 2432386.1)

APPLIES TO:

Java SE JDK and JRE - Version 7 to 9
Information in this document applies to any platform.

GOAL

There is an official Docker image for Oracle Java SE.  It is based on Oracle Linux.  Is it possible to build and install a customer Docker image based on another OS image such as RedHat or Ubuntu?  Can that image be run on Openshift or Canonical Kubernetes?  And is any of this supported by Oracle?
 

SOLUTION

Any of the suggested configurations should work.  There is no technological bar.  From Oracle's standpoint, the use of Docker is irrelevant for Java SE support or licensing.  Oracle has made several enhancements to Java SE to make it work more seamlessly with Docker.
 
As of Java SE 8u131 and in JDK 9, the JVM is Docker-aware with respect to Docker CPU limits. It recognizes such limits transparently.  That means that if:

-XX:ParalllelGCThreads, or -XX:CICompilerCount

are not specified as command line options, the JVM will apply the Docker CPU limit as the number of CPUs the JVM detects on the system.  See the Java Platform Groups blog post "Java SE support for Docker CPU and memory limits" for more details.

 

 

REFERENCES

BUG:28390490 - JAVA SUPPORT IN DOCKER/K8S OPENSHIFT OR CANONICAL KUBERNETES

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值