How to Evaluate the Performance (CPU + Memory) of java Software:
java -Dcom.sun.management.jmxremote.port=9011 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -cp “.:../lib/*:../../../../lib/*” it.AppListener > /var/log/AppListener.log 2>&1 &
or
export JAVA_OPTS=”-server -Xms6144M -Xmx7168M -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false”
after set the port variable during the start up of the software, is possible to use to evaluate the situation this software
Linux command to check which process takes memory
ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -n