I would like to see when the garbage collector is run in my app running under JBoss. I have added "-verbose:gc" to the jvm opts, and I get the output from the jvm sent to the console. The reason I want the output to go via log4j is so that I can see the date/time the garbage collector ran. Is this possible?
(-Xloggc: is no good to me as it doesn't output the time the gc ran, only the duration since the last run).