from Hacker News

SyncPad Node.js Server Revisited

by roder on 12/9/10, 4:20 PM with 15 comments

  • by gcr on 12/9/10, 8:08 PM

    I have this problem too -- with my project, the server right at once uses 100% CPU and memory increases dramatically. During this time, it stops responding to requests. Monit notices this and just restarts it. This happens for me roughly every half-an-hour under very high load.

    I'm using JSON parsing but not much else. No dependencies / libraries at all. Are there any steps I can take to provide useful data? Would anyone like me to run it with --prof and hammer it with 'ab' for example?

    Here's the code: http://github.com/gcr/goggles

  • by mishmash on 12/9/10, 4:55 PM

    So the results were worse, even though everyone involved thought they would be better on the updated version.

    Any theories?

  • by davidw on 12/9/10, 6:33 PM

    Erlang has various defects, but it is bomb proof in many ways - it's been out there for many years with many people using it for critical infrastructure.

    I'd bet on Node.js and similar efforts for the future, but Erlang is a pretty nice system and well worth looking at and learning from.

  • by geuis on 12/9/10, 6:27 PM

    @roder, can you include the ./config file in your github repo for toyserver.js? Trying to replicate your setup and this is missing.