Tips
Some Erlang heavy duty network servers open a LOT of files. There are a couple of things you will likely need to do to make things work well.
Modify /etc/system
cat /etc/system set rlim_fd_max=65536 set rlim_fd_cur=65536
Modify Your Startup Script
#!/bin/bash ulimit -Sn 65536 ...
See if that helps you.
Add More Network Sockets
Recently, during some heavy duty testing we found that it's not terribly difficult to exhaust the number of network sockets available. But, there is a way around this problem. You can simply add more IP's to your accellerator. Then, as noted on the Erlang Google Group at http://groups.google.com/group/erlang-questions
Specify different IP addresses using the {ip, ip_address()} option to
gen_tcp:listen/2.
