問題
- ポータルが遅いときにスレッドダンプを自動的に生成する方法は?
環境への配慮
- 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) アプリケーションサーバーのダウンタイムには、サーバーの再起動を必要とするため、この活動を実行します。