|
小弟新做一台SERV.
配置大致如下
FreeBSD 4.10 relase ,已升致4.11 stable
重编内核:
WEB是环境
apache 1.33 + php 4.10 + mysql 4.1.8 + zend 2.5.7
apache mod:
mod_gzip.so/libphp4.so/mod_dosevasive.so/mod_limitipconn.so
设置虚拟主机
http://www.lostcity.cn #用IPB2.03源码并Zend加密
检测:
httpd -T == 正常
php -m == 正常
启用环境:
sockstats -4 == 80 port正常开放
user可以进行访问,运行几分钟后
通过top观查:httpd 确占用大量的资源,WEB访问非常慢
last pid: 1916; load averages: 2.27, 1.00, 0.46 up 0+04:34:30 17:53:25
52 processes: 6 running, 46 sleeping
CPU states: 85.9% user, 0.0% nice, 14.1% system, 0.0% interrupt, 0.0% idle
Mem: 360M Active, 468M Inact, 130M Wired, 45M Cache, 112M Buf, 1684K Free
Swap: 2032M Total, 272M Used, 1760M Free, 13% Inuse
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND
1908 httpd 2 0 69176K 57932K sbwait 1 0:11 31.83% 26.03% httpd
1844 httpd 52 0 69548K 59564K RUN 0 0:26 29.40% 19.63% httpd
1909 httpd 50 0 68936K 56932K RUN 0 0:05 22.45% 14.99% httpd
1135 mysql 2 0 46628K 4116K poll 0 0:28 13.33% 13.33% mysqld
1849 httpd 53 0 69572K 61424K CPU1 1 0:34 12.79% 12.79% httpd
1856 httpd 2 0 69100K 0K sbwait 1 0:10 28.64% 11.28% <httpd>
1835 httpd 2 0 69024K 1616K accept 1 0:11 25.44% 9.23% httpd
1848 root 41 0 1996K 788K CPU0 0 0:04 7.76% 7.76% top
1910 httpd 51 0 69028K 57080K RUN 1 0:02 35.52% 6.45% httpd
1893 httpd 50 0 68944K 18516K RUN 0 0:02 15.99% 6.30% httpd
1857 httpd 2 0 69156K 1500K accept 1 0:21 13.19% 4.79% httpd
1853 httpd 2 0 69160K 1752K accept 1 0:21 7.81% 2.83% httpd
1850 httpd 2 0 69160K 1592K accept 0 0:31 0.00% 0.00% httpd
1851 httpd 2 0 69180K 1704K sbwait 1 0:21 0.00% 0.00% httpd
1847 httpd 2 0 69052K 1700K sbwait 1 0:21 0.00% 0.00% httpd
1846 httpd 2 0 69172K 1432K accept 1 0:21 0.00% 0.00% httpd
1837 httpd 2 0 69140K 0K sbwait 1 0:11 0.00% 0.00% <httpd>
大家帮我看看,问题出在哪?
另,该虚拟主机已正常运行在RH 7.3下有一段时间.现是将数据导过来的.并进行myisamchk --recover |
|