m4ly

Tomcat7 setenv.sh JMX

Aug 20th, 2015
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.56 KB | None | 0 0
  1. CATALINA_OPTS="$CATALINA_OPTS \
  2.                -Djava.security.egd=file:/dev/./urandom \
  3.                -Dexternal-properties=example.properties \
  4.                -Dbitronix.tm.configuration=$CATALINA_HOME/config.properties \
  5.                -Dbtm.root=$CATALINA_HOME \
  6.         -Daperte.workflow.home=$CATALINA_HOME/../ \
  7.                -Daperte.osgi.dir=$CATALINA_HOME/osgi-plugins \
  8.                -Djbpm.repository.dir=$CATALINA_HOME/jbpm
  9.         -Dfile.encoding=UTF8 \
  10.                -Djava.net.preferIPv4Stack=true \
  11.                -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false \
  12.                -Xmx1548m \
  13.                -Xms1024m \
  14.                -XX:MaxPermSize=1024m \
  15.                -Dorg.apache.catalina.JSESSIONID=jsessionid_nazwa "
  16.  
  17. CATALINA_OPTS="$CATALINA_OPTS -Duser.timezone=Europe/Warsaw -Duser.country=PL "
  18.  
  19.  
  20. # Dawid Mocek 31-03-2015
  21. # Dla visualvm  - nie potrzebene dla dziala uslugi tomcat. Dla debugownia aplikacji remote i monitorowania
  22.  
  23. JAVA_OPTS="$JAVA_OPTS \
  24.            -Dcom.sun.management.jmxremote \
  25.            -Dcom.sun.management.jmxremote.port=7998 \
  26.            -Dcom.sun.management.jmxremote.rmi.port=7998 \
  27.            -Dcom.sun.management.jmxremote.authenticate=true \
  28.            -Dcom.sun.management.jmxremote.ssl=false \
  29.            -Djava.rmi.server.hostname=192.168.20.200 \
  30.            -Djava.rmi.server.logCalls=false \
  31.            -Dcom.sun.management.jmxremote.password.file=/etc/jmxremote/app.conf"
  32.  
  33. CATALINA_PID="/var/run/app/catalina.pid"
  34. CATALINA_OUT="/var/log/app/catalina.out"
Advertisement
Add Comment
Please, Sign In to add comment