/ / Високий процесор на akka.io.pinned-диспетчер у Windows - akka, використання процесора, спрей

Високий процесор на akka.io.pinned-dispatcher в операційній системі Windows - akka, cpu-use, spray

Проблема akka.io.pinned-диспетчер використовує 100% ЦП на одному ядрі, роблячи нескінченний вибір циклу на селекторі каналів. З тією ж проблемою можна зіткнутися і при використанні Spray Framework.

Відповіді:

4 для відповіді № 1

Спочатку вирішення походження Група 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
}

}

}