5 Replies Latest reply on Sep 3, 2008 6:02 PM by peterj

    configuring jboss logs

    maggu

      Hi,
      Sorry if this the incorrect place for this, but could not find a specific topic for JBoss logs.

      Apart from the standard log configuration defined in the wiki:
      http://wiki.jboss.org/wiki/Logging

      What else is configurable in jBoss logs? I am particularly looking at how to configure the logs to contain some metrics at certain intervals. E.g.: Every X minutes, it should give me the threads in use, total threads available, free memory available etc.
      Is there a way to configure this?
      Thanks.

        • 1. Re: configuring jboss logs
          peterj

          There is no way to configure the logs to do this, but various JMX MBeans keep this kind of information. A cron job that uses twiddle to grab that data should work (this is basically what Nagios does).

          • 2. Re: configuring jboss logs
            maggu

            Peter,
            I went through the web console> full status and see memory and thread stats. This should essentially be the same info correct?

            Would twiddle show me the same kind of info (I have never used twiddle)?

            thanks.

            • 3. Re: configuring jboss logs
              peterj

              The web console at times will consolidate various pieces of data, but in twiddle you get the raw data from the mbeans. The JBossAS docs have a good explanation of how to use twiddle and even provide several examples.

              • 4. Re: configuring jboss logs
                maggu

                Thanks. I was able to go through the documentation and work with twiddle.

                Is there a way to get information on individual thread breakdown and their characteristics (eg: idle time), either through twiddle / web console or other Jboss tools?

                • 5. Re: configuring jboss logs
                  peterj

                  There is no mbean that will give you information about individual http threads. Here are some mbeans that give information about all of the threads:

                  jboss.web:type=ThreadPool;name=http-xxx-yyy
                  jboss.web:type=GlobalRequestProcessor;name=http-xxx-yyy

                  (where xxx is the IP address and yyy the port)