/ / Vysoká CPU na akka.io.pinned-dispatcher na Windows - akka, cpu-use, sprej

Vysoký CPU na akka.io.pinned-dispatcher na systéme Windows - akka, cpu-use, sprej

problém akka.io.pinned-dispatcher využíva 100% CPU na jednom jadre a robí nekonečný výber slučky na voliči kanálov. Rovnaký problém sa môže vyskytnúť pri použití Spray framework.

odpovede:

4 pre odpoveď č. 1

Pôvodne riešenie pochádza z Skupina Google.

Zakázanie detekcie zatvorenia pripojenia systému Windows je riešenie tohto problému.

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
}

}

}