unicorn-worker-killer
unicorn-worker-killer copied to clipboard
How do I determine how much memory a unicorn worker is currently using?
How do I determine how much memory a unicorn worker is currently using?
Currently using ps aux --sort -rss
Is The rss
column shows a value in kb. Is that the determining factor?
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
@krzkrzkrz - It looks like you got your answer, can we close this issue?