This image is based on the official java image and
includes a Jolokia JVM agent. The agent is installed as /opt/jolokia/jolokia.jar.
In order to enable Jolokia for your application you should use this
image as a base image (via FROM) and use the output of jolokia_opts in
your startup scripts to include it in your startup options.
For example, the following snippet can be added to a script starting up your Java application
# ...
export JAVA_OPTIONS="$JAVA_OPTIONS $(jolokia_opts)"
# .... us JAVA_OPTIONS when starting your app, e.g. as Tomcat does
You can influence the behaviour jolokia_opts by setting various environment
variables:
/opt/jolokia/jolokia.properties. If this file exists, it be will taken
as configuration and any other config options are ignored.$HOSTNAME by default, which is the container id)Some options for integration in various environments
https://localhost:8443/osapi/v1beta3/)So, if you start the container with docker run -e JOLOKIA_OFF ... no agent will be launched.
The following versions are used:
Content type
Image
Digest
sha256:96bc29488…
Size
240.9 MB
Last updated
almost 9 years ago
docker pull jolokia/java-jolokia