[haXe] hi and chat example

Nicolas Cannasse ncannasse at motion-twin.com
Thu Apr 5 13:24:21 CEST 2007


> If I use a VPS to run a server (as a cheapest way t get shell access)
> (like http://www.vpslink.com/vps-hosting/) what sized package (RAM)
> should I be looking at if I want to run it like a more or less simple
> chat with max to 50 silmultaneous users online?
> Are there any known limits to how many simultaneous users server could
> take?... I am not an expert but from the code I think it uses async
> sockets which I think don't use that many resources per connection (if
> it's not that active) as for example threaded socket...

The remoting server uses both async sockets and threads. One thread can
handle several sockets, so you can reduce the number of threads
(server.nthreads) and increase server.maxSockPerThread before starting it.

The server will then be able to handle up to nthreads * maxSockPerThread
clients, if you have enough bandwidth/CPU. For example with 50 threads
it takes 12MB of memory. We have one server with always a few hundreds
connected users and it doesn't take much CPU or RAM.

Nicolas



More information about the Haxe mailing list