当前位置:论坛首页 > Linux面板 > 求助

apache 网站基本每间隔4天 服务器就死机 非常准时

发表在 Linux面板2018-5-17 17:39 [复制链接] 7 2863

4核8G内存,网站IP  4000左右 5M独享宽带  数据20万 动态网站,几个月之前配置没这个好  也是死机  现在我升级配置了也死机
我刚才看了下 apache日志

[Wed May 16 16:57:22.930201 2018] [lbmethod_heartbeat:notice] [pid 2168] AH02282: No slotmem from mod_heartmonitor
[Wed May 16 16:57:22.930337 2018] [core:warn] [pid 2168] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed May 16 16:57:22.930398 2018] [ssl:warn] [pid 2169] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed May 16 16:57:22.931072 2018] [lbmethod_heartbeat:notice] [pid 2169] AH02282: No slotmem from mod_heartmonitor
[Wed May 16 16:57:22.931204 2018] [core:warn] [pid 2169] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed May 16 16:57:22.932586 2018] [mpm_prefork:notice] [pid 2168] AH00163: Apache/2.4.25 (Unix) OpenSSL/1.0.2l configured -- resuming normal operations
[Wed May 16 16:57:22.932662 2018] [core:notice] [pid 2168] AH00094: Command line: '/www/server/apache/bin/httpd'
[Wed May 16 16:57:22.933721 2018] [mpm_prefork:notice] [pid 2169] AH00163: Apache/2.4.25 (Unix) OpenSSL/1.0.2l configured -- resuming normal operations
[Wed May 16 16:57:22.933788 2018] [core:notice] [pid 2169] AH00094: Command line: '/www/server/apache/bin/httpd'
[Thu May 17 01:36:17.375657 2018] [ssl:warn] [pid 2148] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu May 17 01:36:17.375993 2018] [ssl:warn] [pid 2149] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu May 17 01:36:17.438730 2018] [lbmethod_heartbeat:notice] [pid 2149] AH02282: No slotmem from mod_heartmonitor
[Thu May 17 01:36:17.438915 2018] [core:warn] [pid 2149] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 17 01:36:17.439264 2018] [lbmethod_heartbeat:notice] [pid 2148] AH02282: No slotmem from mod_heartmonitor
[Thu May 17 01:36:17.439427 2018] [core:warn] [pid 2148] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 17 01:36:17.442181 2018] [mpm_prefork:notice] [pid 2149] AH00163: Apache/2.4.25 (Unix) OpenSSL/1.0.2l configured -- resuming normal operations
[Thu May 17 01:36:17.442254 2018] [core:notice] [pid 2149] AH00094: Command line: '/www/server/apache/bin/httpd'
[Thu May 17 01:36:17.444064 2018] [mpm_prefork:notice] [pid 2148] AH00163: Apache/2.4.25 (Unix) OpenSSL/1.0.2l configured -- resuming normal operations
[Thu May 17 01:36:17.444131 2018] [core:notice] [pid 2148] AH00094: Command line: '/www/server/apache/bin/httpd'



使用道具 举报 只看该作者 回复
发表于 2018-5-17 17:41:53 | 显示全部楼层
TIM截图20180517174051.png TIM截图20180517174106.png
使用道具 举报 回复 支持 反对
发表于 2018-5-17 18:59:38 | 显示全部楼层
4000IP按理说1G内存都可以跑起来,数据太多?程序的问题?
使用道具 举报 回复 支持 反对
发表于 2018-5-17 19:57:40 | 显示全部楼层
nilkkk 发表于 2018-5-17 18:59
4000IP按理说1G内存都可以跑起来,数据太多?程序的问题?

都是cpu  容易100% 死机
如何解决? 能看到相关死机时候日志么
使用道具 举报 回复 支持 反对
发表于 2018-5-17 20:15:56 | 显示全部楼层
大连网龙科技 发表于 2018-5-17 19:57
都是cpu  容易100% 死机
如何解决? 能看到相关死机时候日志么

CPU是动态查询,或者被CC了,推荐用Nginx然后程序能静态化就静态化,动态比较吃性能,静态基本不调用数据库也没有什么CPU消耗
使用道具 举报 回复 支持 反对
发表于 2018-5-17 21:02:23 | 显示全部楼层
nilkkk 发表于 2018-5-17 20:15
CPU是动态查询,或者被CC了,推荐用Nginx然后程序能静态化就静态化,动态比较吃性能,静态基本不调用数据 ...

好的谢谢
Nginx相比Apache性能好?稳定被?
是安装好宝塔 当时推荐我安装Apache的
使用道具 举报 回复 支持 反对
发表于 2018-5-23 17:44:01 | 显示全部楼层
今天凌晨又死机了。。。有没有什么好的办法???
使用道具 举报 回复 支持 反对
发表于 2018-5-23 17:59:48 | 显示全部楼层
像是被CC了吧,怎么那么高的流量进服务器?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表