Skip to content

Instantly share code, notes, and snippets.

@itzg
Created October 23, 2020 21:03
Show Gist options
  • Select an option

  • Save itzg/9672f9f1ea322587b3faa9de53c63e49 to your computer and use it in GitHub Desktop.

Select an option

Save itzg/9672f9f1ea322587b3faa9de53c63e49 to your computer and use it in GitHub Desktop.
JVM processor count when running on Kubernetes derivs from resources.limits.cpu
resources:
requests:
cpu: 4000m
memory: 4Gi
limits:
cpu: 5000m
memory: 4Gi
@itzg
Copy link
Author

itzg commented Oct 23, 2020

Runtime.getRuntime().availableProcessors() returns 5 in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment