Add the following to CATALINA_OPTS
-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/home/PATH_TO_LOG/gc.log
CK Developer Notes
07 February 2014
06 February 2014
Command to remove files older than N days
The below command removes files older than 2 days in the current directory
sudo find . -mtime +2 -exec rm {} \;
sudo find . -mtime +2 -exec rm {} \;
07 January 2014
Monitoring open connections in MySQL
Use the following commands
show status like '%onn%';
show processlist
show status like '%onn%';
show processlist
Subscribe to:
Posts (Atom)