mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-30 09:32:29 +01:00
645c635650
The service ran `java -jar` without the JAVA_BASE_OPTS from .env, and inside LXC the JVM cannot see the container's memory limit, so it sized its heap from host RAM (16 GB in a 2 GB CT on a 64 GB host) and the container thrashed and got OOM-killed. Pass the .env options, set -XX:MaxRAM from /proc/meminfo (lxcfs reports the CT limit), lower MaxRAMPercentage to 50 for LibreOffice/tesseract headroom, and migrate existing units on update (also drops the broken ExecStop=/bin/kill -15 %n left from before #16813). Fixes #18291 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>