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 聚类分析或者python进行数据分析
  • ¥15 如何用visual studio code实现html页面
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?