0
我想知道Jetty Server如何計算和管理Acceptor,選擇器和請求線程以及它們之間的關聯是什麼?Jetty Server中的線程管理9.3.X
我想知道Jetty Server如何計算和管理Acceptor,選擇器和請求線程以及它們之間的關聯是什麼?Jetty Server中的線程管理9.3.X
選擇器/接受器根據以下公式計算。
int selectorCount=selectors>0?selectors:Math.max(1,Math.min(4,Runtime.getRuntime().availableProcessors()/2))
int selectorCount=acceptors=Math.max(1, Math.min(4,cores/8));