Skip to main content

Posts

Showing posts from May, 2009

San Francisco

Here is a plate on the sidewalk in San Fran.  

Graphing Tomcat JVM Memory usage with munin

This plugin for Munin will show you the memory usage of your JVM that Tomcat is running in. This requires JDK 5+ and you must be starting your Tomcat with the jsvc command. This has been really useful in tuning the JVM memory settings for our Tomcat sites. You can click on the title to download the jstat__heap munin plugin. Place in in your /usr/share/munin/plugins directory then set a link in your /etc/munin/plugins/ directory with the name of jstat_www.domain.com_heap. You probably will have to also edit the /etc/munin/plugin-conf.d/munin-node file and add a jstat stanza for user root to execute the script.

The tao of pooh

I just started reading this book. This is a must read.

BackupPC - offsite host backups

I have been working with BackupPC for some time, and have created a script that will run through all the hosts and create a tar from the latest backup of that host, then compress is with pbzip2. Under the target directory, the script creates a directory for each host, then a dump file in that directory. There are 3 variables to this script that need to be set. $TARGETDIR = Directory to dump the tar files to. $DATADIR = Your BackupPC data/pc directory. $BACKUPPCBIN = Your BackupPC bin directory. Install pbzip2 and set -7 to the number of processors you want to use for compression, or change pbzip2 -7 to bzip2. Get the script here

Picking flowers