/ / Windowsのakka.io.pinned-dispatcherのCPU使用率が高い-akka、cpu-usage、spray

Windows上のakka.io.pinned-dispatcher上の高いCPU - akka、cpu-usage、spray

問題 akka.io.pinned-dispatcherは、チャネルセレクターで無限ループ選択を行う1つのコアで100%CPUを利用します。 スプレーフレームワークを使用すると、同じ問題に直面する可能性があります。

回答:

回答№1は4

元々の回避策は Googleグループ.

この問題の回避策は、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
}

}

}