Determine heap usage of java process

ps -ef | grep java | grep -v "grep" | awk '{print $2}' | xargs jmap