Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CATALINA_OPTS in setenv.sh for example for remote jmx monitoring #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

onknows
Copy link

@onknows onknows commented Jan 8, 2021


name: Pull request
about: CATALINA_OPTS in setenv.sh


Describe the change
Allow CATALINA_OPTS to be configured. This allows all kinds of configuration of Tomcat to occur for example JMX remote monitoring

Testing
Manual test of JMX remote monitoring using JConsole and VisualVM of tomcat instance.

@zklex
Copy link

zklex commented Aug 22, 2023

Hello,

For people who needed config example for jmx remote options.

tomcat_instances:
  - name: "tomcat-v9"
     ...
    java_opts:
      - name: JRE_HOME
        value: "{{ tomcat_jre_home }}"
      - name: CATALINA_OPTS
        value: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.host=localhost -Dcom.sun.management.jmxremote.port=9000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false ${CATALINA_OPTS}"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants