Spring Integration
  1. Spring Integration
  2. INT-2418

Improve Documentation About TCP Connection Factory pool-size When using-nio="true"

    Details

      Description

      It is hard to predict an appropriate pool size when using NIO. With large messages, it is possible that 2 threads per socket are needed concurrently (one reading fragments, one assembling those fragments into messages. One thread from the pool is reserved for handling selector events.

      In the referenced forum thread, the user set the pool size to 2. One of these was the selector thread; the second read 3251 bytes from the socket and blocked writing to the piped output stream because no threads were available to consume the data from the corresponding piped input stream.

      The pool-size should be selected such that sufficient threads are available to handle the expected number of concurrent message receptions.

        Issue Links

          Activity

          Show
          Gary Russell added a comment - PR Issued: https://github.com/SpringSource/spring-integration/pull/342

            People

            • Assignee:
              Gary Russell
              Reporter:
              Gary Russell
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: