CPU Spike Java

milty456

Member
Apr 6, 2020
7
0
6
44
Ubuntu 20.04
Prox Mox 6.2-12

I install the linux vm, with 2 cores, and the application i use that relies on java spikes the cpu to 196% and doesn't work.(Java process is spiking)
I change the CPU to 1 core and it works fine.
Why can't i use 2 cores on my VM?

It's a haswell processor with 1 socket 4 cores.

I've tried every setting in proxmox, and can't get it to work.
 
Could you please post
Code:
qm config <vmid>
?
 
I have similar problem. I had 3 dockers on this VM running java application and all went well, but after starting 4th java-docker all cpu:s jumped to 100% (this one process uses all). Strace for this process "hangs" in FUTEX_WAIT. Normally this java-process just idles.
I have a vague memory that java and the number of processors would have caused me a similar problem before.

Ubuntu 18.04, Linux 5.15.0-122

agent: 1
balloon: 0 #same with 1
bootdisk: scsi0
cores: 10
memory: 16384
numa: 1
ostype: l26
scsihw: virtio-scsi-pci

smbios1: uuid=4a721b60-7e43-4963-b840-bfd9c6d00a2e
sockets: 1
tablet: 0
 
Ubuntu 20.04
Prox Mox 6.2-12

I install the linux vm, with 2 cores, and the application i use that relies on java spikes the cpu to 196% and doesn't work.(Java process is spiking)
I change the CPU to 1 core and it works fine.
Why can't i use 2 cores on my VM?

It's a haswell processor with 1 socket 4 cores.

I've tried every setting in proxmox, and can't get it to work.
Hi Dominic,

Some more info: An engineer friend of mine set up a "container" instead of a VM, and it works. So it's really weird.
I've tried messing with the CPU limit as well as other settings, still can't get the VM to work properly in terms of CPU usage.

Here you go:

balloon: 0
bootdisk: scsi0
cores: 2
cpu: kvm64
cpulimit: 1
ide2: none,media=cdrom
kvm: 0
memory: 4096
name: OpenHab2.5
net0: e1000=7A:42:DC:08:B1:C5,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
parent: OpenhabInstalled
scsi0: local-lvm:vm-101-disk-0,size=75G
scsihw: virtio-scsi-pci
smbios1: uuid=ed2ed573-83f8-4790-becb-3b650a54e84c
sockets: 1
vcpus: 2
vmgenid: 5b0f1b24-2f9b-42b3-a4b5-037354e2c3ce
root@ProxMox2:~#

1605566671926.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!