java对cpu线程的要求_java-CPU份额对线程有什么影响
我的問題更多地在Java線程方面.但是對于OS級別的線程,它可能也更通用.
JAVA特定:ThreadPool Tuning Size的意義是什么(公式)?帶有容器的沖擊性能及其在發動機罩下的行為. (我想我可以理解cpu集,但不能理解cpu份額,我知道什么是cpu份額,只是不了解線程在這里的行為).
因此,我讀了一篇有關java in containers(在CloudFoundary上運行應用程序時觀察到的),3和enhancements的文章,這些文章已引入JDK 10中以檢測容器限制.
在上述文章中:
Let’s take a short look at how the JVM adjust to the number of processors/cores available on the node it is running on. There are actually a number of parameters which by default are initialized based on core count.
So if the normal default values for GC-threads, JIT Threads etc are the total number of ‘cores’ available.
現在,如果
the number_of_cpus() will be calculated based on cpu_shares()/1024
然后,在假設CPU份額為512的情況下,此計算將得出0.(然后,我假定該值將舍入為1 ??).
那如何運作呢?
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的java对cpu线程的要求_java-CPU份额对线程有什么影响的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 2wei shuzu_Java
- 下一篇: java mawen介绍_Maven的