添付ファイルの再インデックスに利用されるスレッドの数を変更する方法
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
ユースケース
By default, the number of threads used for attachment reindexing is 4 threads on Confluence versions until 7.13. Having more threads on this process will be useful to increase speed of indexing given that the machine/processor is capable on doing so. Please be cautious while increasing this number to ensure that we do not set it high enough to cause performance issues. Kindly validate and test these increased settings on a test environment before applying this on production.
- Starting on Confluence version 7.14, the default number of threads used for attachment reindexing is the larger value between 4 and a calculation that considers the number of processors and the available free memory in the JVM.
ソリューション
Add the JVM parameter -Dreindex.attachments.thread.count=10
. (see Configuring System Properties for tips on how to set an environment variable)
Note: The above example will set 10 threads for attachment reindexing process.
Number of threads used for Content reindexing
If you are looking for a JVM parameter to change the number of threads used for Content reindexing instead, take a look at "Poor performance while rebuilding the index" section in the Knowledge Base article
Content Index Administration - make sure to select the appropriate Confluence version on the combo box at the top right of the page.