robdog
Well-known member
I have an 8GB Linode server and I do not believe its resource are getting properly allocated. I am running Apache Benchmark with the following command:
ab -kc 100 -n 1000 http://www.mydomain.com/
It completes, but I only get 9 requests/second. Which IMO is pretty bad. The one thing I notice while running the top command is that the memory usage did not go about 3GB. (leaving 5GB is reserve ready to use) However, the CPU utilization when through the roof. And the home page has maybe 5-6 MySQL queries. (which I could reduce down to about 1-2, but anyways.)
Here are some of my Apache conf settings:
Would increasing the number of Apache server help with the crazy CPU utilization and response times? Or is there another Apache setting that I should look at?
Also, here are some of my MySQL settings:
Finally, I am running Ubuntu 12.04 64-bit.
Thanks for any input!
ab -kc 100 -n 1000 http://www.mydomain.com/
It completes, but I only get 9 requests/second. Which IMO is pretty bad. The one thing I notice while running the top command is that the memory usage did not go about 3GB. (leaving 5GB is reserve ready to use) However, the CPU utilization when through the roof. And the home page has maybe 5-6 MySQL queries. (which I could reduce down to about 1-2, but anyways.)
Here are some of my Apache conf settings:
Code:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
Would increasing the number of Apache server help with the crazy CPU utilization and response times? Or is there another Apache setting that I should look at?
Also, here are some of my MySQL settings:
Code:
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
query_cache_limit = 1M
query_cache_size = 16M
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
Finally, I am running Ubuntu 12.04 64-bit.
Thanks for any input!