mysqld 与 python 邮件监控脚本 内存消耗对比

top - 21:38:40 up 1 day, 10:38, 5 users, load average: 0.00, 0.01, 0.17
Tasks: 88 total, 1 running, 87 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.3 sy, 0.0 ni, 99.0 id, 0.3 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 1016244 total, 138636 free, 259328 used, 618280 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 582520 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28588 mysql 20 0 984928 118872 7732 S 0.3 11.7 0:40.30 mysqld
693 root 20 0 562412 16484 5772 S 0.0 1.6 0:13.37 tuned
326 root 20 0 53276 15492 15172 S 0.0 1.5 0:06.66 systemd-journal
12685 daemon 20 0 258796 12596 4020 S 0.0 1.2 0:00.53 httpd
891 daemon 20 0 258808 12576 4004 S 0.0 1.2 0:00.52 httpd
6257 daemon 20 0 258788 12536 3980 S 0.0 1.2 0:00.45 httpd
24605 daemon 20 0 258800 12532 3984 S 0.0 1.2 0:00.49 httpd
6246 daemon 20 0 258788 12468 3920 S 0.0 1.2 0:00.22 httpd
6258 daemon 20 0 258788 12464 3924 S 0.0 1.2 0:00.13 httpd
457 polkitd 20 0 536348 12284 4792 S 0.0 1.2 0:03.77 polkitd
887 daemon 20 0 258284 12052 3992 S 0.0 1.2 0:00.44 httpd
456 root 20 0 279788 11956 7000 S 0.0 1.2 0:07.80 rsyslogd
24610 daemon 20 0 258276 11876 3960 S 0.0 1.2 0:00.54 httpd
888 daemon 20 0 257060 11284 4284 S 0.0 1.1 0:00.46 httpd
1215 root 20 0 608364 10368 2072 S 0.0 1.0 5:22.19 barad_agent
1214 root 20 0 164516 9316 1972 S 0.0 0.9 1:15.93 barad_agent
6255 daemon 20 0 255880 9216 3652 S 0.0 0.9 0:00.15 httpd
849 root 20 0 253256 7940 3180 S 0.0 0.8 0:03.72 httpd
1208 root 20 0 155220 7552 1048 S 0.0 0.7 0:01.86 barad_agent
13890 root 20 0 341472 6568 4588 S 0.0 0.6 0:00.01 abrt-dbus
3962 root 20 0 146068 5680 3968 S 0.0 0.6 0:01.48 sshd
13519 root 20 0 126584 5492 2488 S 0.0 0.5 0:00.06 python3
7801 root 20 0 151300 5224 2788 S 0.0 0.5 0:00.21 vim
4014 root 20 0 145724 5220 3952 S 0.0 0.5 0:00.04 sshd
4132 root 20 0 145724 5220 3960 S 0.0 0.5 0:00.03 sshd
691 root 20 0 105996 4108 3128 S 0.0 0.4 0:00.58 sshd
1 root 20 0 51468 3708 2520 S 0.0 0.4 0:26.78 systemd
5398 root 20 0 116552 3324 1792 S 0.0 0.3 0:00.27 bash
5481 root 20 0 116452 3292 1776 S 0.0 0.3 0:00.19 bash
3965 root 20 0 116452 3284 1776 S 0.0 0.3 0:00.08 bash
4018 root 20 0 116452 3264 1768 S 0.0 0.3 0:00.04 bash
[root@VM_61_158_centos ~]#

原文地址:https://www.cnblogs.com/rsapaper/p/8284486.html