Technical Notes |
|
This technical note describes how to increase the number of concurrent connections to the Reflection security proxy server by increasing number of file descriptors and setting the proxy server to allow unlimited connections. This information is specific to the Sun Solaris operating system, although the concepts may be applicable to other UNIX systems.
When running a large number of concurrent connections to the security proxy server on a Sun Solaris system, additional new connections may fail.
In the security proxy server log, you may see the following error:
Connection Error: Too many open filesIf the security proxy server was started manually as an application from a shell prompt, you may also see the following Java exception:
java.net.SocketException: Too many open filesThis problem occurs when exceeding the maximum number of file descriptors allocated to the Java Virtual Machine that is running the security proxy server. The default number of file descriptors allocated to a given process depends on the Solaris version and kernel configuration.
| Solaris Release |
Default Limit |
Default Hard Limit |
| Solaris 7 |
64 |
1024 |
| Solaris 8 |
256 |
1024 |
| Solaris 9 |
256 |
65536 |
To resolve the problem, increase the number of file descriptors.
Each security proxy server connection uses two file descriptors. In addition, a baseline of approximately 20 file descriptors is needed to run the security proxy server. To determine the number of file descriptors required, refer to the following formula:
<descriptors> = (<connections> * 2) + 20
where <connections> represents the maximum number of concurrent connections you predict the security proxy server may receive.
For example:
(22 connections * 2) + 20 = 64 descriptors
(502 connections * 2) + 20 = 1024 descriptors
Note: The number of permitted concurrent sessions is governed by your Reflection product licensing.
To increase the file descriptors, follow these steps:
ulimit n <descriptors>where <descriptors> represents the integer number of descriptors needed to support the security proxy connections.
Note the following:
In addition to increasing the file descriptors, it may be helpful to set the MaxConnections value in your Server.Properties file. To verify the MaxConnections value and change it if necessary, follow the steps below.
If you made changes, stop and restart the security proxy server for the changes to take effect.