...
I thought my database is created as utf8_bin, so may have no issue, but actually you will face lots of issues very soon.
...
Modifying a value of maxThreads
...
.Connector in <confluence_home_directory>/conf/server.xml
The below is what I tried on server.xml - I just put 1024 for maxThreads instead of its default value(48)
Code Block | ||
---|---|---|
| ||
... <Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="1024" minSpareThreads="10" enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol"/> ... |
Below is another example
Code Block | ||
---|---|---|
| ||
<Server port="8000" shutdown="SHUTDOWN" debug="0"> <Service name="Tomcat-Standalone"> <Connector port="8090" connectionTimeout="20000" redirectPort="8443" maxThreads="4096" minSpareThreads="10" enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="http" proxyName="your_domain.com" proxyPort="80"/> <Engine name="Standalone" defaultHost="localhost" debug="0"> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4"> <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"> <!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --> <Manager pathname=""/> <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/> </Context> <Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0" reloadable="false" useHttpOnly="true"> <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/> </Context> </Host> </Engine> </Service> </Server> |
Once your modification is done, you should restart your server to take effect.
Apache proxy
If you are using Apache proxy, you should check if you change the setting like below. Note that you should put your own domain name for proxy server or just 127.0.0.1 is good enough if that is installed internally.
...
Code Block | ||
---|---|---|
| ||
CATALINA_OPTS="-Dsynchrony.memory.max=2g ${CATALINA_OPTS}" |
Modifying a value of maxThreads.Connector in <confluence_home_directory>/conf/server.xml
Actually this approach is not recommended, because it could cause poor performance delay in GC(Garbage Collection) sometimes.
Nevertheless, if you still want, you may able to see maxThread as a member of <Connector>. The default value of maxThreads is 48 - I just modified it to 4096
Code Block | ||
---|---|---|
| ||
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="4096" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="http" proxyName="your_domain.com" proxyPort="80"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<!-- Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname=""/>
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0"
reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
</Host>
</Engine>
</Service>
</Server> |
...
Change port number for collaborative editing
...