1 Reply Latest reply on Oct 9, 2008 11:19 AM by peterj

    Logging to accessLog *before* the request is processed?

    tugudu

      Hi,

      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.

      Thanks,

      T

        • 1. Re: Logging to accessLog *before* the request is processed?
          peterj

          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.