High CPU and memory usage caused by PolicyKit and D-Bus services for non-root user authorization.

Solution Verified - Updated -

Issue

  • System suffered high CPU and memory utilization that impacted the production workload.
  • ps command output shows PolicyKit and D-Bus services are consuming a significant amount of resources which is not expected.

    # ps  aux | egrep "(polkitd|dbus|USER)"
    USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    dbus        1557 44.7  0.0  92592 11620 ?        -    Feb19 14574:11 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
    dbus           - 44.7    -      -     - -        Rs   Feb19 14574:11 -
    polkitd  1437054 22.2  0.1 2035760 22696 ?       -    12:15   4:07 /usr/lib/polkit-1/polkitd --no-debug
    polkitd        -  4.1    -      -     - -        Ssl  12:15   0:46 -
    polkitd        - 18.0    -      -     - -        Rsl  12:15   3:20 -
    

Environment

  • Red Hat Enterprise Linux 7.x.
  • Red Hat Enterprise Linux 8.x.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content