Skip to content

Commit 87d51b5

Browse files
Update documentation on CPU availability and limits
Added note about container limits and heap usage implications.
1 parent ed70cf9 commit 87d51b5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎modules/container-resource-detection/pages/determining-cpu-availability-within-containers-openshift.adoc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ oc new-project hotrod-s2i-project
1616
oc new-app registry.access.redhat.com/ubi9/openjdk-17~https://github.com/alexbarbosa1989/hotrodspringboot.git --name=hotrod-app
1717
----
1818

19+
NOTE: Deploying as above will be without container limits, therefore it will use the host limits. This has implications for heap usage. For example, `Compressed Oops` mode will come disabled if the heap size is more than 32Gb+ and the VM.info will not show the line `Heap Address`.
20+
1921
. Use the following command to check the status of the deployment:
2022
+
2123
[source,bash]
@@ -131,6 +133,7 @@ sh-5.1$
131133

132134
Notes: Given the fact only integers can be used as CPU boundaries:
133135

136+
* Deployment straight with `new-app` does not set requests or limits, so it will come by default as unbounded deployment.
134137
* Values below 1 CPU, are set at 1. That would be for very small applications like Quarkus. For Enterprise applications that's usually not recommended for several reasons, including the fact the SerialGC would be the most optimal GC for the deployments and the application's threads share very small CPU time.
135138
* Fractional values are truncated, so 2200 millicores, becomes 2 CPU. Not rounded, but truncated.
136139
* Java does not care about requests, only limits.

0 commit comments

Comments
 (0)