Sunday, December 13, 2015

Rails Performance Tools Presentation Notes

Tools for Linux

lsof
strace
ltrace

Tools for C Code

perftools
gdb

Tools for Networks

tcpdump
ngrep

Tools for CPU Usage

perftools
perftools.rb

Tools for Memory Usage

bleak_house
gdb.rb
memprof

LSOF

List open files

lsof -nPp

-n : Inhibits the conversion of network numbers to host names.
-P : Inhibits the conversion of port numbers to names for network files

TCP Dump

Dump traffic on a network

tcpdump -i eth0 -s 0 -nqA
tcp dst port 3306