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
Wrong processes monitoring #20305
Comments
We use cgroups for measuring CPU usage of processes, are you executing journalctl in an ssh session? That might explain it? |
yes, for connection to server, I'm using ssh. but this is not only one case, only the latest. Sometimes the cpu is very high in top, but the cockpit shows no process with higher cpu than 1%. I have noticed these behavior a lot of times. |
Note that these are services, not processes. But if that journalctl is running in your user session, the corresponding cgroup/systemd service shuold be something like user@1000.service. In such a case, can you please check |
In this case the journalctl processes was run directly by cockpit. I was logged in as user and tried to reproduce issue with web logs #20355 and cockpit started a lot of processes, what I understand is error. I don't know If I should create separate ticket for that. I'm not sure how cockpit run these processes, if they are under cockpit or disowned, that should be in code of cockpit. |
Leftover journalctl's seems bad, if we can reproduce this we should the leftover processes. |
I can't reproduce the journalctl issue here, can you post the full output of |
Here it is:
It is easy to reproduce. Just run it under cockpit under user (i don't know if that is necessary), user has journalctl priviledges, and play with the log settings in cockpit, scroll, show detail log etc. On my server (intel i5 notebook) it will do this. |
I can't reproduce this. Does journalctl hang when you run this as user?
In what groups is your user? |
Nope. It takes few seconds:
I'm putting all users on server to minimal privileges, it is not even in wheel, just systemd-journal:
|
Explain what happens
Cockpit shows different processes than top. E.g.:
cockpit shows:
top shows:
gitea is ok, but journalctl is not sshd.
It is not the first time I have seen it. Sometimes cockpit doesn't show the high cpu process at all. From where are you taking the processes info?
Version of Cockpit
315
Where is the problem in Cockpit?
Overview
Server operating system
Arch Linux
Server operating system version
latest
What browsers are you using?
Other
System log
No response
The text was updated successfully, but these errors were encountered: