httpd 和 mysqld 記憶體不足

httpd 和 mysqld 記憶體不足

我為我的 Centos VPS 選擇 512mb 內存,新網站的流量非常低。當我使用 top 指令時:

2981 root 20 0 37176 10m 6440 S 0.0 2.1 0:00.15 httpd
2983 apache 20 0 37176 5244 724 S 0.0 1.0 0:00.00 httpd
2984 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd
2985 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd
2986 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd
2987 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd
2988 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd
2989 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd
2990 apache 20 0 37176 5228 708 S 0.0 1.0 0:00.00 httpd

為什麼httpd,mysqld,named運行多次?在 htop 中,mysqld 運行多次,並且 mysqld 運行以下命令:

/usr/libexec/mysqld --basedir=/usr/ --datadir=/var/lib/mysql --user=mysql --log 所有進程的使用百分比總和約為 50-60%,而我的 ram 應該使用 250 MB,而不是 500 MB!我該怎麼辦?

相關內容