Forum Moderators: phranque

Message Too Old, No Replies

Tuning Apache on Dual Quad Core

quad core tuning apache

         

miteno

8:25 pm on Sep 22, 2008 (gmt 0)

10+ Year Member



Hello !

I have quite strong server, Dell Poweredge: Dual quad core, fast SAS 15k disks and 16GB RAM, os: Gentoo Linux, 64 bit.
I'm wondering why is my server so slow in peak times.

i get about 3000 tasks, 6GB used out of 16GB, load 1,16

some pages are loading very slow, especially pictures, sometimes it doesn't load pics, i get page ok after 3rd refresh, sometimes pics are not loaded and so on...

i tried to play with apache settings, but still cant get it working on full resources...

i'm running Prefork MPM,
last config is

<IfModule mpm_prefork_module>
StartServers 400
MinSpareServers 100
MaxSpareServers 400
ServerLimit 4000
MaxClients 4000
MaxRequestsPerChild 2000
</IfModule>
KeepAliveTimeout 12
KeepAlive On
MaxKeepAliveRequests 0

Can someone tell me how to speed up site a bit more , i wanna focus more on CPU, cuz it seems like using only 10, 20% of CPU resources ...
Seems like there's no way to make more load...

jdMorgan

2:57 am on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not much of a "tuner," but the first thing I would ask is why do you have KeepAlive turned off -- MaxKeepAliveRequests set to 0 and KeepAliveTimeout set to 12?

This forces the client to open a new HTTP connection for each and every object on your pages, instead of "pipelining" them through one connection.

I'd set the KeepAliveTimeout to at least 10 seconds, and set the MaxKeepAliveRequests to at least 32.

Have you read the Performance Tuning [httpd.apache.org] documentation at Apache.org?

Jim

miteno

11:59 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



thank you for your reply,
Keepalive i have turned on, because with off it goes very very slow, cuz users can open new pages in new window...

maxkeepaiverequests:
i have read if its set to 0, then its unlimited

i finally got paid help from support in datacenter haus. maybe sometime can this thread help to someone else:

they told me that /proc/sys/net/netfilter/nf_conntrack_max increased to 250 000, i had 65 000, and also wrote in /etc/sysctl.conf

server was busting that limit of packets, increasing that value fixed all lost packets and server can finally run on full resources...

i'm sure i'd never find it out by myself...

jdMorgan

1:00 am on Sep 24, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad you got an answer -- I'm not sure we could have figured that out here...

Jim