<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
-Change the port of the connector for 80/443 and changes params:
AUTHBIND=yes
-Define correct JVM options and specify a heap dump path
JAVA_OPTS="-server -Xms4G -Xmx4G -XX:MaxPermSize=128m -XX:+DisableExplicitGC -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/tomcat7/dump -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseTLAB -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:CMSIncrementalDutyCycleMin=0 -XX:CMSIncrementalDutyCycle=10 -XX:MaxTenuringThreshold=0 -XX:SurvivorRatio=256 -XX:CMSInitiatingOccupancyFraction=60 -Djava.net.preferIPv4Stack=true"
<init-param>
<param-name>development</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>genStringAsCharArray</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>trimSpaces</param-name>
<param-value>true</param-value>
</init-param>
Why do this?
development: When using Jasper 2 in a production Tomcat server, set development to “false.” Set it to “true” in the development environment. One caveat: Sometimes this cannot be done, for example, with dynamic generation of JSPs.
genStringAsCharArray: set genStringAsCharArray to “true” to produce more efficient char arrays.
trimSpaces: set trimSpaces to “true” to remove useless bytes from the response.
/etc/tomcat7/tomcat-users.xml