Tuesday, October 30, 2012

Linux check process/java memory

top -p `pgrep -d, -f java`
top -p [pid]
top -p [pid,pid,pid]
`pgrep -d, -f java`


if ps -p $id > /dev/null
then
: active
else
: inactive
fi

No comments:

Post a Comment