1) Use the go runtime.NumCPU() will return the CPU of the node but not container, which is not right in container env
2) From JDK8, the JDK will return the right process account of container https://bugs.openjdk.org/browse/JDK-8140793
Use Cases
Checklist
[X] I have viewed, signed, and submitted the Contributor License Agreement.
[X] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[X] I have added an integration test, if necessary.
[X] I have reviewed the styleguide for guidance on my code quality.
[X] I'm happy with the commit history on this PR (I have rebased/squashed as needed).
Summary
1) Use the go runtime.NumCPU() will return the CPU of the node but not container, which is not right in container env 2) From JDK8, the JDK will return the right process account of container https://bugs.openjdk.org/browse/JDK-8140793
Use Cases
Checklist