I'm on JBoss 4.0.4GA, and I have the access log files generated.
All HTTP requests are logged to this file after their processing
I would like to know if it is possible to log the incoming HTTP request *before* they are processed too (Of course, I won't get the HTTP return code nor the size of the response).
My need is part of a larger problem we are trying to solve:
JBoss is launched as a windows service using Tanuki Software's wrapper. This wrapper pings the Jboss JVM to confirm it's running. But sometime, Jboss deosn't answer the ping for more than one minute and le wrapper kills/restarts the JVM. Our monitoring system doesn't provide useful information about what JBoss is doing during this last minute, so that's why I want to know what requests it is processing.
I think that the delay is being caused by a garbage collection, not by a request. Try adding the "-verbose:gc -Xloggc:filename -XX:-PrintGCTimeStamps" options to the JVM command line and then coordinate the garbage collection times with the delay.
Also, look if there is a setting to change the Tanuki ping wait time.