When working with Sauce Connect Proxy, you may get a warning message at start up to increase the file limit size to at least 8000.
*** WARNING: open file limit 1024 is too low!
Sauce Labs recommends setting it to at least 8000.
If you do not do this, you may find that over time, Sauce Connect Proxy does not operate correctly, due to a lack of available file handles. You might see problems establishing connections in the Sauce Labs logfile, and messages such as:
20161115 141416.261  PROXY error 24 (Too many open files) on listener
For Linux or Mac systems, one way to set the open file limit for Sauce Connect Proxy is:
- Gain Sudo rights.
- Run the command:
ulimit -n 8000.You should enter at least 8000 here, as that's our minimum recommendation, but feel free to increase past this number if your system can handle it.
- Restart Sauce Connect Proxy.
To set this permanently for the user which runs Sauce Connect Proxy, edit that user's .bash.profile or .profile file and add the command ulimit -n 8000 there.