You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/embedded-server-guide/src/main/asciidoc/embedded-server-guide.adoc
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ The following topics are addressed here:
20
20
* xref:#testing-applications-with-the-maven-plug-in-for-embedded-glassfish-server[Testing Applications with the Maven Plug-in for Embedded {productName}]
21
21
* xref:#GSESG00039[Using the EJB 3.1 Embeddable API with Embedded {productName}]
22
22
* xref:#changing-log-levels-in-embedded-glassfish-server[Changing Log Levels in Embedded {productName}]
23
+
* xref:#monitoring-embedded-glassfish-server-with-jmx[Monitoring Embedded {productName} with JMX]
23
24
* xref:#default-java-persistence-data-source-for-embedded-glassfish-server[Default Java Persistence Data Source for Embedded {productName}]
24
25
* xref:#restrictions-for-embedded-glassfish-server[Restrictions for Embedded {productName}]
25
26
@@ -2061,6 +2062,93 @@ command when you invoke Embedded {productName}. For example:
Embedded {productName} supports monitoring through JMX MBeans, similar to regular {productName} Server. However, you must attache the flashlight agent on command line to enable monitoring functionality.
2070
+
2071
+
=== Prerequisites
2072
+
2073
+
To enable monitoring in Embedded {productName}, you need the flashlight agent JAR file:
2074
+
2075
+
* Download from Maven Central: `org.glassfish.main.flashlight:flashlight-agent`
2076
+
* Or use from an existing {productName} installation: `glassfish/lib/monitor/flashlight-agent.jar`
2077
+
2078
+
=== Enabling Monitoring Modules
2079
+
2080
+
By default, the monitoring service and MBeans support are enabled, but no monitoring modules are active. You can enable specific monitoring modules using one of two methods:
2081
+
2082
+
==== Method 1: Command Line
2083
+
2084
+
Start Embedded {productName} with the `enable-monitoring` command:
Exposing JMX without authentication and SSL is not secure and should only be used in development environments. JMX MBeans include management beans that allow executing administrative operations on {productName}, which could be exploited by unauthorized users. In production environments, always enable authentication and SSL for JMX connections.
2137
+
====
2138
+
2139
+
==== Available Monitoring Modules
2140
+
2141
+
Embedded {productName} supports the same monitoring modules as regular {productName} Server, including:
2142
+
2143
+
* `thread-pool` - Thread pool statistics
2144
+
* `http-service` - HTTP service metrics
2145
+
* `web-container` - Web container statistics
2146
+
* `ejb-container` - EJB container metrics
2147
+
* `transaction-service` - Transaction service data
2148
+
* `jvm` - JVM statistics
2149
+
2150
+
For comprehensive information about available monitoring modules and their metrics, see xref:administration-guide.adoc#administering-the-monitoring-service[Administering the Monitoring Service] in the {productName} Administration Guide.
0 commit comments