Skip to content

Instantly share code, notes, and snippets.

@pwfcurry
Last active August 18, 2017 11:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pwfcurry/19005cb6936869383b4cef6277f75585 to your computer and use it in GitHub Desktop.
track open files and processes
#!/bin/bash
while(true)
do
echo `date`, `ps -Al | wc -l 2>&1`, `lsof -u jenkins | wc -l 2>&1` | tee -a ./process_count.log
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment