Sophia Parafina

Improved Docker Container Integration with Java 10

Many applications that run in a Java Virtual Machine (JVM), including data services such as Apache Spark and Kafka and traditional enterprise applications, are run in containers. Until recently, running the JVM in a container presented problems with memory and cpu sizing and usage that led to performance loss. This was because Java didn’t recognize that it was running in a container. With the release of Java 10, the JVM now recognizes constraints set by container control groups (cgroups). Both memory and cpu constraints can be used manage Java applications directly in containers, these include: adhering to memory limits set in the container setting available cpus in the container setting cpu constraints in the container Java 10 improvements are realized in both Docker for Mac or Windows and Docker Enterprise Edition environments. Container Memory Limits Until Java 9 the JVM Continue reading…