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?
Asked
Active
Viewed 1,973 times
2 Answers
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