Determine heap usage of Java process Posted on 2015/01/27 by james ps -ef | grep java | grep -v "grep" | awk '{print $2}' | xargs jmap