Determine heap usage of java process Posted on 2013/08/12 by james ps -ef | grep java | grep -v "grep" | awk '{print $2}' | xargs jmap