My node.js server essentially serves long-polling requests so it needs to be able to hold many http requests simultaneously - I have my ubuntu environment set up accordingly (see details at the bottom).
If I start node by hand (sudo /usr/bin/*node server.js &*) everything is groovy, I succesfully tested my long-polling server with a few thousand simultaneous connections. If I start node using one of the common monitoring tools like upstart<http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/>or supervisord <http://supervisord.org/>, the server stops accepting connections after 1135 simultaneous connections. And I have no clue why...does anybody know a fix or know of have alternatives options compatible with a high-concurrency application ? Environment details: =============== *ulimit -n > 65535* *# See http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-3/ & **https://gist.github.com/243632** **net.core.rmem_max = 33554432* *net.core.wmem_max = 33554432* *net.ipv4.tcp_rmem = 4096 16384 33554432* *net.ipv4.tcp_wmem = 4096 16384 33554432* *net.ipv4.tcp_mem = 786432 1048576 26777216* *net.ipv4.tcp_max_tw_buckets = 360000* *net.core.netdev_max_backlog = 2500* *vm.min_free_kbytes = 65536* *vm.swappiness = 0**net.ipv4.ip_local_port_range = 1024 65535* -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
