免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1539 | 回复: 2
打印 上一主题 下一主题

各位老大,apache服务器网页访问速度变得非常的慢! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-08-05 12:17 |只看该作者 |倒序浏览
服务器安装软件:
apache
mysql
php

一直以来运行的非常良好,没有任何问题,现在访问速度突然变得非常慢!

top看内存使用情况也不多:

12:22:53  up 33 min,  1 user,  load average: 0.00, 0.00, 0.00
62 processes: 61 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  cpu    user    nice  system    irq  softirq  iowait    idle
           total    0.2%    0.0%    0.2%   0.0%     0.0%    0.1%   99.5%
           cpu00    0.4%    0.0%    0.4%   0.0%     0.0%    0.2%   99.0%
           cpu01    0.0%    0.0%    0.0%   0.0%     0.0%    0.0%  100.0%
Mem:   511912k av,   79728k used,  432184k free,       0k shrd,   12560k buff
        51080k active,              10936k inactive
Swap: 1044184k av,       0k used, 1044184k free                   32776k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
1813 mysql     15   0 11252  10M  1836 S     0.2  2.1   0:00   0 mysqld
1515 root      15   0   448  448   388 S     0.1  0.0   0:00   0 irqbalance
7464 root      15   0  1188 1188   904 R     0.1  0.2   0:01   0 top
    1 root      15   0   512  512   456 S     0.0  0.1   0:04   1 init
    2 root      RT   0     0    0     0 SW    0.0  0.0   0:00   0 migration/0
    3 root      RT   0     0    0     0 SW    0.0  0.0   0:00   1 migration/1
    4 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 keventd
    5 root      34  19     0    0     0 SWN   0.0  0.0   0:00   0 ksoftirqd/0
    6 root      34  19     0    0     0 SWN   0.0  0.0   0:00   1 ksoftirqd/1
    9 root      25   0     0    0     0 SW    0.0  0.0   0:00   1 bdflush
    7 root      15   0     0    0     0 SW    0.0  0.0   0:00   1 kswapd
    8 root      15   0     0    0     0 SW    0.0  0.0   0:00   1 kscand
   10 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kupdated
   11 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 mdrecoveryd
   17 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 ahc_dv_0
   18 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 ahc_dv_1
   19 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 scsi_eh_0
   20 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 scsi_eh_1
   23 root      15   0     0    0     0 SW    0.0  0.0   0:00   1 kjournald
   78 root      25   0     0    0     0 SW    0.0  0.0   0:00   1 khubd
  588 root      22   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
  589 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 kjournald
1501 root      15   0   680  680   588 S     0.0  0.1   0:00   0 syslogd
1505 root      15   0   460  460   404 S     0.0  0.0   0:00   0 klogd
1523 rpc       15   0   616  616   540 S     0.0  0.1   0:00   1 portmap
1542 rpcuser   25   0   816  816   716 S     0.0  0.1   0:00   1 rpc.statd


各位老大,可以访问看看,机器运行速度没有问题,但就是网页的访问特别慢
http://www.zzti.edu.cn

我们的主页服务器呀,招生期间出这种问题,我担待不起呀!
有没有可能被攻击!
怎么判断?
谢谢各位,小弟在线等待了

论坛徽章:
0
2 [报告]
发表于 2004-08-05 12:23 |只看该作者

各位老大,apache服务器网页访问速度变得非常的慢!

ps 进程列表如下:

ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 11:49 ?        00:00:04 init
root         2     0  0 11:49 ?        00:00:00 [migration/0]
root         3     0  0 11:49 ?        00:00:00 [migration/1]
root         4     1  0 11:49 ?        00:00:00 [keventd]
root         5     1  0 11:49 ?        00:00:00 [ksoftirqd/0]
root         6     1  0 11:49 ?        00:00:00 [ksoftirqd/1]
root         9     1  0 11:49 ?        00:00:00 [bdflush]
root         7     1  0 11:49 ?        00:00:00 [kswapd]
root         8     1  0 11:49 ?        00:00:00 [kscand]
root        10     1  0 11:49 ?        00:00:00 [kupdated]
root        11     1  0 11:49 ?        00:00:00 [mdrecoveryd]
root        17     1  0 11:49 ?        00:00:00 [ahc_dv_0]
root        18     1  0 11:49 ?        00:00:00 [ahc_dv_1]
root        19     1  0 11:49 ?        00:00:00 [scsi_eh_0]
root        20     1  0 11:49 ?        00:00:00 [scsi_eh_1]
root        23     1  0 11:49 ?        00:00:00 [kjournald]
root        78     1  0 11:49 ?        00:00:00 [khubd]
root       588     1  0 11:50 ?        00:00:00 [kjournald]
root       589     1  0 11:50 ?        00:00:00 [kjournald]
root      1501     1  0 11:50 ?        00:00:00 syslogd -m 0
root      1505     1  0 11:50 ?        00:00:00 klogd -x
root      1515     1  0 11:50 ?        00:00:00 irqbalance
rpc       1523     1  0 11:50 ?        00:00:00 portmap
rpcuser   1542     1  0 11:50 ?        00:00:00 rpc.statd
root      1641     1  0 11:50 ?        00:00:00 cupsd
root      1680     1  0 11:50 ?        00:00:00 /usr/sbin/sshd
root      1693     1  0 11:50 ?        00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      1709     1  0 11:50 ?        00:00:00 gpm -t ps/2 -m /dev/mouse
root      1718     1  0 11:50 ?        00:00:00 crond
xfs       1752     1  0 11:50 ?        00:00:00 xfs -droppriv -daemon
daemon    1761     1  0 11:50 ?        00:00:00 /usr/sbin/atd
root      1773     1  0 11:50 ?        00:00:06 /usr/local/apache2/bin/httpd -k start
root      1774     1  0 11:50 ?        00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe
root      1781     1  0 11:50 tty1     00:00:00 /sbin/mingetty tty1
root      1782     1  0 11:50 tty2     00:00:00 /sbin/mingetty tty2
root      1783     1  0 11:50 tty3     00:00:00 /sbin/mingetty tty3
root      1784     1  0 11:50 tty4     00:00:00 /sbin/mingetty tty4
root      1785     1  0 11:50 tty5     00:00:00 /sbin/mingetty tty5
root      1786     1  0 11:50 tty6     00:00:00 /sbin/mingetty tty6
mysql     1805  1774  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1806  1805  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1807  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1808  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1809  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1810  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1812  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1813  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1814  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
mysql     1815  1806  0 11:50 ?        00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/da
root      5730  1680  0 11:59 ?        00:00:00 sshd: zc [priv]
zc        5795  5730  0 11:59 ?        00:00:00 sshd: zc@pts/0
zc        5796  5795  0 11:59 pts/0    00:00:00 -bash
root      5837  5796  0 11:59 pts/0    00:00:00 su
root      5875  5837  0 11:59 pts/0    00:00:00 bash
nobody   15976  1773  0 12:28 ?        00:00:00 /usr/local/apache2/bin/httpd -k start
nobody   16059  1773  1 12:29 ?        00:00:00 [httpd <defunct>;]
root     16060  5875  0 12:29 pts/0    00:00:00 ps -ef

论坛徽章:
0
3 [报告]
发表于 2004-08-05 15:55 |只看该作者

各位老大,apache服务器网页访问速度变得非常的慢!

哈哈,找到原因,三个月没有动那台机器,原来apache的日志达到了2g,所以就特别的慢了!
把日志挪走就没事了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP