gpt4 book ai didi

akka - Windows 上 akka.io.pinned-dispatcher 的高 CPU

转载 作者:行者123 更新时间:2023-12-05 01:18:06 24 4
gpt4 key购买 nike

问题 akka.io.pinned-dispatcher 在一个内核上使用 100% CPU,在 channel 选择器上进行无限循环选择。使用 Spray 框架时可能会遇到同样的问题。

最佳答案

最初的解决方法来自 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
}

}

}

关于akka - Windows 上 akka.io.pinned-dispatcher 的高 CPU,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29453848/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com