proxmox Higher CPU usage on host than VM, may be related to Java

Hello, I have a FreeBSD 14.2 machine running on Proxmox which runs a couple vnet jails and pf, but nothing too network intensive. When the VM is idling, the host reports a cpu usage of about 20%, while the machine reports only about 5-6%. I have another OPNSense VM which is usually more loaded, but only reports a 5-6% when idling.

I've found a post on Proxmox Forums telling the same issue, and the OP eventually narrowed the problem down to a Minecraft server installation, as long as Minecraft was running, Proxmox starts to report 20%+ even if the machine is idling. You can find a link to the post here: https://forum.proxmox.com/threads/high-proxmox-ve-cpu-usage-from-idle-vm.136396/

I am myself in the same situation and can replicate the issue, as soon as I stop the Java process, CPU usage on the host drops to nearly zero, so it seems Java may be the issue here. I have another VM in the same host running Debian and the issue does not appear. Maybe it has to do with the implementation of JVM in FreeBSD?

I'll keep up with this thread as I'm very interested in hosting my Minecraft server on FreeBSD, but I'm still a noobie with all this. Let me know if you need more info.

sh:
lem@minecraft-fbsd01:~ $ uname -a && cat /etc/os-release && java --version
FreeBSD minecraft-fbsd01 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64
NAME=FreeBSD
VERSION="14.2-RELEASE-p1"
VERSION_ID="14.2"
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 14.2-RELEASE-p1"
CPE_NAME="cpe:/o:freebsd:freebsd:14.2"
HOME_URL="https://FreeBSD.org/"
BUG_REPORT_URL="https://bugs.FreeBSD.org/"
openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-1)
OpenJDK 64-Bit Server VM (build 21.0.5+11-1, mixed mode, sharing)
 
Back
Top