Sign inSign up

testcab/java-runtime-info

By testcab

Updated about 7 years ago

A docker image to visualize cpu/memory requests/limits specified on pod in kubernetes.

Image
0

502

testcab/java-runtime-info repository overview

java-runtime-info

docker build automated

This is a docker image intended to print out available processors and max memory of java runtime, in order to visualize cpu/memory requests/limits specified on pod in kubernetes.

Test Results

Tested with docker image openjdk:8-jre on a kubernetes cluster of 3 VMs with 16 vCPU and 32 GiB memory. Memory request and limit are not set. Test files can be found under tests directory.

CPU RequestCPU Limit=Available ProcessorsMax Memory
0 / (none)(none)=18151564288
500m(none)=18151564288
1(none)=167495745536
1500m(none)=27495745536
2(none)=27495745536
500m800m=18151564288
500m1=18151564288
12=27495745536
13500m=47495745536
1500m3500m=47495745536

Conclusions:

  • If CPU limit is specified, available processors are set to the ceiling of CPU limit;
  • If CPU request is specified but limit unspecified, available processors are set to the ceiling of CPU request with the following exception:
  • If CPU request is set to 1, available processors are set to the number of CPU cores of the underlying VM.

LICENSE

MIT

Tag summary

Content type

Image

Digest

Size

100.8 MB

Last updated

about 7 years ago

docker pull testcab/java-runtime-info