vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Keep alive on or off (https://vborg.vbsupport.ru/showthread.php?t=322167)

the one 03-19-2016 04:48 AM

Keep alive on or off
 
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

Quote:

Originally Posted by RichieBoy67 (Post 2567624)
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

Quote:

Originally Posted by the one (Post 2567625)
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

Yeah, 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

Quote:

Originally Posted by AusPhotography (Post 2567629)
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)

Code:

#
# 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

Quote:

Originally Posted by final kaoss (Post 2567641)
Here is what I have for my vps (it has 1GB ram)

Code:

#
# 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

Quote:

Originally Posted by the one (Post 2567620)
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.


All times are GMT. The time now is 02:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01405 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete