Jump to content

A lot of apache processes


Recommended Posts

Hello

I am using a cpanel server and i use the nginx plugin and nginx in front of apache with prefork.

I use :

StartServers 8
MinSpareServers 10
MaxSpareServers 10
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 20000
KeepAlive on
KeepAliveTimeout 5
MaxKeepAliveRequests 100
TimeOut 300


I use also xcache and spinx :)

But i am getting many :

/usr/local/apache/bin/httpd -k start -DSSL

And the server is loading a lot like 20 and sometimes 200 :(

If i have online 350 users per minute....

Any ideas?

Thank you

Link to comment
Share on other sites

Change the following:

As a suggestion :P



StartServers 5


MinSpareServers 10


MaxSpareServers 10


ServerLimit 250


MaxClients 156


MaxRequestsPerChild 10000


KeepAlive on


KeepAliveTimeout 2


MaxKeepAliveRequests 100


TimeOut 100



Apache runs best on keep alive 2 and will kill / start spawns as requested
Link to comment
Share on other sites

Thanks i will try them :)

Another recommendation for my setup so nginx will do more (i am not sure if it is true):

StartServers 8
MinSpareServers 2
MaxSpareServers 5
MaxClients 80
MaxRequestsPerChild 0

What do you think?

Also from where i must edit them?

As i was easy apache and i was check prefork.

So i must edit here? :
Main >> Service Configuration >> Apache Configuration >> Global Configuration

Or the prefork settings that i use from:

Main >> Service Configuration >> Apache Configuration >> Include Editor - Pre VirtualHost Include

Are they the same?

Confused.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...