forked from ISTI-ansible-roles/ansible-roles
tomcat, tomcat-multiple-instances: New JDK options to activate the debug.
This commit is contained in:
parent
e46967c586
commit
c5d7868257
|
@ -46,7 +46,7 @@ JAVA_OPTS="${JAVA_OPTS} -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremo
|
|||
{% endif %}
|
||||
{% if item.remote_debugging is defined and item.remote_debugging %}
|
||||
# You will be able to use a java debugger on port {{ item.remote_debugging_port }}.
|
||||
JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address={{ item.remote_debugging_port }},server=y,suspend=n"
|
||||
JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket, address={{ item.remote_debugging_port }}, server=y, suspend=n"
|
||||
{% endif %}
|
||||
# WARNING: This directory will be destroyed and recreated at every startup !
|
||||
JVM_TMP={{ item.instance_path }}/tmp
|
||||
|
|
|
@ -43,7 +43,9 @@ JAVA_OPTS="${JAVA_OPTS} -XX:+DisableAttachMechanism -Dcom.sun.management.jmxremo
|
|||
{% endif %}
|
||||
{% if tomcat_enable_remote_debugging %}
|
||||
# You will be able to use a java debugger on port {{ tomcat_remote_debugging_port }}.
|
||||
JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address={{ tomcat_remote_debugging_port }},server=y,suspend=n"
|
||||
JAVA_OPTS="${JAVA_OPTS} -agentlib:jdwp=transport=dt_socket, address={{ tomcat_remote_debugging_port }}, server=y, suspend=n"
|
||||
# Obsolete
|
||||
#JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address={{ tomcat_remote_debugging_port }},server=y,suspend=n"
|
||||
{% endif %}
|
||||
# Location of the JVM temporary directory
|
||||
# WARNING: This directory will be destroyed and recreated at every startup !
|
||||
|
|
Loading…
Reference in New Issue