↑ ↓ select, Enter open, Esc close

Show running lsphp processes with memory usage

user@server
ps -eo pid,user,%cpu,rss,etime,cmd --sort=-rss | grep -E "[l]sphp"

Shows all lsphp processes with PID, user, CPU share, memory in KB and elapsed time, the most memory-hungry first. On servers with several webspaces, the user column reveals which site is currently causing load. The square brackets in the pattern prevent grep from matching itself.

Also searched as

  • show lsphp processes
  • which site causes php load litespeed
  • litespeed php memory usage

Related one-liners

All in LiteSpeed

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.