Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

服务器问题求助

[复制链接]
libertine 发表于 2007-1-22 17:15:13 | 显示全部楼层 |阅读模式
服务器两台

web:志强2.4 SCSI 80GG+40GIDE  2G内存

DB: 志强2.8 SCSI 150G*3  raid5

运行论坛:discuz 5

遇到的问题: 偶尔瞬间负载升高,高到服务器连不上,必须重启web服务器才正常,DB负载非常低,这个偶尔一般是一天一次或两次,都是在访问人数比较高的时候

一般的访问在线人数15分钟内3500-4200,用户活跃数非常高,基本在线的都是活跃的

重启后在/var/log/message 里的错误日志

  Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [MLIB] had invalid type (Integer) for Scope operator, change
d to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [IO__] had invalid type (Integer) for Scope operator, change
d to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [DATA] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [SIO_] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [SB__] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [PM__] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [ICNT] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [ACPI] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [IORG] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [SB__] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [PM__] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [SIO_] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [PM__] had invalid type (String) for Scope operator, changed
to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [BIOS] had invalid type (Integer) for Scope operator, change
d to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [CMOS] had invalid type (Integer) for Scope operator, change
d to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [KBC_] had invalid type (Integer) for Scope operator, change
d to (Scope)
Jan 22 16:51:02 web kernel:     ACPI-0584: *** Warning: Type override - [OEM_] had invalid type (Integer) for Scope operator, change

在dmesg 里的日志

    ACPI-0584: *** Warning: Type override - [SIO_] had invalid type (String) for Scope operator, changed to (Scope)
    ACPI-0584: *** Warning: Type override - [PM__] had invalid type (String) for Scope operator, changed to (Scope)
    ACPI-0584: *** Warning: Type override - [BIOS] had invalid type (Integer) for Scope operator, changed to (Scope)
    ACPI-0584: *** Warning: Type override - [CMOS] had invalid type (Integer) for Scope operator, changed to (Scope)
    ACPI-0584: *** Warning: Type override - [KBC_] had invalid type (Integer) for Scope operator, changed to (Scope)
    ACPI-0584: *** Warning: Type override - [OEM_] had invalid type (Integer) for Scope operator, changed to (Scope)

还不清楚是否因该日志引起

apache采用prework模式
<IfModule prefork.c>
ServerLimit        1000
StartServers        5
MinSpareServers     5
MaxSpareServers     10
MaxClients         800
MaxRequestsPerChild  0
</IfModule>

现在一直被这个问题困扰,希望有经验的网管人员给予帮助,本人实在查不出原因


另:正常运行的时候负载也偏高,只是论坛访问还非常快就是,以下是白天普遍都是这样的
[root@web ~]# uptime
17:13:31 up 23 min,  1 user,  load average: 42.11, 30.22, 19.18
[root@web ~]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
2  0      0 223456  54576 660164    0    0   236   148 1704  1397 51 11 35  2

[root@web ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          2026       1728        297          0         54        659
-/+ buffers/cache:       1014       1011
Swap:         2047          0       2047
cnfreeos 发表于 2007-1-22 18:03:56 | 显示全部楼层
后台关闭一些耗费资源的设置.关闭部分用户的搜索.
另你的系统是freebsd吧,试着关闭acpi.
把apahce的timeout参数调小些比如30,keep alive关掉
还有帖出你的内核配置.还有sysctl.conf的内容。
回复

使用道具 举报

千兆科技 发表于 2007-1-22 18:54:29 | 显示全部楼层
你看看是不是你放什么东西了
回复

使用道具 举报

 楼主| libertine 发表于 2007-1-22 23:04:54 | 显示全部楼层
sysctl.conf内容

[root@web httpd-2.0.55]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

#net.ipv4.netfilter.ip_conntrack_tcp_timeout_syn_recv = 3
#net.ipv4.tcp_syncookies = 1
#net.ipv4.tcp_max_syn_backlog = 8192
#net.ipv4.tcp_fin_timeout = 30
#net.ipv4.tcp_keepalive_time = 1800
#net.ipv4.tcp_window_scaling = 0
#net.ipv4.tcp_sack = 0
#net.ipv4.tcp_timestamps = 0

系统是AS4的,内核是 2.6.9.5 内核版本低了点,全文搜索什么的都关了,占资源的东西也能关的尽量关了
回复

使用道具 举报

千兆原工 发表于 2007-1-23 14:48:56 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| libertine 发表于 2007-1-24 10:54:31 | 显示全部楼层
原帖由 千兆原工 于 2007-1-23 14:48 发表
看看自己的站点的盗连接是不是很多



是的,看了日志很多盗链的,虽然apache里做了防盗链,对方显示是叉叉的符号,但是因为盗链apache就多做了处理,日志也不断写入,所以负载高

封了几个大的盗链站后,负载低了比较多,虽然还是偏高点
回复

使用道具 举报

千兆原工 发表于 2007-1-25 14:08:28 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| libertine 发表于 2007-1-25 16:07:05 | 显示全部楼层
也不完全是,服务器负载还是很高,不过暂时还没发现突然升高到连不上的情况,昨天晚上宕了一次,那时不在电脑前,直接叫机房重启了,看日志是无法重写httpd.pid,应该不是这个问题

现在把附件给独立出来使用独立域名放到DB服务器上去


已经考虑增加一台web服务器

但是只增加一台的情况下怎样架构是个问题,有没有人给意见啊

数据存储用NFS好象性能很差
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-1-27 07:08 , Processed in 0.023936 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表