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

Java パラメータ UseContainerSupport が機能しない

written-by

István Gergely-Tárnoki

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

問題


  • -XX:+UseContainerSupport プロパティを設定して、Liferay が使用できるメモリ量を指定しようとしています。
  • ただし、効果がないように見え、システム管理パネルに指定された制限が表示されません。

Environment

  • Liferay DXP 7.0+
  • Java ホットスポット VM

解決策

  • -XX:MaxRAMPercentage プロパティも指定する必要があります
  • たとえば、最大ヒープサイズをコンテナメモリの80%に設定するには、次のオプションを指定します。 -XX:+ UseContainerSupport -XX:MaxRAMPercentage = 80

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base