Startup check: HTTP MaxThreads configuration
この記事はアトラシアンのサーバー製品にのみ適用されます。クラウドとサーバー製品の違いについてはこちらをご確認ください。
This check confirms that the size of your HTTP thread pool (MaxThreads
) is not greater than your database connection pool. For example if MaxThreads
is set to 48, your database connection pool should allow 60 connections. As a general rule you should allow either 10 additional database connections or 25% more database connections (whichever is the greater), for debugging or administrative purposes.
To resolve this issue
To resolve this issue you should either increase your database connection pool, or decrease your HTTP thread pool. The option you choose will depend on your environment (for example your database may not be be able to support an increased number of connections).
Change the size of the database connection pool
If you're using a JDBC connection (this is the most common configuration) you will need to:
- Stop Confluence (if Confluence is running).
- Edit
<home-directory>/confluence.cfg.xml
and change the value ofhibernate.c3p0.max_size
. - Confluence を再起動します。
If you're using a datasource connection, you'll make this change in your datasource:
- Stop Confluence (if Confluence is running).
- Edit
<install-directory>/conf/server.xml
and change the value ofMaxTotal
. - Confluence を再起動します。
To find out more about configuring your database connection pool in a datasource see the JNDI Datasource HOW-TO in the Apache documentation.
Change the size of the HTTP thread pool
To change the HTTP thread pool (MaxThreads):
- Stop Confluence (if Confluence is running).
- Edit
<install-directory>/conf/server.xml
and change the value ofMaxThreads
. - Confluence を再起動します。
What will happen if I dismiss this warning?
Confluence may slow down or time out during periods of heavy load because the number of connections configured for the database connection pool is too small to handle the number of requests. See Confluence slows and times out during periods of high load due to database connection pool for more information.