Container aware Java

An effort is being made so the JVM and core libraries are aware when they are running in a container. Moreover, to be adaptive in the use of available system resources. This feature is especially relevant with the ubiquitous nature of cloud computing.

There are two major components of the proposed feature:

  • Detection:
    • Determine if Java is running inside a container
  • Container resource exposure:
    • Expose container resources limits
    • Expose container resource configuration

Several configuration status points have been initially identified:

General CPU-related Memory-related
isContainerized CPU Period Block I/O Device Weight
CPU Quota Block I/O Weight
CPU Set Memory Nodes Current Memory Usage
CPU Sets Device ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.