I would like to have some long-running server applications periodically output general GC performance numbers in Java, something like the GC equivalent of Runtime.freeMemory
Try -XX:-PrintGC and -XX:-PrintGCDetails; see VM Debugging Options.
-XX:-PrintGC
-XX:-PrintGCDetails