Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache Optimizations

Discussion in 'Workarounds and Optimization' started by efuzone, May 7, 2018.

  1. efuzone

    efuzone Well-Known Member

    Joined:
    Mar 17, 2011
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    Hello,

    I have a Dedicated Server machine which has 36GB of Ram, 256GB SSD, Dual Xeon 5520 Processor with total 16 threads.

    I have hosted there just a single domain which has only one single php file script and one json file. Json file get weather data through API every 10 minutes and php script has banner which show weather. This banner is used in google adwords and we are getting good traffic. But server get slow when 5000, 6000 traffic comes together. I was expecting more with this server configuration. I thought it is maybe apache optimization issue thats why i am sharing here my configuration to get better solutions.

    Start Servers: 5
    Minimum Spare Servers: 5
    Maximum Spare Servers: 20 I set, It was 10.
    Server Limit: I setup 15,000
    Max Request Workers: 10,000
    Max Connections Per Child: 20,000
    Keep-Alive Timeout: 2
    Max Keep-Alive Requests: 100
    Timeout: 300

    I keep watching top command it is processing 30 40 requests and rest 5000, 6000 on sleep.

    Server load average also become 40+, 60+, 120+

    If i enable php-fpm what settings i must set there like child etc..

    Please tell me how to make optimizations. I shall be thankful to you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @efuzone,

    I'll leave this thread open for user-feedback, but I did want to note that you may want to look into optimizing the PHP and JSON scripts since that's the only website hosted on the server. StackOverflow is a useful website for discussion of those types of optimizations. You can enter the following term in Google to get a list of discussions that may help:

    "Optimize JSON PHP site:stackoverflow.com".

    We also provide a list of companies offering system administration services should you not receive sufficient user-feedback to this thread:

    System Administration Services | cPanel Forums

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. efuzone

    efuzone Well-Known Member

    Joined:
    Mar 17, 2011
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Root Administrator
    Dear Sir,

    I appreciate your reply but about script it is fully optimized and size of script file is just 1-2kb thats it.. Reason to post this issue here is to get atleast proper settings which are better for my server and get suggestion. I have modified settings which i wanted to confirm. I hope you understand sir.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @efuzone,

    If the load average is reaching between 40 and 120, then I don't know that any amount of Apache optimization will help. It's a good idea to first determine what's causing the high load average. We provide a thread to help provide you with steps you can use to diagnose the cause of the high load average at:

    Troubleshooting high server loads on Linux servers

    Could you review this thread and let us know what you find?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice