Run this on the server: $ sudo -u tomcat7 jcmd `cat /var/run/tomcat7.pid` GC.run This is since JDK7. Run jcmd as the same user as the user that runs the Java apps. Share on Twitter Facebook Google+ LinkedIn Previous Next