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 leaks #1500

Closed
novacrazy opened this issue Aug 5, 2015 · 6 comments
Closed

Massive memory leaks #1500

novacrazy opened this issue Aug 5, 2015 · 6 comments

Comments

@novacrazy
Copy link

Earlier today I reinstalled my project dependencies and upgraded everything the latest versions, and now I'm getting gigabytes of memory used on the PM2 God Daemon and the KeyMetrics.io Agent processes. It uses up about 30MB per minute, sometimes as much as 2MB per second. After about two hours my server crashes because it's out of memory. So that's a pretty big problem.

I know for a fact it is not my code, because I have a page on my application that monitors all memory and CPU aspects of each running process. Plus I can view it in htop. Only the PM2 God Daemon and Keymetrics.io Agent are leaking tons of memory.

For now I'm going to try reverting back to an older version of PM2 to see if that helps.

@novacrazy
Copy link
Author

After fifteen minutes running PM2 version 0.14.3, the Keymetrics.io Agent and the God Daemon are each taking up about 10-13% of my server's RAM. That is, doing absolutely nothing, each one is using over 200MB. That is insane.

The only thing I have changed in my application in the last week is a couple Redis connections that are actually less intensive that they were previously.

Any ideas?

@novacrazy
Copy link
Author

Upon further research, this actually seems tied to me upgrading to io.js 3.0.0

On io.js 2.4.0 and 2.5.0 memory usage for PM2 processes stays relatively low. Hovering at around 2% for the last five minutes with no signs of leaking.

Interesting.

@factoidforrest
Copy link

Can confirm, same thing on io.js 3. This is a serious, serious bug for something in production

@rdner
Copy link

rdner commented Aug 19, 2015

Also confirm this issue. I have memory leaks since updated to 0.14.4 version. I'm using iojs 1.8.4.

I've found this changelog line in 0.14.4 release:

Fix: Remove forced GC

Can be that a reason?

[email protected] works w/o memory leaks for me.

@soyuka
Copy link
Collaborator

soyuka commented Aug 19, 2015

#1453 #1380

@jshkurti
Copy link
Contributor

@pragmadash Yes, upgrade to the latest version of PM2 please.

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

5 participants