System ran out of memory due to the high memory consumption of the lsof command

Solution Verified - Updated -

Issue

  • The system ran out of memory due to excessive memory usage by the lsof command.
  • The lsof command is consuming a large amount of memory.
crash> ps -Gu 111645
      PID    PPID  CPU       TASK        ST  %MEM      VSZ      RSS  COMM
   111645  111631   2  ffff8e08e34c0000  RU  34.6  5668196  4719180  lsof

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • lsof

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