Name | Synopsis | Description | Options | Operands | Examples | Exit Status | See Also
monitor [--terse={true|false}][ --echo={true|false} ] [ --interactive={true|false} ] [ --host host] [--port port] [--secure| -s ] [ --user admin_user] [--passwordfile filename] [--help] --type monitor_type [--filename file_name] [--interval interval] [--filter filter_name] instance_name
This command displays commonly monitored statistics for Enterprise Server components and services.
Before a given component or service can be monitored, the monitoring level of the component or service must be set to HIGH or LOW. To set the monitoring level, use the Administration Console or the set(1) command.
Indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-formatted data for consumption by a script. Default is false.
If set to true, the command-line statement is echoed on the standard output. Default is false.
If set to true (default), only the required password options are prompted.
The machine name where the domain administration server is running. The default value is localhost.
The HTTP port or HTTPS port for administration. This port is the port in the URL that you specify in your web browser to manage the domain, for example, http://localhost:4848.
The default port number for administration is 4848.
If set to true, uses SSL/TLS to communicate with the domain administration server.
The default is false.
The user name of the authorized administrative user of the domain administration server.
If you have authenticated to a domain by using the asadmin login command, you need not specify the --user option for subsequent operations on the domain.
Specifies the name, including the full path, of a file that contains the password entries in a specific format.
The entry for a password must have the AS_ADMIN_ prefix followed by the password name in uppercase letters. For example, to specify the password for the domain administration server, use an entry with the following format:
AS_ADMIN_PASSWORD=password
In this example, password is the actual administrator password.
The following other passwords can also be specified:
AS_ADMIN_MAPPEDPASSWORD
AS_ADMIN_USERPASSWORD
AS_ADMIN_ALIASPASSWORD
All remote commands must specify the administration password to authenticate to the domain administration server. The password can be specified by one of the following means:
Through the --passwordfile option
Through the asadmin login command
Interactively at the command prompt
The asadmin login command can be used only to specify the administration password. For other passwords that remote commands require, use the --passwordfile option or specify them at the command prompt.
After authenticating to a domain by using the asadmin login command, you need not specify the administration password through the --passwordfile option for subsequent operations on the domain. However, only the AS_ADMIN_PASSWORD option is not required. You still must provide the other passwords, for example, AS_ADMIN_USERPASSWORD, when required by individual commands, such as update-file-user.
For security reasons, a password that is specified as an environment variable is not read by the asadmin command.
The default value for AS_ADMIN_MASTERPASSWORD is changeit.
Displays the help text for the command.
The component or service to monitor. This option is required. No default value is defined.
The valid values are as follows:
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.
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 PagesTM (JSPTM) 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 other releases. If you specify this option, a syntax error does not occur. Instead, the command runs successfully and the option is silently 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 other releases. If you specify this option, a syntax error does not occur. Instead, the command runs successfully and the option is silently ignored.
This example shows the sequence of commands for displaying statistics for the JVM machine every 2000 seconds.
This command sets the server.monitoring-service.module-monitoring-levels.jvm attribute to HIGH.
asadmin> set "server.server-config.monitoring-service.module-monitoring-levels.jvm=HIGH" monitoring-service.module-monitoring-levels.jvm=HIGH Command set executed successfully. |
This command 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. |
Name | Synopsis | Description | Options | Operands | Examples | Exit Status | See Also