Servlet init parameters
| Parameter |
Description |
Example |
| dispatcherClasses |
Classnames (comma separated) of RequestDispatcher used in addition
to the
LocalRequestDispatcher. Dispatchers are
a technique used by the JSR-160 proxy to dispatch (or
'route') a request to a different destination. By default no extract dispatchers are enabled (changed in 1.5.0)
You can use the system property org.jolokia.jsr160ProxyEnabled or the
environment variable JOLOKIA_JSR160_PROXY_ENABLED to enable the the JSR-160 proxy.
In that case you should be sure that you enable authentication for the web application to protect access
to the proxy.
|
org.jolokia.jsr160.Jsr160RequestDispatcher
(this is the dispatcher for the JSR-160 proxy)
|
| jsr160ProxyAllowedTargets |
Path to a white list of patterns which are matched against possible
JMX service URL for incoming requests
|
/opt/jolokia/jsr160-proxy-allowed-patterns.txt
|
| policyLocation |
Location of the policy file to use. This is either a URL
which can read from (like a file: or
http: URL) or with the special protocol
classpath: which is used for looking up
the policy file in the web application's classpath. See
for details about this
parameter.
|
file:///home/jolokia/jolokia-access.xml
for a file based access to the policy file. Default is
classpath:/jolokia-access.xml
|
| restrictorClass |
Full classname of an implementation of org.jolokia.restrictor.Restrictor
which is used as a custom restrictor for securing access via Jolokia.
|
com.mycompany.jolokia.CustomRestrictor (which must be included in the
war file and must implement org.jolokia.restrictor.Restrictor)
|
| allowDnsReverseLookup |
Access can be restricted based on the remote host accessing Jolokia. This host can be
specified as address or an hostname. However, using the hostname normally requires a reverse
DNS lookup which might slow down operations. In order to avoid this reverse DNS lookup
set this property to false.
|
Default: true
|
| debug |
Debugging state after startup. Can be changed via
the config MBean during runtime.
|
Default: false
|
| logHandlerClass |
Loghandler to use for providing logging output. By default
logging is written to standard out and error but you can provide
here a Java class implementing org.jolokia.util.LogHandler
for an alternative log output. Two alternative implementations are included in
this agent:
org.jolokia.util.QuietLogHandler which switches off
logging completely.
org.jolokia.util.JulLogHandler which uses a java.util.logging Logger with name org.jolokia
|
Example: org.jolokia.util.LogHandler.Quiet
|
| historyMaxEntries |
Entries to keep in the history. Can be changed at
runtime via the config MBean.
|
Default: 10
|
| debugMaxEntries |
Maximum number of entries to keep in the local
debug history (if enabled). Can be changed via
the config MBean at runtime.
|
Default: 100
|
| maxDepth |
Maximum depth when traversing bean properties.
If set to 0, depth checking is disabled
|
Default: 15
|
| maxCollectionSize |
Maximum size of collections returned when
serializing to JSON. When set to 0,
collections are never truncated.
|
Default: 1000
|
| maxObjects |
Maximum number of objects which are traversed
when serializing a single response. Use this
as an airbag to avoid boosting your memory and
network traffic. Nevertheless, when set to 0
no limit is imposed.
|
Default: 0
|
| mbeanQualifier |
Qualifier to add to the ObjectName of Jolokia's own
MBeans. This can become necessary if more than one agent is
active within a servlet container. This qualifier is added
to the ObjectName of this agent with a
comma. For example a mbeanQualifier
with the value qualifier=own will
result in Jolokia server handler MBean with the name
jolokia:type=ServerHandler,qualifier=own
|
|
| mimeType |
MIME to use for the JSON responses. Only application/json and
text/plain are allowed.
If any other type is given, Jolokia falls back to text/plain.
|
Default: text/plain
|
| canonicalNaming |
This option specifies in which order the key-value
properties within ObjectNames as returned by
list or search are
returned. By default this is the so called 'canonical order'
in which the keys are sorted alphabetically. If this option
is set to false, then the natural order
is used, i.e. the object name as it was registered. This
option can be overridden with a query parameter of the same
name.
|
Default: true
|
| includeStackTrace |
Whether to include a stacktrace of an exception in case of
an error. By default it it set to true
in which case the stacktrace is always included. If set to
false, no stacktrace is included. If
the value is runtime a stacktrace is
only included for RuntimeExceptions. This global option can
be overridden with a query parameter.
|
Default: true
|
| serializeException |
When this parameter is set to true,
then an exception thrown will be serialized as JSON and
included in the response under the key
error_value. No stacktrace information
will be included, though. This global option can be
overridden by a query parameter of the same name.
|
Default: false
|
| allowErrorDetails |
If set to true then no error details like a stack trace
(when includeStackTrace is set) or a serialized exception
(when serializeExceptin is set) are included. This can be user as
a startup option to avoid exposure of error details regardless of other options.
|
Default: true
|
| detectorOptions |
Extra options passed to an detector after successful
detection of an application server. See below for an
explanation.
|
|
| discoveryEnabled |
Is set to true then this servlet will
listen for multicast request (multicast-group 239.192.48.84,
port 24884 by default, but can be changed). By default this option is disabled in order to
avoid conflicts with an Java EE standards (though this should't
harm anyways). This option can also be switched on with an
environment variable
JOLOKIA_DISCOVERY or the system
property jolokia.discoveryEnabled set to
true.
|
Default: false
|
| discoveryAgentUrl |
Sets the URL to respond for multicast discovery requests. If
given, discoveryEnabled is set
implicetly to true. This URL can also be provied 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:8080/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 |
| The multicast port. This port can be also given as an environment variable JOLOKIA_MULTICAST_PORT or a system property jolokia.multicastPort |
The multicast port. |
24884 |
| 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.
|
Monitoring agent
|