Just a second...

Connectors

You can tune your connectors to handle multiple connections and improve performance.

Configuring multiple connectors

It might be beneficial to configure different connectors for different client types, as their requirements can be different.

Buffers

As Diffusion™ can have tens of thousands of connections at any one time on a machine it is important to make sure that the buffers are set correctly.

Small buffer sizes increase the number of network operations that must be performed to receive and transmit data, reducing efficiency. However, larger buffer sizes require more server-side memory. The server reserves a buffer for each pending network read or write.

For more information, see Buffer sizing.

Backlog of incoming connections

By default, the Diffusion server requests that the operating system restricts the maximum number of unaccepted TCP connections to the network port managed by the connector to 1000. Additional clients attempting to connect are refused connection.

This maximum number of unaccepted connections can be configured using the backlog element to the connector definition in the Connectors.xml configuration file. Diffusion accepts new connections very rapidly, so it is rarely necessary to tune this parameter.

In addition, the number of unaccepted client connections on a socket is further constrained by the system-wide limits set by the operating system that you run the Diffusion server . Ensure that the operating system allows at least as many incoming connections as the Diffusion server .
  • On Linux™ , you can do this by setting the value of net.core.somaxconn.