【概要】
Docker上で動かしていたcollabora onlineで巨大なスプレッドシートを開いたらメモリ+swapを一気に使い尽くしてOSごとお亡くなりになった。
dockerのメモリソフトリミット(--memory-reservation)セットして再挑戦したらいけた。
【メモ】
# メモリのソフトリミット1GB
docker run -td --memory-reservation 1g hogefuga
# 確認
dovker stats
CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS xxxxxxxxxxxx 0.78% 1.005 GiB / 3.86 GiB 26.03% 480 MB / 1.64 GB 28.9 GB / 761 MB 0
いけてる