Difference between revisions of "Tomcat Large Instance"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
/opt/atlassian/confluence/bin/setenv.sh | /opt/atlassian/confluence/bin/setenv.sh | ||
``` | ``` | ||
+ | ulimit -n 32768 | ||
CATALINA_OPTS="-Xms32g -Xmx32g -XX:+UseG1GC ${CATALINA_OPTS}" -> CATALINA_OPTS="-Xms64g -Xmx64g -XX:+UseG1GC ${CATALINA_OPTS}" | CATALINA_OPTS="-Xms32g -Xmx32g -XX:+UseG1GC ${CATALINA_OPTS}" -> CATALINA_OPTS="-Xms64g -Xmx64g -XX:+UseG1GC ${CATALINA_OPTS}" | ||
``` | ``` | ||
Line 23: | Line 24: | ||
sudo systemctl restart confluence | sudo systemctl restart confluence | ||
``` | ``` | ||
+ | |||
+ | # Troubleshooting | ||
+ | |||
+ | # 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/ | ||
Line 30: | Line 38: | ||
compressableMimeType="text/html,text/xml,text/plain" enableLookups="false" acceptCount="240" | compressableMimeType="text/html,text/xml,text/plain" enableLookups="false" acceptCount="240" | ||
``` | ``` | ||
+ | |||
+ | |||
+ | /etc/security/limits.conf | ||
+ | ``` | ||
+ | confluence-user soft nofile 32768 | ||
+ | confluence-user hard nofile 32768 | ||
+ | reboot | ||
+ | ``` | ||
+ | |||
+ | https://confluence.atlassian.com/doc/confluence-7-4-release-notes-994312218.html | ||
+ | |||
+ | |||
+ | https://web.mit.edu/kerberos/krb5-1.12/doc/admin/install_kdc.html |
Latest revision as of 22:19, 4 February 2022
server.xml vars defs
/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
ulimit -n 32768 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
Troubleshooting
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"
/etc/security/limits.conf
confluence-user soft nofile 32768 confluence-user hard nofile 32768 reboot
https://confluence.atlassian.com/doc/confluence-7-4-release-notes-994312218.html
https://web.mit.edu/kerberos/krb5-1.12/doc/admin/install_kdc.html