اینم بدم خدمتتون شاید کمک کنه
کد PHP:
[root@s1 ~]# ps -auxf | sort -nr -k 3 | head -10
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
mysql 3433 2.9 9.2 1396868 286720 ? Sl 14:23 10:38 \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/lib/mysql/s1.******.err --open-files-limit=8192 --pid-file=/var/lib/mysql/s1.alborzhost.in.pid
apache 26365 1.4 0.2 298032 8764 ? Sl 19:53 0:22 \_ /usr/sbin/httpd -k start -DSSL
apache 31071 1.3 0.2 296600 7148 ? Sl 20:16 0:02 \_ /usr/sbin/httpd -k start -DSSL
apache 26489 1.3 0.2 297536 7764 ? Sl 20:13 0:05 \_ /usr/sbin/httpd -k start -DSSL
root 1669 0.3 0.1 10164 3284 ? Ss 20:19 0:00 \_ sshd: root@pts/0
root 1801 0.2 0.0 4652 1408 pts/0 Ss 20:19 0:00 \_ -bash
root 3088 0.1 6.7 248932 211140 ? Ssl 14:23 0:22 /usr/sbin/clamd
clamav 3102 0.1 0.0 17884 1776 ? Ss 14:23 0:27 /usr/bin/freshclam -d
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
rpc 2461 0.0 0.0 1928 528 ? Ss 14:22 0:00 portmap