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:

  1. Stop Confluence (if Confluence is running).
  2. Edit <home-directory>/confluence.cfg.xml and change the value of hibernate.c3p0.max_size
  3. Confluence を再起動します。 

If you're using a datasource connection, you'll make this change in your datasource:

  1. Stop Confluence (if Confluence is running).
  2. Edit <install-directory>/conf/server.xml  and change the value of MaxTotal
  3. 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):

  1. Stop Confluence (if Confluence is running).
  2. Edit <install-directory>/conf/server.xml and change the value of MaxThreads
  3. 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. 

最終更新日: 2017 年 12 月 14 日


Powered by Confluence and Scroll Viewport.