tomcat-instance: possibility to surcharge java path

This commit is contained in:
Victor LABORIE 2017-07-12 10:55:50 +02:00
parent e23edbd5f4
commit eedeab6be2
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
---
tomcat_instance_java_path: '/usr/lib/jvm/java-7-openjdk-amd64'
tomcat_instance_root: '/srv/tomcat'
tomcat_instance_shutdown: "{{ tomcat_instance_port | int + 1 }}"
tomcat_instance_mps: 256

View File

@ -2,5 +2,5 @@
# Xmx Max memory allocated to instance.
# Xms Allocated memory at startup.
# XX:MaxPermSize Memory allocated to internal objects.
JAVA_HOME="/usr/lib/jvm/java-1.7.0-openjdk-amd64"
JAVA_HOME="{{ tomcat_instance_java_path }}"
JAVA_OPTS="-server -Xmx{{ tomcat_instance_ram }}m -Xms{{ tomcat_instance_ram }}m -XX:MaxPermSize={{ tomcat_instance_mps }}m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -Xverify:none"