If you are using Linux, especially Ubuntu, check the linked document below. This is my favorite: "Using sudo has side effects in terms of open file limits. On Ubuntu they’ll be reset to 1024, no matter what’s set in /etc/security/limits.conf"
http://wiki.basho.com/Open-Files-Limit.html /Attila