View Full Version : Keep alive on or off
the one
03-19-2016, 04:48 AM
Hi Everyone,
I am trying to make my website better and i noticed in my apache global file that the option keep alive was turned off.
Would you suggest i turn this on or not.I am with interserver and they are really good
Many thanks
RichieBoy67
03-19-2016, 05:52 AM
I would turn it on and see if you see improvements. You will have to enable it in your includes/config file as well.
the one
03-19-2016, 05:59 AM
I would turn it on and see if you see improvements. You will have to enable it in your includes/config file as well.
Many thanks
Its turned off for now but i did turn it on before and ran a test on that website and all the red x turned to green so all looked ok.
I could not see an option for this though in my config.php file though
Many thanks
RichieBoy67
03-19-2016, 06:21 AM
Many thanks
Its turned off for now but i did turn it on before and ran a test on that website and all the red x turned to green so all looked ok.
I could not see an option for this though in my config.php file though
Many thanksYeah, my bad.. do not think that is in there any more.
AusPhotography
03-19-2016, 08:15 AM
Depends on memory and other Apache config.
If you have the resources turn it on.
You need to balance Server Limit / Max Request Workers
and Keep-Alive
RichieBoy67
03-19-2016, 09:11 AM
Depends on memory and other Apache config.
If you have the resources turn it on.
You need to balance Server Limit / Max Request Workers
and Keep-Alive
I figured if he turned it on and saw improvements that would be a start. :)
the one
03-19-2016, 02:07 PM
These are my settings below
Start Servers [?] 5 default
Minimum Spare Servers [?] 5 default
Maximum Spare Servers [?] 10 default
Server Limit (Maximum: 20,000) [?] 256 default
Max Clients [?] 150 default
Max Requests Per Child [?] 10000 default
Keep-Alive [?] On
Keep-Alive Timeout [?] 5 default
Max Keep-Alive Requests [?] Unlimited 100 default
Timeout [?] 300 default
All the above are set to the default is this ok or would you suggest anything else
Many thanks
final kaoss
03-19-2016, 03:44 PM
Here is what I have for my vps (it has 1GB ram)
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 5
MinSpareServers 10
MaxSpareServers 20
ServerLimit 10
MaxClients 150
MaxRequestsPerChild 300
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 5
MaxClients 75
MinSpareThreads 1
MaxSpareThreads 4
ThreadsPerChild 150
MaxRequestsPerChild 300
</IfModule>
the one
03-19-2016, 03:56 PM
Here is what I have for my vps (it has 1GB ram)
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15
##
## Server-Pool Size Regulation (MPM specific)
##
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 5
MinSpareServers 10
MaxSpareServers 20
ServerLimit 10
MaxClients 150
MaxRequestsPerChild 300
</IfModule>
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 5
MaxClients 75
MinSpareThreads 1
MaxSpareThreads 4
ThreadsPerChild 150
MaxRequestsPerChild 300
</IfModule>
Many thanks i have 75 gb ram so i hope i am getting the most from it
Paul M
03-19-2016, 04:04 PM
Would you suggest i turn this on or not.I am with interserver and they are really good
Turn it on, there isnt any good reason not to.
final kaoss
03-19-2016, 04:09 PM
I think that you are confusing ram with disk space (or as they call it "storage")... Interserver has a max of 16 GB for their vps at a price of $96 a month.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.