legacy-knowledge-base
公開されました Jun. 30, 2025

docker/kubernetes ベースの環境でスレッド ダンプを作成する

written-by

Sivakumar Perumal

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

問題

  • docker/kubernetes ベースの環境でスレッド ダンプを生成する簡単な方法はありますか?

Environment

  • Liferay Docker イメージ

解決策

  • 公式の Liferay Docker イメージには、デフォルトでスレッド ダンプ スクリプトが同梱されています。 スレッド ダンプを生成するには、このスクリプト probe_thread_dump.sh under /usr/local/bin を実行すると役立ちます。
  • ./probe_thread_dump.sh を有効にするには、次の環境変数を true に設定する必要があります。
    "LIFERAY_THREAD_DUMP_PROBE_ENABLED" to "true"
    以下のコマンドを実行すると、スレッド ダンプが生成されます。
    ./probe_thread_dump.sh -d "http://localhost" -f "c/portal/layout" -p 8080 -t 20
  • 出力ファイルは /opt/liferay/data/logsの下になります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base