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

Memory usage probably wrong #6

Closed
MarceloCajueiro opened this issue Apr 2, 2014 · 10 comments
Closed

Memory usage probably wrong #6

MarceloCajueiro opened this issue Apr 2, 2014 · 10 comments

Comments

@MarceloCajueiro
Copy link

Hey guys,

I'm using puma auto tune in an api with heroku and it looks that auto tune is seeing the wrong amount of used memory.

Here's a librato chart with the date:

correlate___librato

The current configuration is:

PumaAutoTune.config do |config|
  config.ram = 1024 # 2x dynos
end

PumaAutoTune.start

The app is using only one thread.

Is this right?

Thanks!

@schneems
Copy link
Owner

schneems commented Apr 2, 2014

You are correct zombocom/get_process_mem#2 on linux we should be using PSS, i'm working on updating this.

@MarceloCajueiro
Copy link
Author

Thanks @schneems.

@bdmac
Copy link

bdmac commented Apr 3, 2014

👍

@jeremyhaile
Copy link

Should I hold off on using this gem until this is fixed? Was thinking about deploying it, but this issue worries me!

@schneems
Copy link
Owner

I wouldn't consider this gem safe for production just quite yet. Turns out PSS is also not correct zombocom/get_process_mem#7

@jeremyhaile
Copy link

OK thanks! What does unicorn worker killer use?

@schneems
Copy link
Owner

same thing :(

On Mon, Apr 28, 2014 at 6:04 PM, Jeremy Haile [email protected]:

OK thanks! What does unicorn worker killer use?


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-41625090
.

@grosser
Copy link

grosser commented Nov 26, 2015

could this help ?
heroku labs:enable log-runtime-metrics --app YOUR_APP_NAME

see https://github.com/arches/whacamole

@schneems
Copy link
Owner

whacamole is pretty cool concept, have you tried it? I'm not in love with requiring people to embed an API token in their app, stuff like that is a bit messy ATM. Maybe we should link people to that from the readme?

@grosser
Copy link

grosser commented Nov 30, 2015

Did not try it, using restart every 2 hours now :D
http://stackoverflow.com/questions/8986259/restart-my-heroku-application-automatically/33943132#33943132

But adding it to the readme sounds like a good idea ... lot's of desperate
people coming her ...

On Mon, Nov 30, 2015 at 11:07 AM, Richard Schneeman <
[email protected]> wrote:

whacamole is pretty cool concept, have you tried it? I'm not in love with
requiring people to embed an API token in their app, stuff like that is a
bit messy ATM. Maybe we should link people to that from the readme?


Reply to this email directly or view it on GitHub
#6 (comment)
.

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