Web Application Monitoring in WildFly: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
=Overview=
=Overview=


Web applications deployed as part of a WAR deployment in JBoss are automatically instrumented to expose relevant runtime [[#JMX|JMX]] statistics on the JMX bus and in  [[#CLI|CLI]]. These statistics refer mostly to HTTP session (created sessions, max active sessions, expired sessions, session maximum and average alive time), but other information such as the virtual host or the context root is exposed.
Web applications deployed as part of a WAR deployment in JBoss are automatically instrumented to expose relevant runtime [[#JMX|JMX]] statistics on the JMX bus and in  [[#CLI|CLI]]. These statistics refer mostly to HTTP session (<span id="Active_HTTP_Session_Count"></span>active sessions, created sessions, max active sessions, expired sessions, session maximum and average alive time), but other information such as the virtual host or the context root is exposed.


<span id="Clustered_Web_Applications"></span>If the web application is '''clustered''' (declared <distributable>), the CLI/JMX session metric are ''cluster-wide'' metrics. For example, active session refers to the number of active sessions across the entire cluster.
<span id="Clustered_Web_Applications"></span>If the web application is '''clustered''' (declared <distributable>), the CLI/JMX session metric are ''cluster-wide'' metrics. For example, active session refers to the number of active sessions across the entire cluster.

Revision as of 16:33, 11 May 2017

External

Internal

Relevance

  • EAP 6.4.10

Overview

Web applications deployed as part of a WAR deployment in JBoss are automatically instrumented to expose relevant runtime JMX statistics on the JMX bus and in CLI. These statistics refer mostly to HTTP session (active sessions, created sessions, max active sessions, expired sessions, session maximum and average alive time), but other information such as the virtual host or the context root is exposed.

If the web application is clustered (declared <distributable>), the CLI/JMX session metric are cluster-wide metrics. For example, active session refers to the number of active sessions across the entire cluster.

JMX

The web application metrics are available under the following ObjectName:

jboss.as:deployment=<deployment-name>,subsystem=web

where <deployment-name> is the name of the deployment artifact (for example: myapp.war).

CLI

[standalone@ip-address:9999 /] /deployment=${deployment-name}/subsystem=web:read-attribute(name=active-sessions)

Metrics

These metrics are accessible both via JMX and CLI.

Active Sessions

activeSessions in JMX, active-sessions in CLI.

"active session" metric is managed by the web subsystem, which does not know what the underlying store is. The metric will reflect the Infinispan cache's numberOfEntries without backups, for the node in question and not cluster-wide. Essentially, it tells how many active sessions are managed by the node being read.

Created Sessions

Max Active Sessions

Expired Sessions

Rejected Sessions

Session Maximum Alive Time

Session Average Alive Time

Duplicate Session IDs

Context Root

Virtual Host