Apache服务器和sysctl优化的问题
我服务器上放了一个APP,不知道为什么,我在手机里访问这个应用,一会比较顺畅,一会不顺畅,不顺畅时就感觉在等待加载。我用的是Apache的mpm,具体参数如下:<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 250
MaxConnectionsPerChild 0
</IfModule>
sysctl.conf如下:
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
vm.swappiness = 0
net.ipv4.neigh.default.gc_stale_time = 120
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.default.arp_announce = 2
net.ipv4.conf.all.arp_announce = 2
net.ipv4.tcp_max_tw_buckets = 15000
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_synack_retries = 2
net.ipv4.conf.lo.arp_announce=2
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 30
这里应该可以排除服务器带宽的问题,我的带宽是20M独享,单台,并发也不大,如下图,看有大神帮我分析下不?
期待回复!谢谢
本帖最后由 clifftree 于 2015-05-15 11:38 编辑
高峰时就这样了 总感觉fin_wait2导致了客户端经常等待! 为何不从客户端ip入手查找相关问题? 看过apache日志,发现有些个别几个IP一天访问我们这个应用的上千次,能说明什么吗?
页:
[1]