What does the message "socket: Too many open files" mean?

What does the message "socket: Too many open files" mean?

book

Article ID: KB0084909

calendar_today

Updated On:

Products Versions
TIBCO SmartSockets -
Not Applicable -

Description

Resolution:
RTclient displays the following error:  
  Attempting to reconnect to RTserver. Connect to project on RTserver.
  Using tcp protocol. socket: Too many open files
  Could not connect to RTserver.
  Skipping starting RTserver.
  Cannot reconnect to RTserver.

You can fix this problem by either one of the following:

1. Increase the number of file descriptors using $ ulimit. There are Soft limits and Hard limits. Soft limits are resource use limits applied by default when a new process is created. You can increase these values up to the value of the Hard limit value.
    $ ulimit -H /* display Hard resource limit */
    $ ulimit -S /* display Soft resource limit */
    $ ulimit -n x /* increase the number of file descriptors by x */

2. Limits are applied on a per process basis which suggests you'll have to examing your code to see if you're opening a combination of connections and files that over a given period of time exceeds the Soft limit. You have to su root to increase the value of a Hard limit.

See "File Descriptor Limit" in the SmartSockets User's Guide, Ver. 6.0.

Issue/Introduction

What does the message "socket: Too many open files" mean?