Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent causing CPU usage spikes in VM #59

Open
YeapGuy opened this issue Feb 27, 2024 · 5 comments
Open

Agent causing CPU usage spikes in VM #59

YeapGuy opened this issue Feb 27, 2024 · 5 comments

Comments

@YeapGuy
Copy link

YeapGuy commented Feb 27, 2024

After installing the agent in a Debian VM on Proxmox, I noticed that the VM periodically (every few seconds) spiked the CPU usage. After looking at htop, I confirmed this to be caused by the HetrixTools agent.
This is a graph of CPU% of the VM. The drop is after I uninstalled the agent.
image

I also have the agent installed on the host, where it doesn't seem to be doing this. Must be something specific to VMs.

@hetrixtools
Copy link
Owner

Can you please provide a bit more info as to what the specs of the hypervisor are and what specs did you assign to the VM? Also, which Debian version was in the VM, and which Proxmox/Debian version was on the hypervisor? So we can set up a testing environment and try to reproduce the issue.

Any other info that you might think would help will also be appreciated.

Thank you.

@YeapGuy
Copy link
Author

YeapGuy commented Mar 1, 2024

Sure.
Hypervisor: i5-12450H / 32GB DDR4 RAM / NVMe SSD storage
VM specs do not seem to matter (had this same issue on two different VMs), but my VM had 4 cores / 8GB RAM. I used CPU Affinity to limit the VPS to specific four cores.
In the Debian 12 VM:

primary@mail:~$ uname -a
Linux mail 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

It's created using the official cloudinit-compatible image of Debian
It has pretty standard specs:
image
I installed the agent as root.

@ow-de
Copy link

ow-de commented May 9, 2024

@hetrixtools

I also have the same problem.
VM is hosted on Proxmox with following settings:

image

VM-OS is Debian 12 x64, the VM has been installed from Netinstall ISO.
Linux m 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

The VM is hosting a Mailcow-Mailserver inside several docker-containers.

Agent is installed in Version 2.1.0

Kind regards

@hetrixtools
Copy link
Owner

Try increasing the agent's metrics collection interval as explained in our documentation:
https://docs.hetrixtools.com/how-to-increase-linux-server-monitoring-agent-metrics-collection-intervals/

Also, please open a support ticket on our platform, including the monitor's name, so our techs can take a closer look at your metrics.

Thank you.

@ow-de
Copy link

ow-de commented May 9, 2024

@hetrixtools

thanks for your comment. I am trying to set the Interval to 10s, see if CPU usage is going down.
If the problem persists, I will open a support ticket.

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants