Can apache handle those requests? If yes why it gives timeout?

Discussion in 'Apache' started by ASTRAPI, Oct 6, 2010.

  1. #1
    Hello

    I have a very powerfull server :

    # 2x Intel Xeon Quad 5405
    # 16 GB FB DDR2 RAM
    # Raid 10 sas 4x disks 15k
    # 1.000 port

    Cpanel server with csf firewall on it.

    And i host a forum with about 300 users per minute and i got an error connection time out and i think the problem is Apache as it seems not able to handle many requests...


    Thank you



    SOME STATS:

    Ipb forum.

    My server:

    top shows:
    80% cpu unused
    8gb ram unused

    httpd -v:

    Server version: Apache/2.2.14 (Unix)

    php -v

    PHP 5.2.12 and i use fcgi

    php.ini:

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;

    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 256M ; Maximum amount of memory a script may consume (32MB)

    vmstat:

    procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
    r b swpd free buff cache si so bi bo in cs us sy id wa st
    5 0 0 7609604 214000 1723612 0 0 8 69 47 40 26 9 65 0 0

    iostat:

    avg-cpu: %user %nice %system %iowait %steal %idle
    26.33 0.08 8.72 0.23 0.00 64.64

    Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
    sda 87.40 129.82 1095.99 2927058 24711096
    sda1 1.41 6.83 35.45 153978 799392
    sda2 3.32 28.34 146.51 638882 3303312
    sda3 78.72 87.58 736.27 1974594 16600536
    sda4 0.00 0.00 0.00 8 0
    sda5 0.00 0.05 0.00 1166 0
    sda6 0.09 0.16 1.49 3615 33560
    sda7 3.85 6.83 176.27 154087 3974296

    mysqladmin processlist |wc -l :

    41


    netstat -an |grep :80 |wc -l :

    4844
     
    ASTRAPI, Oct 6, 2010 IP
  2. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I notice that on my firefox when is loading it says down on the left connectig to mydomain.com for many seconds and then starts to load all text and images if that helps...
     
    ASTRAPI, Oct 6, 2010 IP
  3. Derek Zeanah

    Derek Zeanah Well-Known Member Premium Member

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #3
    I'd look into the Apache configuration and see if that's not where your problem lies.
     
    Derek Zeanah, Oct 7, 2010 IP