I've got a GC log file that shows frequent full GC when the heap is empty (every 30 mins initially, then 20, 10, 5 up to few events a minute. At some point, though, I can see a sudden increase in the heap usage (I'd imagine at the moment when users start connecting to my application) and full GC events start to take place less freqently. I can't think of a reason why this may happen.
I'm using Oracle Vm 1.6, and my startup script is:
java -XX:+HeapDumpOnOutOfMemoryError \
-Xmx7500m \
-XX:HeapDumpPath=../logs \
-verbose:gc \
-XX:+PrintGCDetails \
-XX:+PrintGCTimeStamps \
-Xloggc:/app/diffusion/Logs/gc.log \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.port=2000 \
-cp ../lib/diffusion.jar:../etc:../data com.pushtechnology.diffusion.Diffusion $1