免费注册 查看新帖 |

Chinaunix

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

[系统管理] apache 卡死,求教大神 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-03-18 17:24 |只看该作者 |倒序浏览
网站这两天apache老卡死,下面是连接数,请问有问题吗?
  1. [root@mall ~]# netstat -an | awk '/^tcp/ { ++S[$NF] } END {for(a in S) print a,S[a]}'
  2. LAST_ACK 3
  3. LISTEN 9
  4. SYN_RECV 2
  5. CLOSE_WAIT 116
  6. ESTABLISHED 533
  7. FIN_WAIT2 2
  8. TIME_WAIT 36
  9. [root@ mall ~]# netstat -an | awk '/^tcp/ { ++S[$NF] } END {for(a in S) print a,S[a]}'
  10. LAST_ACK 3
  11. LISTEN 9
  12. CLOSE_WAIT 117
  13. ESTABLISHED 534
  14. FIN_WAIT1 1
  15. TIME_WAIT 39
  16. [root@ mall ~]# netstat -an | awk '/^tcp/ { ++S[$NF] } END {for(a in S) print a,S[a]}'
  17. LAST_ACK 2
  18. LISTEN 9
  19. CLOSE_WAIT 118
  20. ESTABLISHED 533
  21. FIN_WAIT1 1
  22. TIME_WAIT 29
复制代码

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2014-03-19 09:33 |只看该作者
看不出有什么问题阿,帮顶

论坛徽章:
0
3 [报告]
发表于 2014-03-19 18:04 |只看该作者
回复 2# jackyyen


    apache同时开启77个进程算多吗?

错误日志里面很多这种请求
[Thu Mar 13 18:42:57 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/1.zip
[Thu Mar 13 18:42:58 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/2.zip
[Thu Mar 13 18:42:59 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/3.zip
[Thu Mar 13 18:43:00 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/wwwroot.zip
[Thu Mar 13 18:43:01 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/www.zip
[Thu Mar 13 18:43:02 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/web.zip
[Thu Mar 13 18:43:03 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/fenxiao.worldmall.cn.zip
[Thu Mar 13 18:43:03 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/fenxiaoworldmallcn.zip
[Thu Mar 13 18:43:04 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/worldmall.cn.zip
[Thu Mar 13 18:43:05 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/worldmall.zip
[Fri Mar 14 01:02:28 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/db.zip
[Fri Mar 14 01:02:28 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/wz.zip
[Fri Mar 14 01:02:29 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/fdsa.zip
[Fri Mar 14 01:02:29 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/wangzhan.zip
[Fri Mar 14 01:02:29 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/root.zip
[Fri Mar 14 01:02:29 2014] [error] [client 183.64.253.204] File does not exist: /var/local/worldmall/worldmall/admin.zip

论坛徽章:
4
戌狗
日期:2014-10-12 21:48:202015年辞旧岁徽章
日期:2015-03-03 16:54:15IT运维版块每日发帖之星
日期:2015-06-09 22:20:002016猴年福章徽章
日期:2016-02-18 15:30:34
4 [报告]
发表于 2014-03-19 22:32 |只看该作者
183.64.253.204 这个是不是合法ip ?不过不是通过iptables限制访问。貌似这个地址在做恶意尝试

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2014-03-20 08:52 |只看该作者
这个是下载文件的节奏么

论坛徽章:
0
6 [报告]
发表于 2014-03-24 09:28 |只看该作者
回复 4# typuc


    限制了这个IP,不过后面的IP就都在变化了。

论坛徽章:
0
7 [报告]
发表于 2014-03-24 21:08 |只看该作者
是不是用的shopex的软件?

论坛徽章:
4
戌狗
日期:2014-10-12 21:48:202015年辞旧岁徽章
日期:2015-03-03 16:54:15IT运维版块每日发帖之星
日期:2015-06-09 22:20:002016猴年福章徽章
日期:2016-02-18 15:30:34
8 [报告]
发表于 2014-03-24 22:16 |只看该作者
iptables限制每个ip的连接数

论坛徽章:
0
9 [报告]
发表于 2014-03-24 23:21 |只看该作者
才500多ESTABLISHED ,

服务器什么配置的? 纯粹的apache,还是还有php mysql什么的?

贴下下面命令的输出:
free -m
vmstat 5 5

论坛徽章:
0
10 [报告]
发表于 2014-03-26 11:33 |只看该作者
本帖最后由 a741423206 于 2014-03-26 11:33 编辑

回复 9# yanu
  1. [root@worldmall www.test.cn]# free -m
  2.              total       used       free     shared    buffers     cached
  3. Mem:          7977       4029       3947          0        457       3184
  4. -/+ buffers/cache:        387       7589
  5. Swap:         4095          0       4095

  6. -----------------------

  7. [root@worldmall www.test.cn]# vmstat 5 5
  8. procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
  9. r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
  10. 0  0      0 4041056 468696 3261032    0    0     1     8    1    4  1  0 99  0  0       
  11. 2  0      0 4042076 468700 3261060    0    0     0    89  237  376  1  0 99  0  0       
  12. 0  0      0 4041000 468700 3261068    0    0     0    60  203  336  1  0 99  0  0       
  13. 0  0      0 4044304 468704 3261068    0    0     6    63  164  226  0  0 99  0  0       
  14. 0  0      0 4044428 468704 3261104    0    0     0     4  114  108  0  0 100  0  0
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP