I wanted to see the GC ouput, so, I added the -verbose:gc flag. When I see the registry, I can see this has gone in as a JVM option. But in the log file, I cannot see any GC output at all. When I try the -verbose:gc in the console mode(putting it in the catalina.bat file), I can see the GC output on the console. Am I doing it correctly? If not, what am I doing wrong? Where does Tomcat put the GC output?
I have run into several problems with Tomcat 4.1 logging when it is ran as a service. I have discovered that if you use the org.apache.catalina.startup.Bootstrap for your start and stop classes my issues went away. This may solve your issues as well.
You can change the start and stop services in your registry: hkey_local_machine\system\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\[start class & stop class]
Hope this helps, Chow
subject: Tomcat(jdk1.3.1) - Win2k service - GC output