Windows上akka.io.dispatcher上的高CPU

Windows上akka.io.dispatcher上的高CPU,akka,cpu-usage,spray,Akka,Cpu Usage,Spray,问题akka.io.pinted-dispatcher在一个内核上利用100%的CPU在通道选择器上进行无限循环选择。 使用Spray framework时可能会遇到同样的问题。最初的解决方法来自 禁用Windows连接关闭检测是解决此问题的方法 akka { io { tcp { # On Windows connection aborts are not reliably detected unless an OP_READ is # registe

问题akka.io.pinted-dispatcher在一个内核上利用100%的CPU在通道选择器上进行无限循环选择。
使用Spray framework时可能会遇到同样的问题。

最初的解决方法来自

禁用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
    }

  }

}