Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JDK 1.6.024 ではsetWakeupSocket0()、ソケット接続で 100% 近くの CPU を消費するスレッドが見られます。このネイティブ メソッドは、この特定setWakeupSocket()の のプライベート部分から呼び出されます。このメソッドが数分間スタックする原因は何ですか?wakeup()SelectorImpl
setWakeupSocket0()
setWakeupSocket()
wakeup()
SelectorImpl
2019 年 2 月の更新: 最新バージョンの JDK 1.8 では実行時間が長くなることがわかります。