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

DockerでHotfixをインストールすると、サーバが突然シャットダウンする。

written-by

Tony Ng

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を使用してHotfixをインストールしようとすると、サーバーが正常に起動するように見えるが、突然シャットダウンしてしまう。 しかし、Hotfixを削除すると、すべてが正常に起動するようになりました。

Environment

  • DXP 7.3
  • DXP 7.4

解決策

この問題は、 メモリ不足によるものと思われます。Liferay コンテナまたは Docker 自体のメモリを増やすことで解決できます:

  1. mフラグの後の値を増やすことで、Liferayコンテナへのメモリを増やします:
    docker run -it -m 8g -p 8080:8080 liferay/portal:7.4.3.29-ga29
  2. Preferences > Resources > Advancedに移動してDockerエンジンに割り当てられたメモリの量を確認し、8GB未満であればメモリを増やします。image-2022-07-25-13-05-16-275.png

追加情報

  • MACユーザーの場合、8GBあれば十分だと思いますが、12GB必要だったという報告もありました。

did-this-article-resolve-your-issue

legacy-knowledge-base