Jmx4Perl tools for accessing and managing Jolokia agents (j4psh, jolokia, jmx4perl)
3.6K
This Docker image is intended to provided an easy access to the Jmx4Perl tools, i.e.
cd and ls, read JMX attributes with cat and execute operations with exec.Please refer to the upstream tool documentation for details.
Examples:
# Get some basic information of the server
docker run --rm -it jolokia/jmx4perl \
jmx4perl http://localhost:8080/jolokia
# Download the current jolokia.war agent
docker run --rm -it -v `pwd`:/jolokia jolokia/jmx4perl \
jolokia
# Start a JMX shell. "tomcat" is defined in ~/.j4p/jmx4perl.config
docker run --rm -it -v ~/.j4p:/root/.j4p jolokia/jmx4perl \
j4psh tomcat
In these examples we mounted some volumes:
~/.j4p/jmx4perl.config you can use them by mounting this directory as volume with -v ~/.j4p:/root/.j4p.jolokia it is recommended to mount the local directory with -v $(pwd):/jolokia so that downloaded artefacts are stored in the current host directory. (Note for boot2docker users: This works only when you are in a directory below you home directory)To simplify the usage, the following aliases are recommended:
alias jmx4perl="docker run --rm -it -v ~/.j4p:/root/.j4p jolokia/jmx4perl jmx4perl"
alias jolokia="docker run --rm -it -v `pwd`:/jolokia jolokia/jmx4perl jolokia"
alias j4psh="docker run --rm -it -v ~/.j4p:/root/.j4p jolokia/jmx4perl j4psh"
Content type
Image
Digest
sha256:9fe3e6c5c…
Size
53.7 MB
Last updated
over 6 years ago
docker pull jolokia/jmx4perl