WebFaction
Community site: login faq

Hi,

I have a node.js + socket.io chat on my server but node.js is taking a lot of memory (1.5Gb) so I wonder if other users have the same issue or if node.js stays low on memory.

I checked my code for memory leaks but everything seems ok => http://stackoverflow.com/questions/15723532/detect-node-js-javascript-memory-leak-in-code

Thanks

asked 03 Apr '13, 05:05

benoitdupont
1633
accept rate: 100%

I read this post on Hacker News recently which talks about debugging a memory leak in Node / socket.io : http://jpallen.net/2013/03/08/tracking-down-a-memory-leak-in-node-js-and-socket-io/

(03 Apr '13, 18:12) SethKinast

I have never heard of an instance where node.js alone used that much RAM, it has to be what you are loading into memory with node.js or the number of users, each loading a little which than equates to a lot. Of course profiling the app is the correct course of action, and if you have done that and verify the objects being loaded are required than there is not much else you can do. If your app truly needs those resources you may consider upgrading.

permanent link

answered 03 Apr '13, 18:07

johns
5.4k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×87
×67
×34
×8
×3

question asked: 03 Apr '13, 05:05

question was seen: 5,360 times

last updated: 03 Apr '13, 18:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM