I\'m creating a load tester that uses libev to create lots of open tcp connections to an app i\'m working on. Currently it bombs out at 256 connections, due to the nofiles l
Try running as root (e.g. do a "sudo -s" before running the ulimit command and your program).
Note that I'm not sure that 1-million-plus TCP sockets at once is realistically achievable (although I'm interesting in hearing about what happens when you try it ;^))