3
問題 akka.io.pinned-dispatcher在一個內核上利用100%CPU在頻道選擇器上進行無限循環選擇。 使用Spray框架時可能會遇到同樣的問題。Windows上akka.io.pinned-dispatcher上的高CPU問題
問題 akka.io.pinned-dispatcher在一個內核上利用100%CPU在頻道選擇器上進行無限循環選擇。 使用Spray框架時可能會遇到同樣的問題。Windows上akka.io.pinned-dispatcher上的高CPU問題
最初的解決方法來自Google Group。
禁用Windows連接關閉檢測是解決此問題的方法。
akka {
io {
tcp {
# On Windows connection aborts are not reliably detected unless an OP_READ is
# registered on the selector _after_ the connection has been reset. This
# workaround enables an OP_CONNECT which forces the abort to be visible on Windows.
# Enabling this setting on other platforms than Windows will cause various failures
# and undefined behavior.
# Possible values of this key are on, off and auto where auto will enable the
# workaround if Windows is detected automatically.
windows-connection-abort-workaround-enabled = off
}
}
}