Tomcat Large Instance

From UVOO Tech Wiki
Revision as of 20:58, 4 February 2022 by Busk (talk | contribs)
Jump to navigation Jump to search

server.xml vars defs

https://stackoverflow.com/questions/39644830/what-are-acceptcount-maxconnections-and-maxthreads-in-tomcat-http-connector-con

/var/atlassian/application-data/confluence/confluence.cfg.xml

    <property name="hibernate.c3p0.max_size">310</property> -> <property name="hibernate.c3p0.max_size">1024</property>

Question /var/atlassian/application-data/confluence/shared-home/confluence.cfg.xml

/opt/atlassian/confluence/bin/setenv.sh

CATALINA_OPTS="-Xms32g -Xmx32g -XX:+UseG1GC ${CATALINA_OPTS}" -> CATALINA_OPTS="-Xms64g -Xmx64g -XX:+UseG1GC ${CATALINA_OPTS}"

/opt/atlassian/confluence/conf/server.xml

 maxThreads="248" minSpareThreads="20" maxSpareThreads="30" compression="on" ->  maxThreads="768" minSpareThreads="20" maxSpareThreads="30" compression="on"
sudo systemctl restart confluence

File limit

https://confluence.atlassian.com/confkb/too-many-open-files-error-659784628.html https://confluence.atlassian.com/confkb/health-check-confluence-open-files-limit-844236751.html https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/

New

      maxThreads="768" minSpareThreads="40" maxSpareThreads="60" compression="on"
        compressableMimeType="text/html,text/xml,text/plain" enableLookups="false" acceptCount="240"