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.
- On Linux™ , you can do this by setting the value of net.core.somaxconn.