Jump to content

A lot of apache processes


Recommended Posts

Posted

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

Posted

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
Posted

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.

Posted

You edit:

Service Configuration >> Apache Configuration >> Global Configuration



Nginx believe or not can increase loads depending on the apache setup.

Try disable it and use the keep alive setting I said and check the difference.
Posted

Ok the problem seems to be a scan from Acunnetix vulnerability scanner that is loading many thousands of exploits to test on the server :(

And the firewall was not block it :(

Posted

You need to disable the functions in apache.

Also disable: "allow_url_fopen" this will stop data being pulled from locations.

whats your current disabled functions ?

Archived

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

  • Recently Browsing   0 members

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