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

No CPU Usage data in Proxmox LXC #671

Open
Drallas opened this issue Nov 4, 2023 · 4 comments
Open

No CPU Usage data in Proxmox LXC #671

Drallas opened this issue Nov 4, 2023 · 4 comments

Comments

@Drallas
Copy link

Drallas commented Nov 4, 2023

Summary

I moved Cronicle over to a LXC container, everything is great except the absence of CPU usage data, memory data is recorded.

Steps to reproduce the problem

Run Cronicle in a tteck LXC.

Your Setup

Proxmox and LXC.

Operating system and version?

Debian 12

Node.js version?

Latest

Cronicle software version?

Latest

Are you using a multi-server setup, or just a single server?

Single server.

Are you using the filesystem as back-end storage, or S3/Couchbase?

B2

@mikeTWC1984
Copy link

CPU/memory metrics come from this command

/bin/ps -eo "ppid pid %cpu rss"

You probably have some in-the-box / non-standard version of ps (might need to install standard version)

@Drallas
Copy link
Author

Drallas commented Nov 9, 2023

CPU/memory metrics come from this command

/bin/ps -eo "ppid pid %cpu rss"

You probably have some in-the-box / non-standard version of ps (might need to install standard version)

Not sure, if I paste in the command I do get output.

/bin/ps -eo "ppid pid %cpu rss"
PPID PID %CPU RSS
0 1 0.0 7808
1 51 0.0 7648
1 73 0.0 3456
1 91 0.0 2176
1 100 0.0 1408
1 101 0.0 2944
1 104 0.0 5248
1 156 0.0 1152
1 158 0.0 1024
1 159 0.0 1152
1 160 0.0 3968
1 167 0.2 52612
1 342 0.0 2964
160 13543 0.0 4352
1 13546 0.0 6144
13546 13547 0.0 2700
13543 13563 0.0 1536
13563 16737 0.0 1792
16737 16738 0.0 1060
16738 16739 0.0 1280
342 453070 0.0 6912
342 453071 0.0 6784
160 471751 0.0 11264
471751 471755 0.0 8960
471755 478254 0.0 4096

Seems my jobs are too short, to display average CPU time, only some heavier ones have a value now.

@mikeTWC1984
Copy link

Oh, ok. TO test, you can create event using test plugin, and check "burn cpu" option. Normally it should utilize 1 core for 100%. Also, performance metrics get update after 10 seconds

@Drallas
Copy link
Author

Drallas commented Nov 9, 2023

Most of my jobs are between 5 and 20 seconds. Since it an LXC on Proxmox the CPU impact might be to low to get over the threshold to be picked up. Only one job that runs longer shows CPU stats.

Screenshot 2023-11-09 at 15 31 38 Screenshot 2023-11-09 at 15 34 59

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

No branches or pull requests

2 participants