Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- displays monitoring data for commonly used components and services
monitor [--help] --type type [--filename filename] [--interval interval] [--filter filter] instance-name
The monitor subcommand displays statistics for commonly monitored GlassFish Server components and services. The --type option must be used to specify the object for which statistics are to be displayed. Data is displayed continuously in a tabular form, or the data can be displayed at a particular time interval by using the --interval option.
Before a given component or service can be monitored, monitoring must be enabled (set to HIGH or LOW) for the component or service by using the Administration Console, the enable-monitoring subcommand, or the set subcommand.
This subcommand is supported in local mode only.
Displays the help text for the subcommand.
The component or service to monitor. This option is required. No default value is defined.
For this type, the attribute server.monitoring-service.module-monitoring-levels.http-service must be set to LOW or HIGH.
Displays the following statistics for the HTTP listener service:
The total number errors in the processing of HTTP requests.
The longest response time (in milliseconds) for the processing of a single HTTP request.
The total amount of time (in milliseconds) that the HTTP listener service has spent in processing HTTP requests.
The total number of requests that the HTTP listener service has processed.
For this type, the attribute server.server-config.monitoring-service.module-monitoring-levels.jvm must be set to LOW or HIGH.
Displays the following statistics for the Virtual Machine for the Java platform (Java Virtual Machine or JVM machine):The terms "Java Virtual Machine" and "JVM" mean a Virtual Machine for the Java platform.
The number of milliseconds that the JVM machine has been running since it was last started.
The initial amount of memory (in bytes) that the JVM machine requests from the operating system for memory management during startup.
The maximum amount of memory that can be used for memory management.
Retained for compatibility with other releases.
Retained for compatibility with other releases.
The amount of memory (in bytes) that is guaranteed to be available for use by the JVM machine.
For this type, the attribute server.server-config.monitoring-service.module-monitoring-levels.web-container must be set to LOW or HIGH.
Displays the following statistics for all deployed web modules:
The number of currently active sessions.
The total number of sessions that are currently active or have been active previously.
The total number of rejected sessions.
The total number of sessions that have been created.
The number of currently active JavaServer Pages (JSP) technology pages that are loaded.
The maximum number of JSP technology pages that were active at any time simultaneously.
Total number of JSP technology pages that have been loaded.
The number of currently active Java servlets that are loaded.
The maximum number of Java servlets that were active at any time simultaneously.
The total number of Java servlets that have been loaded.
Do not specify this option. This option is retained for compatibility with earlier releases. If you specify this option, a syntax error does not occur. Instead, the subcommand runs successfully and displays a warning message that the option is ignored.
The interval in seconds before capturing monitoring attributes. The interval must be greater than 0. The monitoring attributes are displayed on stdout until you type Control-C or q. The default value is 30.
Do not specify this option. This option is retained for compatibility with earlier releases. If you specify this option, a syntax error does not occur. Instead, the subcommand runs successfully and displays a warning message that the option is ignored.
The server instance for which to view monitoring data. The default value is server.
Example 1 Displaying Monitoring Statistics by Interval
This example displays monitoring data for the JVM machine every 2000 seconds.
asadmin> monitor --type=jvm --interval 2000 server JVM Monitoring UpTime(ms) Heap and NonHeap Memory(bytes) current min max low high count 957843 29523968 188284928 0 0 60370944 q Command monitor executed successfully.
subcommand executed successfully
error in executing the subcommand
enable-monitoring(1), disable-monitoring(1), set(1)
Chapter 8, Administering the Monitoring Service, in Oracle GlassFish Server 3.1 Administration Guide