3

Does the JMX interface in JBoss AS 6.1 or 7, or a web admin console area, offer some basic values like total request count? Or is there logging of HTTP requests which only needs to be enabled so I can get standard web server log files?

Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
mjn
  • 36,362
  • 28
  • 176
  • 378

2 Answers2

4

In case of JBoss 6 (and also 5) you can turn on logging information about incoming connections. You have to edit server.xml file in the profile/deploy/jbossweb.sar directory and uncomment these line:

<!-- Access logger -->

<Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="localhost_access_log." suffix=".log"
       pattern="common" directory="${jboss.server.log.dir}" 
       resolveHosts="false" />

These allow you to turn on logging in Apache Web Server format.

Lukasz Stelmach
  • 5,281
  • 4
  • 25
  • 29
0

Write a filter or JMX bean to keep the count and other statistics for you.

duffymo
  • 305,152
  • 44
  • 369
  • 561