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

How do I determine how much memory a unicorn worker is currently using? #63

Open
krzkrzkrz opened this issue Jun 10, 2016 · 3 comments
Open

Comments

@krzkrzkrz
Copy link

How do I determine how much memory a unicorn worker is currently using?

@krzkrzkrz
Copy link
Author

Currently using ps aux --sort -rss

Is The rss column shows a value in kb. Is that the determining factor?

@passalini
Copy link

passalini commented Apr 4, 2018

ps -eo size,rss,pid,user,command --sort -size | awk '{ mv=$1/1024 ; mr=$2/1024 ; printf("%13.2f Mb (Virtual memory) | %.2f Mb (RSS) | %i pid |", mv, mr, $2) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |cut -d "" -f2 | cut -d "-" -f1 | grep unicorn

@stevendaniels
Copy link

@krzkrzkrz - It looks like you got your answer, can we close this issue?

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

3 participants