I am running a JVM in a K8s
pods, and I have allocated it 512m
of CPU and 1Gi
of memory. When we execute
In context of Runtime.getRuntime().availableProcessors()
,
what would be the value returned? I want to know this since some of the libraries like Couchbase Java client, RxJava etc. rely on this value to determine the number of threads in various thread-pools.
How is the value 512m
interpreted. Would it take the floor or the ceil of this value? Or is there a different way to compute this altogether?