legacy-knowledge-base
公開されました Sep. 10, 2025

Liferayでポータルが遅いときに自動的にスレッドダンプをログに記録する方法は?

written-by

Prarthana Jadhav

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

learn-legacy-article-disclaimer-text

問題

  • ポータルが遅いときにスレッドダンプを自動的に生成する方法は?

環境への配慮

  • Liferayポータル6.2
  • Liferay DXP 7.0、7.1、7.2

決議

  • Liferayは、ポータルが遅いときにLiferayログにスレッドダンプを生成する以下の2つのプロパティを提供しています。
    #
    # The thread dump filter will automatically log thread dumps when the portal
    # is too slow. Behavior can be configured via the property
    # "thread.dump.speed.threshold".
    #
    com.liferay.portal.servlet.filters.threaddump.ThreadDumpFilter=true

    #
    # The thread dump filter will log a thread dump if the portal takes longer
    # than the specified number of seconds to process. The thread dump filter
    # must be enabled via the property
    # "com.liferay.portal.servlet.filters.threaddump.ThreadDumpFilter".
    #
    thread.dump.speed.threshold=5
  • 上記のプロパティを portal-ext.properties に追加し、変更がポータルに適用されるようにするには再起動が必要です。

追加情報

ご注意:をお願いします。

1) 最初にテスト環境で上記の活動を試してみて、自分の判断でうまくいけば、本番環境に移行します。

2) アプリケーションサーバーのダウンタイムには、サーバーの再起動を必要とするため、この活動を実行します。

did-this-article-resolve-your-issue

legacy-knowledge-base