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 ... |