Skip to content

Instantly share code, notes, and snippets.

@amuraru
Created April 19, 2014 18:20
Show Gist options
  • Select an option

  • Save amuraru/11092831 to your computer and use it in GitHub Desktop.

Select an option

Save amuraru/11092831 to your computer and use it in GitHub Desktop.
Sniff network traffic java process
strace -e recvfrom -s2048 -p$(ps -L -p `jps | grep ThriftServer | cut -f1 -d' '` | cut -f2 -d' ' | xargs | sed -e 's/ / -p /g') 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment