I had something similar happen. I've got a very low traffic express
app (no other modules) running on a micro instance. After leaving it
overnight the app would be unresponsive and the node process using
100% CPU / requiring a kill -9.

Other EC2 instance sizes do not have the same problem - only micro.

I suspect it has something to do with the burst behaviour of the micro
instances. From Amazon: "Instances of this family provide a small
amount of consistent CPU resources and allow you to burst CPU capacity
when additional cycles are available". Immediately following a burst
it seems to slow to a complete halt.

tl;dr don't use micro instances.


On Feb 17, 6:40 am, Kris Walker <[email protected]> wrote:
> One of my EC2 machines (not part of a cluster) stopped responding to
> my health checker the other day. I logged onto it and using `top`
> discovered that the node.js process was hitting 99% cpu utilization
> every time it received a request event. I killed the process and
> restarted the server; when I started everything back up it was back
> down to the normal 9-17% CPU utilization per request. You can see the
> monitor data graph here:https://p.twimg.com/AlzFVjUCEAArq0C.pngIt's
> been steadily ramping up for the past two weeks.
>
> * It is an micro EC2 instance
> * The machine is running a low traffic Node.js webserver (~40 page
> views per day)
> * It is also running a very low traffic LAMP WordPress installation
> (~2 page views per day)
>
> Normally I would say this is a memory leak, but the memory usage was
> not reported to be very high by `top`. There is only one Node.js
> process running on this machine, and it clearly hit 99% on every
> request. Any idea why this would happen?

-- 
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

Reply via email to