efuzone

Well-Known Member
Mar 17, 2011
92
1
58
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

efuzone

Well-Known Member
Mar 17, 2011
92
1
58
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.
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Server load average also become 40+, 60+, 120+
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.