I've had an unexpected shut down on a VM that hosts a web server 2 times. Both at 6am, so obviously the first thing I need to do is find whats running at 6am on those days. The shut down appears to be more of a Kill than a shut down. From syslog it appear to be saying it's out of memory and kills the VM process, is this the whole system or just the VM? Is there a way to make this VM high priority so it will kill anything other than this one VM?
System spec is Proxmox 8.1.3 with 128GB
This is what I found in syslog.
Would simply reducing the allocated memory for a VM be likely to help this? There are only 3 VMs on this node, the total memory allocated between them all is admittedly about 32GB more than the actual system, but 2 of the 3 VMs don't really use any memory, even though its' allocated.
System spec is Proxmox 8.1.3 with 128GB
This is what I found in syslog.
Code:
cat /var/log/syslog | grep oom
2023-12-31T05:58:18.900734+00:00 prox380 kernel: [827342.672879] pve-firewall invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
2023-12-31T05:58:18.900984+00:00 prox380 kernel: [827342.673962] oom_kill_process+0x10d/0x1c0
2023-12-31T05:58:18.926437+00:00 prox380 kernel: [827342.700567] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
2023-12-31T05:58:18.958981+00:00 prox380 kernel: [827342.721038] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=pve-firewall.service,mems_allowed=0-1,global_oom,task_memcg=/qemu.slice/104.scope,task=kvm,pid=1556670,uid=0
2023-12-31T05:58:18.958982+00:00 prox380 kernel: [827342.721849] Out of memory: Killed process 1556670 (kvm) total-vm:111162224kB, anon-rss:91578576kB, file-rss:2660kB, shmem-rss:0kB, UID:0 pgtables:182384kB oom_score_adj:0
2023-12-31T05:58:19.787619+00:00 prox380 systemd[1]: 104.scope: Failed with result 'oom-kill'.
2023-12-31T05:58:30.501982+00:00 prox380 kernel: [827354.283802] oom_reaper: reaped process 1556670 (kvm), now anon-rss:0kB, file-rss:160kB, shmem-rss:0kB
Would simply reducing the allocated memory for a VM be likely to help this? There are only 3 VMs on this node, the total memory allocated between them all is admittedly about 32GB more than the actual system, but 2 of the 3 VMs don't really use any memory, even though its' allocated.