I am trying to build an online code editor for my professor - user writes 
code and submits code to a nodejs process which then uses nodejs's 'spawn' 
to start a new process. One of the cases is if a student writes a forever 
while loop - the new process will consume lot of cpu on the server. 

I want to restrict the new processes running in terms of cpu usage and 
memory usage. 

One of the solution I could think was having an external program which 
checks the cpu and memory usage of new processes and kills them when they 
cross the threshold.
But I was more keen on an inbuilt solution in nodejs.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/8379e389-2abd-42fa-a76f-063bfe72baab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to