So if you ever find yourself needing to find out what threads in a JVM are taking up lots of CPU you can run this little bash script. It is super stupid and ugly but it gets the job done!
https://github.com/asharif/jtv
Friday, August 14, 2015
Thursday, July 9, 2015
Skip host key checking with ssh and scope
Just a reminder cause I can't remember syntax for the life of me!
ssh -o StrictHostKeychecking=no -o UserKnownHostsFile=/dev/null
Friday, January 16, 2015
Get number of threads in a *nix process
Just so I don't forget this:
ps -L -o pid= -p| wc -l
on OSX(also works on linux I believe)
NUM=`ps M| wc -l | xargs` && expr $NUM - 1
Subscribe to:
Posts (Atom)