Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive memory usage #27

Closed
lrabe opened this issue Jan 6, 2016 · 1 comment
Closed

Massive memory usage #27

lrabe opened this issue Jan 6, 2016 · 1 comment

Comments

@lrabe
Copy link

lrabe commented Jan 6, 2016

discord-irc uses close to 140MB of RAM on my 512MB VPS.
There's only one channel mapping and not too much chatting going on.
Ubuntu version is 14.04.3 LTS, node version is 0.12.9

This is way to much.

Output of top:

discord-irc memory usage

For my config.json, refer to #25

@ekmartin
Copy link
Member

Sorry for the late answer. With a lot of event listeners it might just be that Node's garbage collector doesn't run before it really has to, i.e. thus the large memory usage. It doesn't seem like a memory leak, since it stabilizes instead of crashing. Could you try running the application with --max_old_space_size set to a low number? I think this should force garbage collection to run whenever it converges towards that memory usage, some discussion here.

I would also try upgrading to Node 5, as there apparently were several memory consumption improvements in Node 4. Upgrading on Ubuntu: https://github.com/nodesource/distributions#installation-instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants