From f9a531231e362d8566092ceb4e174cb8994f2a82 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 21 Sep 2017 18:40:37 +0200 Subject: [PATCH] tomcat-multiple-instances: Fix the jmx default port. --- tomcat-multiple-instances/templates/tomcat-default.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat-multiple-instances/templates/tomcat-default.j2 b/tomcat-multiple-instances/templates/tomcat-default.j2 index 8e165adc..ef6a6dc1 100644 --- a/tomcat-multiple-instances/templates/tomcat-default.j2 +++ b/tomcat-multiple-instances/templates/tomcat-default.j2 @@ -26,7 +26,7 @@ JAVA_OPTS="${JAVA_OPTS} {{ item.other_java_opts }}" {% endif %} {% if item.jmx_enabled is defined and item.jmx_enabled %} # JMX settings -JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port={{ item.jmx_port | default('tomcat_m_jmx_port') }}" +JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port={{ item.jmx_port | default('8186') }}" {% if item.jmx_use_ssl is defined and item.jmx_use_ssl %} JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote.ssl=true" {% else %}