lsof command is taking more CPU time.

Solution Unverified - Updated -

Issue

  • We are seeing continuously high CPU usage because of lsof commands
PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
25772 root      20   0  247092 129100    892 S  73.4  0.8   0:10.51 lsof
25828 root      20   0  151096  33140    892 S  71.8  0.2   0:02.71 lsof
25762 root      20   0  267844 149876    892 R  51.5  0.9   0:12.82 lsof
25774 root      20   0  119076    184      0 S  26.2  0.0   0:03.72 lsof
25830 root      20   0  119076    180      0 S  24.6  0.0   0:00.93 lsof
25764 root      20   0  119076    184      0 S  18.9  0.0   0:04.62 lsof
25836 root      20   0  126160   8160    892 R  18.9  0.1   0:00.57 lsof
25838 root      20   0  119076    180      0 S   6.6  0.0   0:00.20 lsof

Environment

  • Red Hat Enterprise Linux 7
  • kernel-3.10.0-327.el7
  • lsof-4.87-4.el7

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