Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following ports must be available for binding of services:

PortsService
25 (TCP)Mail
53 (UDP and TCP)DNS
10080 (TCP)HTTP
10389, 11389, 12389 (TCP)LDAP

Configure Tomcat

Stop the Tomcat 7 service by running:

...

Code Block
languagebash
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
JAVA_OPTS="-Djava.awt.headless=true -Xms384mXms1024m -Xmx768mXmx1536m -XX:+UseConcMarkSweepGCUseG1GC -XX:MaxGCPauseMillis=50"
ulimit -n 8192
Info

The execution of the ulimit command above increases/sets the open files limit for the Tomcat 7 service process. The common default value on *nix systems is 1024, which is quite often insufficient.

...

Append the following lines to the file /usr/share/tomcat7/bin/setenv.sh:

Code Block
languagebash
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true"
CATALINA_OPTS="$CATALINA_OPTS -XX:PermSizeMetaspaceSize=256m512m -XX:MaxPermSizeMaxMetaspaceSize=512m768m"
CATALINA_OPTS="$CATALINA_OPTS -Ddcdt.data.dir=<path to data directory> -Ddcdt.web.user.admin.secret=<admin console admin user password>"

...