My project/product is complaining about too many clients...

  • btjanes
Posted: Mon, 02/08/2010 - 12:00

The number of clients that can connect to a VOV server is limited by the number of file descriptors available on the system.  If you are seeing this message, then you likely need to increase the limit on descriptors.  The following are instructions on how to do this on Linux:

1.  Edit the /etc/security/limits.conf file.
2.  Add the following lines:

* hard nofile 4096
* soft nofile 2048

3.  Open a new shell and confirm the change took place with:

For csh/tcsh:
% limit -h descriptors
% limit descriptors

To see all, use:

% limit -h
% limit

For bash:
% ulimit -Hn
% ulimit -n

To see all, use:

% ulimit -Ha
% ulimit -a

From this point on, if you see that the system is running out of descriptors again, you can up the limit without having to go through the above process again (as long as you don't require over the 4096 hard limit that you set):

For csh/tcsh:
% limit descriptors 4096

For bash:
% ulimit -n 4096

These commands can be put in your .cshrc or .bashrc files if needed so they are applied at shell startup time.