Monday, July 20, 2015

Check allocated memory to JVM's running on a server.

How to check memory allocated to JVM's running on a server using awk:

echo $(ps -eaf | grep Xms | awk -F'Xms' '{print $2}' | awk '{print $1}' | tr -d '[:alpha:]' | tr -d '[:punct:]') | sed 's/\ /+/g' | bc -l

No comments:

Post a Comment