Recently I found several VMs turned off (killed by oomkiller) due to insufficient system memory. Since the host machine isn't overprovisioned I asked myself what was causing this - and soon found the root cause: pveproxy and spiceproxy have many processes sleeping (some with (shutdown) in their name, according to the process list, being in that state of many days). Running "service pveproxy/spiceproxy restart" free'd up several gigabytes (6 GiB in my case) of system memory.
Does anyone else have this issue? (try running "ps aux" and check if there are many sleeping pveproxy worker (shutdown) processes (and/or their spiceworker equivalent). How can I mitigate this issue? It looks like pveproxy and spiceproxy aren't behaving correctly; shutdown should indicate that the process should go away after a short period of time I guess.
Does anyone else have this issue? (try running "ps aux" and check if there are many sleeping pveproxy worker (shutdown) processes (and/or their spiceworker equivalent). How can I mitigate this issue? It looks like pveproxy and spiceproxy aren't behaving correctly; shutdown should indicate that the process should go away after a short period of time I guess.
Code:
# pveversion -v
proxmox-ve: 6.0-2 (running kernel: 5.0.18-1-pve)
pve-manager: 6.0-7 (running version: 6.0-7/28984024)
pve-kernel-5.0: 6.0-8
pve-kernel-helper: 6.0-8
pve-kernel-4.15: 5.4-7
pve-kernel-5.0.21-2-pve: 5.0.21-3
pve-kernel-5.0.21-1-pve: 5.0.21-2
pve-kernel-5.0.18-1-pve: 5.0.18-3
pve-kernel-4.15.18-19-pve: 4.15.18-45
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.2-pve2
criu: 3.11-3
glusterfs-client: 5.5-3
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.12-pve1
libpve-access-control: 6.0-2
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-4
libpve-guest-common-perl: 3.0-1
libpve-http-server-perl: 3.0-2
libpve-storage-perl: 6.0-8
libqb0: 1.0.5-1
lvm2: 2.03.02-pve3
lxc-pve: 3.1.0-65
lxcfs: 3.0.3-pve60
novnc-pve: 1.0.0-60
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.0-7
pve-cluster: 6.0-7
pve-container: 3.0-7
pve-docs: 6.0-4
pve-edk2-firmware: 2.20190614-1
pve-firewall: 4.0-7
pve-firmware: 3.0-2
pve-ha-manager: 3.0-2
pve-i18n: 2.0-3
pve-qemu-kvm: 4.0.0-5
pve-xtermjs: 3.13.2-1
qemu-server: 6.0-7
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1