Legacy Knowledge Base
公開されました Jul. 2, 2025

Lucene の最適化

Written By

Liferay Support

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

ほとんどの場合、Lucene の最適化は有用ですが、大規模なデプロイメントでは必要不可欠です。 この記事では、Lucene を最適化するための関連設定を説明し、さらに詳しい情報へのリンクを提供することを目的としています。 ただし、Liferay の展開はそれぞれ異なるため、このサービスは Liferay サブスクリプション サービスではサポートされていません。

決議

システムに十分な量のメモリがある場合は、 portal-ext.properties のlucene.buffer.size= の設定を増やすことから始めるのが良いでしょう。 また、 lucene.commit.batch.size= の設定を増やしてみてください。

希望のベンチマークに到達するまで、これらのルセンの設定で試行錯誤してください。

Luceneを使うか、自分でLuceneを最適化するかの選択肢もあります。

  1. Luceneを実装して最適化し、専用サーバに座るアプリケーションであるSolrを使用します。

  2. アカウントマネージャーに相談して、お客様の環境にLuceneを最適化するためのLiferayサービスの可能性を確認してください。

再インデックス作成時に「Out of Memory Error」が発生したら?
lucene.buffer.size=16 と lucene.merge.factor=10 のデフォルト値を下げてみてください。

追加情報

ベンチマークとストレステストはこちらでお読みください。 http://issues.liferay.com/browse/LPS-5837

Did this article resolve your issue ?

Legacy Knowledge Base