unicorn-worker-killer icon indicating copy to clipboard operation
unicorn-worker-killer copied to clipboard

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

Open krzkrzkrz opened this issue 8 years ago • 3 comments

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

krzkrzkrz avatar Jun 10 '16 19:06 krzkrzkrz

Currently using ps aux --sort -rss

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

krzkrzkrz avatar Jun 12 '16 10:06 krzkrzkrz

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

passalini avatar Apr 04 '18 19:04 passalini

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

stevendaniels avatar Dec 17 '21 14:12 stevendaniels