Monitoring Service Asadmin Command Reference

The following is a detailed list of the administration commands that can be used to correctly configure the Monitoring Service.

Since Payara Server 5.183

set-monitoring-service-configuration

Usage

asadmin> set-monitoring-service-configuration --enabled=true|false --mbeansenabled=true|false --amxenabled=true|false

Aim

This command can be used to set all configuration of the Monitoring Service at once.

Command Options

Option Type Description Default Mandatory

--enabled

Boolean

Whether to enable or disable the service.

N/A

no

--mbeansenabled

Boolean

Whether to enable or disable Mbean monitoring.

N/A

no

--amxenabled

Boolean

Whether to enable or disable AMX on boot.

N/A

no

--target

String

The name of the configuration to set the monitoring service configuration on.

server

no

Example

asadmin > set-monitoring-service-configuration
    --enabled=true
    --mbeansenabled=true
    --amxenabled=true
    --target=server

Since Payara Server 5.183

get-monitoring-service-configuration

Usage

asadmin> get-monitoring-service-configuration

Aim

This command can be used to list the configuration settings of the Monitoring Service.

Command Options

Option Type Description Default Mandatory

--target

String

The name of the configuration to get the monitoring service configuration from.

server

no

Example

asadmin > get-monitoring-service-configuration
     --target=server

Since Payara Server 5.183

set-monitoring-level

Usage

asadmin> set-monitoring-level

Aim

This command can be used set monitoring level of a module.

Command Options

Option Type Description Default Mandatory

--module

String

The name of the module.

N/A

yes

--level

String

Allows you to change monitoring level for a module to OFF, LOW or HIGH.

N/A

yes

--target

String

The name of the configuration to get the monitoring service configuration from.

server

no

Example

asadmin > set-monitoring-level
     --module=jvm
     --level=HIGH
     --target=server

You can also set monitoring level for multiple modules using example below:

asadmin > set-monitoring-level
     --module=jvm,http-service
     --level=HIGH,LOW
     --target=server

Since Payara Server 5.183

get-monitoring-level

Usage

asadmin> get-monitoring-level

Aim

This command can be used get monitoring level of a module.

Command Options

Option Type Description Default Mandatory

--module

String

The name of the module.

N/A

no

--target

String

The name of the configuration to get the monitoring service configuration from.

server

no

Example

asadmin > get-monitoring-level
     --module=jvm
     --target=server

You can also get monitoring level for all available modules using example below:

asadmin > get-monitoring-level
     --target=server

Will give an output similar to the following:

Module                       Monitoring Level
cloud                        OFF
cloud-elasticity             OFF
cloud-orchestrator           OFF
cloud-tenant-manager         OFF
cloud-virt-assembly-service  OFF
connector-connection-pool    OFF
connector-service            OFF
deployment                   OFF
ejb-container                OFF
http-service                 LOW
jdbc-connection-pool         OFF
jersey                       OFF
jms-service                  OFF
jpa                          OFF
jvm                          HIGH
orb                          OFF
security                     OFF
thread-pool                  OFF
transaction-service          OFF
web-container                OFF
web-services-container       OFF