dounuo1881 2014-07-20 05:48
浏览 542

在高性能服务器上缓慢Apache响应时间

My server enviroment: CENTOS 6.5 x86_64, apache 2.2.27 with prefork module with PHP 5.2.17 (cli). and this server for 1 streaming video site (like youtube) and i have problem with Apache response time and i think the problem with httpd.conf file. so anybody can help me to config Apache?

SERVER SPECS:

  • Intel Xeon 2x E5-2650v2
  • Cores/threads: 16c/32t
  • Frequency/burst: 2,6 GHz+/3,4 GHz+
  • RAM: 128 GB DDR3 ECC 1600MHz
  • Hard disks: 3 x 2 TB SATA3 6 Gbps with Hardware RAID 5 (MegaRAID LSI 9271-4i CacheVault 1 GB)
  • Guaranteed bandwidth: 500 Mbps

currently apache configured as follows:

  • Start Servers 5
  • Minimum Spare Servers 5
  • Maximum Spare Serves 10
  • Server Limit 8192
  • Max clients 4800
  • Max Requests per Child 10000
  • Keep-Alive Timeout 5
  • Max Keep Alive requests 100 default
  • Timeout 300 default

I use a suphp PHP 5 Handler and Apache suEXEC is On.

the website receives about 40-60k visitors daily (120-180k Impressions/day)

Apache response time becomes slow when Online users becomes more than 200,

Thanks in advance :)

  • 写回答

2条回答 默认 最新

  • dqdl6469 2014-07-28 02:27
    关注

    Maybe your website slows down because of a database limitation? If you say with 200 users, it looks like a default limit of MyŚQL.

    Are you sure it is related to apache?

    If you somewhere not close the connections in a good way, it can run out of connections

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大