I have a Node JS application [MEAN stack - Node version: `v0.10.40`, 
Mongoose: `3.8.8`, Express: `4.0.0`.] running on a linux instance. It was 
working fine but during the past few days the app is responding really 
slow. 


   1. For mongo queries, the below error is thrown `MongoError: cursor 
   killed or timed out`.
   2.  And for few queries even though the data is returned by the 
   database, it is not being sent back to Angular from the controller. It is 
   failing at `return res.json()` statement . 

If I restart the app it seems to work most of the times but again after few 
hours the same issues reappear.  

*Command to start the app and stack allocation:*

NODE_ENV=production forever start -a -l forever.log -o output.log -e 
error.log -c "node --stack_size=12288 --max-old-space-size=12288" 
server/app.js


The same app is working from my local machine which has the same node, 
express, mongoose version. Could you guys help with this.



-- 
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/08cac617-24a6-4bf5-9ab4-eaf3d19d4719%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to