Running systemctl status --all --type service --no-pager defaults to including the last few lines of logs for each service.
In some cases this can add significant time to command execution.
While some of my hosts can deal with this quite well, on others this is taking up significant amounts of time.
One extreme case for me is taking more than 3 minutes to get all the logs for all service units:
real 3m14.519s
user 0m0.348s
sys 1m30.642s
I didn’t read the entire diff, but based on the change notes it appears that this change was only intended to collect additional metadata from systemd, not logs.
Running the same command without fetching logs, using --lines=0, finishes almost immediately on the same host:
I saw the same problem on some hosts. As a first quick “solution” i removed the mentioned line from the agent.
I would classify it as a severe bug. If you have bad luck it results in a unusable agent and i saw on one host a very high CPU load caused by this agent line.
Meanwhile: You could also disable the “Systemd services” section entirely, if you prefer a “clickable” solution: Setup → Agents → Windows, Linux, Solaris, AIX → Agent rules → Disabled sections (Linux agent)
Any ETA for the first patch release?
We also noticed this issue when testing the new agent on a select few hosts and have to halt all agent updates until this is solved.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.