Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

3.2. JBossAS5 - JBossAS Server

Overview

Table 3.88. Overview

Description:JBoss Application Server (AS) 5.2 and later and 6.x, Enterprise Application Platform (EAP) 5.x, Enterprise SOA Platform (SOA-P) 5.x, or Enterprise Web Platform (EWP) 5.x instances
Singleton: no
Plugin:JBossAS5

Note

The server can be started, restarted, or stopped via the Start, Restart, and Shutdown operations. The Start and Restart operations start the server by executing the server start script, typically run.sh on UNIX or run.bat on Windows. The following connection settings can be used to configure the start script execution: * Start Script - the absolute path of the start script (e.g. "/opt/jboss-eap-5.0/jboss-as/bin/run.sh") * Script Prefix - a prefix command line to be prepended to the start script command line (e.g. "nohup sudo -u jboss -g jboss") the prefix is also prepsended to the stop script command line if the Stop operation is configured to stop the app server via script. * Start Script Arguments - arguments to be passed to the start script (e.g. "--configuration=production") * Start Script Environment - environment variables to be set in the start script's environment (e.g. "JAVA_HOME=/usr/java/jdk1.6.0_30") These settings are automatically initialized by the JBossAS5 plugin discovery code to match the currently running server process' command line and environment. For more detailed descriptions of the settings, see the Connection Settings section below.

Child Resource Types

Autodiscovery Process Scans

Table 3.89. Metrics

NameQuery
jbossasprocess|basename|match=^java.*,arg|org.jboss.Main|match=.*

Connection Properties

Table 3.90. 

NameDescriptionRequiredInternal Name
Naming Provider URLThe JBoss Naming Provider (JNP) URL with which to connect to the JBoss AS or EAP instance (e.g. jnp://127.0.0.1:1099). yes namingURL
PrincipalThe name of the principal (i.e. user) to authenticate. no principal
CredentialsThe credentials (i.e. password) that should be used to authenticate the principal. no credentials
JBoss Home DirectoryThe absolute path to the directory where JBoss AS or EAP is installed (e.g. /opt/jboss-5.1.0.GA). yes homeDir
Server Home DirThe path to the configuration directory under which this instance operates (e.g. /opt/jboss-5.2.0.GA/server/default); if the path is not absolute, then it will be resolved relative to {homeDir}. yes serverHomeDir
Server NameThe name of the server configuration (e.g. minimal, default, or all); if not specified, it will default to the last path component of {serverHomeDir}. If the 'startScriptArgs' property is not set, this property will be used by the Start and Restart operations as the value of the -c option that is passed to the start script. However, this property is deprecated for that purpose and 'startScriptArgs' should be used instead. no serverName
Client UrlThe URL of the server's client JAR library directory; if not specified, it will default to {homeDir}/client. no clientUrl
Lib UrlThe URL of the server's main JAR library directory; if not specified, it will default to {homeDir}/lib. no libUrl
Common Lib UrlThe URL of the server's common JAR library directory; if not specified, it will default to {homeDir}/common/lib. no commonLibUrl
Script PrefixA prefix applied to script execution commands; this prefix is applied verbatim. The full path of the executable is required (e.g. /usr/bin/sudo). For applicable platforms, this is typically a sudo command, so a sudo user must be configured appropriately for the specified command. Ignored if not set. no scriptPrefix
Start ScriptThe path to the script used by the 'Start' operation to start this JBossAS server (e.g. /opt/jboss-5.2.0.GA/bin/run.sh); if the path is not absolute, then it will be resolved relative to {jbossHomeDir}; defaults to 'bin/run.sh' on UNIX or 'bin\run.bat' on Windows. no startScript
Start Script Environment VariablesThe variables that the Start and Restart operations will add to the environment of the server start script. Each name=value pair should be on a new line. Variable values should *not* be enclosed in quotes (e.g. JAVA_OPTS=-Xms512M -Xmx1024M). On UNIX systems, the typical minimum set of environment variables is: PATH=/usr/bin:/bin . And on Windows the typical minimum set is: PATH=C:\Windows\System32;C:\Windows , OS=Windows_NT , SYSTEMROOT=C:\Windows . In addition, it is good practice to set JAVA_HOME to the absolute path of the install directory of the JRE or JDK you wish to use to run the AS7 instance. However, if JAVA_HOME is not specified, the start script will attempt to find java in the PATH. There is currently a 2000 character limit for this value. no startScriptEnv
Start Script ArgumentsThe arguments that the Start and Restart operations will pass to the server start script. Each argument should be on a new line - for example: --server-config=standalone-ha-full.xml. As an exception, the value of a space-delimited option can optionally be on the same line as the option - for example: -c default. There is currently a 2000 character limit for this value. no startScriptArgs
Shutdown ScriptThe path to the script used by the Shut Down operation to shut down this JBossAS server (e.g. /opt/jboss-5.2.0.GA/bin/shutdown.sh); if the path is not absolute, then it will be resolved relative to {jbossHomeDir}; defaults to 'bin/shutdown.sh' on UNIX or 'bin\shutdown.bat' on Windows. no shutdownScript
Shutdown MethodThe method used to execute the Shut Down operation; defaults to 'JMX MBean'. 'JMX MBean' is the preferred shutdown method and should be used unless there is a specific use case for using a script. no shutdownMethod
Bind AddressThe host or IP address that all application server services should listen on (e.g. 10.11.14.233 or foo.example.com); specify 0.0.0.0 to tell the application server to bind to all available network interfaces; defaults to '127.0.0.1'. If the 'startScriptArgs' property is not set, this property will be used by the Start and Restart operations as the value of the -b option that is passed to the start script. However, this property is deprecated for that purpose and 'startScriptArgs' should be used instead. no bindAddress
Java HomeThe absolute path to a JRE or JDK installation directory containing the JVM that should be used by the operations that start and/or shut down this JBoss AS server; for the Shutdown operation to work when the shutdown method is set to 'shutdown script', the property must be set. For the Start operation, this property is deprecated and will be ignored if the 'startScriptEnv' property is set. no javaHome
Start Wait MaxThe time, in minutes,(e.g. 1 or 8) that must elapse before the server is considered to have failed to start up. The default is 5 minutes. no startWaitMax
Stop Wait MaxThe time, in minutes,(e.g. 1 or 8) that must elapse before the server is considered to have failed to stop. The default is 2.5 minutes. no stopWaitMax
Shutdown MBean NameName of the MBean to use when shutting down this server through JMX. yes shutdownMBeanName
Shutdown MBean OperationName of the operation to invoke when shutting down this server through JMX. Note that only operations with no parameter or with one int parameter are supported. If the operation requires an int parameter, '0' will be supplied. yes shutdownMBeanOperation
Availability Check PeriodThe amount of time, in seconds, that must elapse between availability checks to see if the server is up. If set, the availability checks will be performed asynchronously thus allowing slow-responding servers to avoid being falsely reported as down. no availabilityCheckPeriod
Service Availability Refresh IntervalThe amount of time, in minutes, that can elapse for service resource (e.g., EJBs, data sources) availability checks without having to refresh the managed object from the JBoss server. The information used to perform availability checks is cached. This property determines how frequently that data needs to be reloaded from the JBoss server. Any time the managed object is loaded from the server, like for collecting metrics, the availability information is updated and the interval is reset. no serviceAvailabilityRefreshInterval
JBoss AS JVM NameThe name of the JBoss AS JVM resource. no childJmxServerName
Log Event Sources  yes logEventSources

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.

Metrics

Table 3.91. Metrics

NameTypeDescriptionInternal Name
Cluster Partition Nametraitthe name of the cluster partition this server belongs toMCBean|ServerConfig|*|partitionName
Server Nametraitthe name of the active profile (i.e. configuration set) this server is usingMCBean|ServerConfig|*|serverName
Server Home Dirtraitthe full path of the configuration set directory this server is using (e.g. /opt/jboss-5.1.0.CR1/server/default)MCBean|ServerConfig|*|serverHomeDir
Version Nametraitthe code name for this app server's version (AS 5.0 = Morpheus, AS 5.1 = The Oracle, AS 6.x = Neo)MCBean|MCServer|*|versionName
Build Datetraitthe date this app server was builtMCBean|MCServer|*|buildDate
Start Datetraitthe date and time this app server instance was startedMCBean|MCServer|*|startDate
Active Thread CountmeasurementThe current number of active threads for this app server instanceMCBean|ServerInfo|*|activeThreadCount
Active Thread Group CountmeasurementThe current number of active thread groups for this app server instanceMCBean|ServerInfo|*|activeThreadGroupCount
JVM Free MemorymeasurementAn approximation of the total amount of memory currently available in the app server JVM for future allocated objects, measured in bytesMCBean|ServerInfo|*|freeMemory
JVM Max MemorymeasurementThe maximum amount of memory that the app server JVM will attempt to use, measured in bytes; if there is no inherent limit then the value Long.MAX_VALUE will be returnedMCBean|ServerInfo|*|maxMemory
JVM Total MemorymeasurementThe total amount of memory currently available in the app server JVM for current and future objects, measured in bytesMCBean|ServerInfo|*|totalMemory
Total TransactionsmeasurementTotal number of transactions since last restartMCBean|JTA|*|transactionCount
Total Transactions per MinutemeasurementTotal number of transactions since last restartMCBean|JTA|*|transactionCount
Transactions CommittedmeasurementNumber of transactions committed since last restartMCBean|JTA|*|commitCount
Transactions Committed per MinutemeasurementNumber of transactions committed since last restartMCBean|JTA|*|commitCount
Transactions Rolled BackmeasurementNumber of transactions rolled back since last restartMCBean|JTA|*|rollbackCount
Transactions Rolled Back per MinutemeasurementNumber of transactions rolled back since last restartMCBean|JTA|*|rollbackCount

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.

Configuration Properties

none

Operations

Table 3.92. Metrics

NameDescription
StartStart this application server. The script used is specified in the Operations group of connection properties. This operation will fail if the server is already started.
Shut DownShut down this application server via script or JMX, depending on the settings in the Operations and Advanced groups of connection properties. This operation will fail if the server is already shut down.
RestartShut down (if started) and then start this application server.

Package Types

Table 3.93. Package Types

NameCategoryDescription
Cumulative PatchDeployableAutomatically installable application server patches
JAR LibraryDeployableLibrary Jar files deployed in JBoss AS

3.2.1. JBossAS5 - JBoss Web Service

Overview

Table 3.94. Overview

Description:JBoss Web Servlet Container
Singleton: yes
Plugin:JBossAS5

Child Resource Types

Connection Properties

none

Metrics

none

Configuration Properties

none

Operations

none

Package Types

none

3.2.1.1. JBossAS5 - Connector Service

Overview

Table 3.95. Overview

Description:a JBoss Web Connector
Singleton: no
Plugin:JBossAS5
Child Resource Types
none
Connection Properties

Table 3.96. 

NameDescriptionRequiredInternal Name
Component Type  yes componentType
Component Subtype  yes componentSubtype
Component Name  yes componentName
Protocolthis connector's protocol (e.g. jk, ajp, http) yes protocol
Addressthe IP address this connector listens on yes address
Portthe port this connector listens on yes port

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Metrics

Table 3.97. Metrics

NameTypeDescriptionInternal Name
Maximum Request Timemeasurementthe maximum time it took to process a request since the last restartmaxTime
Request Countmeasurementthe total number of requests processed since the last restartrequestCount
Request Count per Minutemeasurementthe total number of requests processed since the last restartrequestCount
Error Countmeasurementthe number of errors while processing requests since the last restarterrorCount
Error Count per Minutemeasurementthe number of errors while processing requests since the last restarterrorCount
Current Active Threadsmeasurementthe number of threads for this connector that are currently activeThreadPool|currentThreadsBusy
Current Thread Countmeasurementthe number of threads for this connector that currently existThreadPool|currentThreadCount
Maximum ThreadstraitMaximum number of threads that can be allocated for the thread pool of this connectorThreadPool|maxThreads

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.
Configuration Properties
none
Operations
none
Package Types
none

3.2.1.2. JBossAS5 - Virtual Host Service

Overview

Table 3.98. Overview

Description:a JBoss Web virtual host
Singleton: no
Plugin:JBossAS5
Child Resource Types
none
Connection Properties

Table 3.99. 

NameDescriptionRequiredInternal Name
Component Type  yes componentType
Component Subtype  yes componentSubtype
Component Name  yes componentName
Namethe virtual host's name (e.g. localhost) yes name

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Metrics

Table 3.100. Metrics

NameTypeDescriptionInternal Name
Aliasestraitthe aliases for this virtual host, if anyaliases

Note

You must use the internal name to reference Traits in Dynamic Group Definition expressions.
Configuration Properties
none
Operations
none
Package Types
none