JVM agent configuration options
| Parameter |
Description |
Example |
| agentContext |
Context under which the agent is deployed. The full URL
will be protocol://host:port/agentContext. The default context is
/jolokia.
|
/j4p
|
| agentId |
A unique ID for this agent. By default a unique id is
calculated. If provided it should be ensured that this id is
unique among all agent reachable via multicast requests used
by the discovery mechanism. It is recommended not to set
this value. Within the agentId specification you
can use the same placeholders as in discoveryAgentUrl.
|
my-unique-agent-id
|
| agentDescription |
An optional description which can be used for clients to
present a human readable label for this agent.
|
Intranet Timebooking Server
|
| host |
Hostaddress to which the HTTP server should bind to. If "*" or "0.0.0.0" is
given, the servers binds to every network interface.
|
localhost
|
| port |
Port the HTTP server should listen to. If set to 0, then an arbitrary free port
will be selected.
|
8778
|
| user |
User to be used for authentication (along with a password)
|
|
| password |
Password used for authentication (user is then required, too)
|
|
| realm |
Sets the security realm to use. If the authMode is set to
jaas this is also used as value for the security domain.
E.g. for Karaf 3 and later, this realm should be karaf since
all JMX MBeans are guarded by this security domain.
|
jolokia
|
| authMode |
Can be either basic (the default), jaas or delegate. If
jaas is used, the user and password given in the Authorization:
header are used for login in via JAAS and, if successful, the return subject is used for all Jolokia operation.
This has only an effect, if user is set. For authentication mode delegate, the authentication
decision is delegated to a service specified by authUrl (see below for details).
|
basic
|
| authMatch |
If MultiAuthenticator is used, this config item explains how to combine multiple authenticators.
Supported values: any at least one authenticator must match, all
all authenticators must match.
|
any
|
| authClass |
Fully qualified name of an authenticator class. Class must be on classpath and must extend
com.sun.net.httpserver.Authenticator. Class can declare a constructor
that takes one argument of a type org.jolokia.config.Configuration in which case
Jolokia runtime configuration will be passed (useful in cases where authenticator requires additional
configuration). If no such constructor is found, default (no-arg) constructor will be use to create an
instance.
|
|
| authUrl |
URL of a service used for checking the authentication. This configuration option is only effective if
authMode is set to delegate. This URL can have a HTTP or HTTPS scheme.
The initially provided Authorization: header is copied over to the request against this
URL.
|
|
| authPrincipalSpec |
Expression used for extracting a principal name from the response of a delegate authentication service. This
parameter is only in use when the authMode is set to delegate. The
following expressions are supported:
json:path
a path into a JSON response which points to the principal.
E.g. a principal spec jason:metadata/name will select the "name" property within the JSON
object specified by the "metadata" property. For navigate into arrays, numeric indexes can be used.
empty:
Always extracts an empty ("") principal.
If this option is not specified, not principal is extracted.
|
|
| authIgnoreCerts |
If given, the authMode is set to delegate and the delegate URL is
as HTTPS-URL then the server certificate as well as the server's DNS name will not be verified. This useful
in order to avoid (or introduce) complex keymanagement issues, but is of course less secure. By default
certs a verified with the local keystore.
|
|
| protocol |
HTTP protocol to use. Should be either http
or https. For the SSL stack there are various
additional configuration options.
|
http
|
| backlog |
Size of request backlog before requests get discarded.
|
10
|
| executor |
Threading model of the HTTP server:
fixed
Thread pool with a fixed
number of threads (see also
threadNr)
cached
Cached thread pool which
creates threads on demand
single
A single thread only
|
single
|
| threadNamePrefix |
Thread name prefix that executor will use while creating new thread(s).
|
jolokia-
|
| threadNr |
Number of threads to be used when the
fixed execution model is chosen.
|
5
|
| keystore |
Path to the SSL keystore to use (https only)
|
|
| keystorePassword |
Keystore password (https only). If the password is given embedded in brackets [[...]],
then it is treated as an encrypted password which was encrypted with java -jar jvm-agent.jar
encrypt. See below for details.
|
|
| useSslClientAuthentication |
Whether client certificates should be used for
authentication. The presented certificate is validated that it is signed by
a known CA which must be in the keystore (https only). (true or
false).
|
false
|
| secureSocketProtocol |
Secure protocol that will be used for establishing HTTPS connection (https only) |
TLS |
| keyStoreType |
SSL keystore type to use (https only) |
JKS |
| keyManagerAlgorithm |
Key manager algorithm (https only) |
SunX509 |
| trustManagerAlgorithm |
Trust manager algorithm (https only) |
SunX509 |
| caCert |
If HTTPs is to be used and no keystore is given, then caCert
can be used to point to a PEM encoded CA certification file. This is use to verify
client certificates when useSslClientAuthentication is switched on (https only)
|
|
| serverCert |
For SSL (and when no keyStore is used) then this path must point to server
certificate which is presented to clients (https only)
|
|
| serverKey |
Path to the PEM encoded key file for signing the server cert during TLS handshake. This is only
used when no keyStore is used. For decrypting the key the password given with
keystorePassword is used (https only). |
|
| serverKeyAlgorithm |
Encryption algorithm to use for decrypting the key given with serverKey
(https only) |
RSA |
| clientPrincipal |
The principal which must be given in a client certificate to allow access to the agent. This can be one or
or more relative distinguished names (RDN), separated by commas. The subject of a given client certificate
must match on all configured RDNs. For example, when the configuration is "O=jolokia.org,OU=Dev" then a
client certificate's subject must contain "O=jolokia.org" and "OU=Dev" to allow the request. Multiple alternative
principals can be configured by using additional options with consecutive index suffix like in
clientPrincipal.1, clientPrincipal.2, ... Please remember that a ,
separating RDNs must be escaped with a backslash (\,) when used on the commandline as agent arguments.
(https and useSslAuthentication only)
|
|
| extraClientCheck |
If switched on the agent performs an extra check for client authentication that the presented client
cert contains a client flag in the extended key usage section which must be present.
(https and useSslAuthentication only)
|
|
| bootAmx |
If set to true and if the agent is
attached to a Glassfish server, then during startup the
AMX subsystem is booted so that Glassfish specific MBeans
are available. Otherwise, if set to
false the AMX system is not booted.
|
true
|
| config |
Path to a properties file from where the configuration
options should be read. Such a property file can contain
the configuration options as described here as key value
pairs (except for the config property
of course :)
|
|
| discoveryEnabled |
Is set to false then this agent will
not listen for multicast request (multicast-group 239.192.48.84,
port 24884 by default, but can configured individually).
By default this option is enabled. This option can also be switched on with an
environment variable
JOLOKIA_DISCOVERY or the system
property jolokia.discoveryEnabled set to
true.
|
Default: true
|
| discoveryAgentUrl |
Sets the URL to respond for multicast discovery requests. If
given, discoveryEnabled is set
implicitly to true. This URL can also be provided by an
environment variable
JOLOKIA_DISCOVERY_AGENT_URL or the system
property jolokia.discoveryUrl. Within the value you can use the
placeholders ${host} and ${ip} which gets replaced
by the autodetected local host name/address. Also with ${env:ENV_VAR} and
${sys:property} environment and system properties can be referenced, respectively.
|
http://10.9.11.87:8778/jolokia
|
| multicastGroup |
The multicast group IPv4 address. This group IP can be also given as an environment variable JOLOKIA_MULTICAST_GROUP or a system property jolokia.multicastGroup |
239.192.48.84 |
| multicastPort |
The multicast port. This port can be also given as an environment variable JOLOKIA_MULTICAST_PORT or a system property jolokia.multicastPort |
24884 |
| sslProtocol |
The list of SSL / TLS protocols enabled. Valid options are available in the documentation
on SunJSSEProvider for your JDK version. Using only TLSv1.1 and
TLSv1.2 is recommended in Java 1.7 and Java 1.8. Using only
TLSv1 is recommended in Java 1.6. Multiple protocols can be configured
by using additional options with consecutive index suffixes like in
sslProtocol.1, sslProtocol.2, ...
|
TLSv1.2 |
| sslCipherSuite |
The list of SSL / TLS cipher suites to enable. The table of available cipher suites is
available under the "Default Enabled Cipher Suites" at the SunJSSEProvider documentation
here.
Multiple cipher suites can be configured by using additional options with consecutive index
suffixes like in sslCipherSuite.1, sslCipherSuite.2, ...
|
|
| policyLocation |
Path to the XML policy file
|
|