I was able to increase the ulimit file descriptor value to 10k to do
the load testing and the connections appeared to rise accordingly.
Then what should be the ideal value to go with? Does that matter or
just as per my need? Also some way that I could find the current
number of active connections would be great.
And again I forgot to mention the version of node.js I'm using. Its
v0.1.32.
Sharief
> 2010/7/9 Sharief Shaik <
sharie...@gmail.com>:
>
>
>
> > Hello there!
>
> > I have a machine running node.js with a tcp server (tcp.createServer)
> > and a http server (http.createServer). The http server is hit by long
> > polling requests (lasting 50 sec each) from a comet based application
> > on port 80. And there are tcp socket connections on port 8080 from an
> > iphone application for the same purpose.
>
> > It was found that the server was not able to handle more connections
> > (especially the tcp connections while the http connections appeared
> > fine!!??) for a while and was normal only after a restart.
>
> > For load testing the connections I took the reference of Petes
> > examples in the other post here to see how may connections my server
> > can handle [
> >
http://groups.google.com/group/nodejs/browse_thread/thread/bb464045d0...
> > ]
>
> > ...and figured that the connections starting to fail after the max
> > file descriptor limit on machine is reached (default 1024). Which is a
> > really very small number.
>
> > So, a novice question here: How do I scale my application to handle
> > more number of connections on node.js and how I handle this issue.
>
> > Is there a way to find out how many active connections are there at
> > the moment?
>
> > Thanks
> > Sharief
>
> > --
> > You received this message because you are subscribed to the Google Groups "nodejs" group.
> > To post to this group, send email to
nod...@googlegroups.com.
> > To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com.
> > For more options, visit this group athttp://
groups.google.com/group/nodejs?hl=en.