The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

apache bench reports slow speed on cpanel services

Discussion in 'Workarounds and Optimization' started by Mike St, Sep 16, 2014.

  1. Mike St

    Mike St Member

    Joined:
    Jul 21, 2014
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Here's my issue.

    I have a dedicated dual-core centos 2.8Ghz server with 2GB ram and 4GB swap space. On a super busy day about 100MB swap is used but
    I haven't seen that in a while. Now the usage is at about 16MB.

    I did some server load testing to the cpanel whm manager (via port 2086) from a machine about 75km away from the data center as follows (I replaced the word IP with my actual IP address in my tests):

    I tried to test 15 connections at once 15 times: ab -c 15 -n 15 IP:2086/

    This is my result:

    Benchmarking IP (be patient).....done


    Server Software: cpsrvd/11.42.1.17
    Server Hostname: IP
    Server Port: 2086

    Document Path: /
    Document Length: 1909 bytes

    Concurrency Level: 15
    Time taken for tests: 3.51874 seconds
    Complete requests: 15
    Failed requests: 0
    Write errors: 0
    Non-2xx responses: 15
    Total transferred: 35850 bytes
    HTML transferred: 28635 bytes
    Requests per second: 4.92 [#/sec] (mean)
    Time per request: 3051.874 [ms] (mean)
    Time per request: 203.458 [ms] (mean, across all concurrent requests)
    Transfer rate: 11.47 [Kbytes/sec] received

    Connection Times (ms)
    min mean[+/-sd] median max
    Connect: 8 15 4.8 16 24
    Processing: 31 664 1221.3 88 3027
    Waiting: 29 661 1221.4 85 3025
    Total: 39 679 1224.0 105 3051

    Percentage of the requests served within a certain time (ms)
    50% 104
    66% 109
    75% 119
    80% 3038
    90% 3044
    95% 3051
    98% 3051
    99% 3051
    100% 3051 (longest request)

    This makes me think my server is handling requests very slowly. Its trying to tell me that it takes over 3 seconds to process 12 requests, but for 10 requests it takes 1/10th of a second.

    Apache can't be the problem unless whm relies on it to function.
    I think theres some TCP/IP setting I overlooked. Can anyone help me?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,694
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I just wanted to point out that cPanel version 11.42.1.17 is outdated. Please ensure you are using at least 11.42.1.26 if you prefer to remain on the 11.42 version.

    Thank you.
     
  3. gopkris2005

    gopkris2005 Well-Known Member

    Joined:
    Jan 9, 2007
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    INDIA
    cPanel Access Level:
    Root Administrator
    Twitter:
    If possible, try to benchmark your apache prefork settings or try proxy webservers ( apache + nginx )
     
  4. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page