Friday, April 11, 2014

Useful JVM Options (mainly related to GC troubleshooting)

-XX:+PrintFlagsInitial - Prints all JVM options with default values
-XX:+PrintCommandLineFlags - Prints the command line flags that were passed
-XX:+PrintFlagsFinal - Prints all JVM options after processing the command line

-verbose:gc - logs garbage collector runs and how long they are taking
-XX:+PrintGCTimeStamps - Prints timestamps at garbage collection
-XX:+PrintGCDetails - includes data from -verbose:gc but also adds information about the new generation
-Xloggc:gc.log - redirects the gc logs to a log file rather than the standard output

Wednesday, March 12, 2014

Installing Google Chrome on a debian Linux system using google's repository

$ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install google-chrome-stable