Skip to content

Instantly share code, notes, and snippets.

@pwfcurry pwfcurry/process_count.sh
Last active Aug 18, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.