Increases the Linux file descriptors limit.
Under Linux operating systems, file descriptors are used to abstract not only open files but also socket connections. By default most Linux distributions are set to a maximum of 1024 file descriptors: each time a file is opened or a socket connection is established, one of these descriptors is used. If a SmartFoxServer 2X application receives a lot of traffic it might start complaining with a "Too many open files" error.
This script increases the file descriptors limit to avoid the above error (skipped in case of server reboot).
Revision 4 | Aug 13, 2013
Sign-up for RightScale