Why does the command "lsof" run very slowly and consume high cpu
Issue
-
Executing
lsoftakes a very long time (up to several minutes) -
Executing
lsofconsumes an entire CPU for a very long time -
Executing
lsofconsumes several gigabytes of memory
Environment
-
Red Hat Enterprise Linux 7
lsof-4.87-6.el7and later
-
Red Hat Enterprise Linux 8 and later
lsof
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.