Message-ID: <1014307057.12335.1406602902015.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_12334_1914869057.1406602902015" ------=_Part_12334_1914869057.1406602902015 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Jetty 6 currently has two levels of statistic collection:=20
To view statistics, you must be able to view mbeans with either jconsole=
or some other
mbean agent. By default Connector statistics are turne= d off and must either be configured
or turned on via the mbean interf= ace.
Detailed statitics on connection duration and number of requests is only= collated when a connection is closed. The current, min and maximum number = of connections is the only "live" statistic. The following exampl= e shows how to turn on connector statistics in jetty.xml (although this is = not recommended and it is best to use an mbean agent to select statistics o= nly when needed).=20 =20
To collect request statistics a StatisticsHandler must be configured as = one of the handlers of the server. Typically this can be done as the top le= vel handler, but you may wish to configure a statistics handler for just on= e context. The following jetty.xml fragment shows how to configure a top le= vel statistics handler:=20