Author |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Sat 25 Aug '12 0:50 Post subject: Apache 2.4.3,should add mpm module? |
|
|
Should add mpm module(as below shows) at httpd.conf of apache 2.4.3 to increase the performance if I use mod_fcgid to run php scripts already?
# event MPM
# StartServers: initial number of server processes to start
# 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
# MaxRequestWorkers: maximum number of worker threads
# MaxConnectionsPerChild: maximum number of connections a server process serves
# before terminating
<IfModule mpm_event_module>
StartServers 3
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 0
</IfModule> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sun 26 Aug '12 12:38 Post subject: |
|
|
Unless you are using linux / unix witht event mpm there is no use for that mpm settings
For windows you want to use this
<IfModule mpm_winnt_module>
ThreadsPerChild 150
MaxRequestsPerChild 0
</IfModule>
Since there is only one child process on Windows the number of ThreadsPerChild is the number of concurrent connections.
Also it helps to use KeepAlive and of cause deflate. And right configured ETags also help to increase the performance. |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Mon 27 Aug '12 7:37 Post subject: |
|
|
What's the right configuration of apache2.4.x?Can you show the config of what you setting now?
James Blond wrote: | And right configured ETags also help to increase the performance. | |
|
Back to top |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Mon 27 Aug '12 10:39 Post subject: |
|
|
maskego wrote: | What's the right configuration of apache2.4.x?Can you show the config of what you setting now?
James Blond wrote: | And right configured ETags also help to increase the performance. | |
I'm interested with ETags as well. Could you tell us more about it ? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 27 Aug '12 20:48 Post subject: |
|
|
From Wikipedia
Quote: | An ETag or entity tag, is part of HTTP, the protocol for the World Wide Web. It is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. |
So can reduce the number of requests to your server which increases the speed.
How I configured it (warning it is in german)
apache 2.4 docs
Last edited by James Blond on Mon 27 Aug '12 22:52; edited 2 times in total |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Mon 27 Aug '12 22:39 Post subject: |
|
|
Does it mean to add "FileETag INode MTime Size" directive to .htaccess to enable etag? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 27 Aug '12 22:54 Post subject: |
|
|
it can be set in server config, virtual host, directory or .htaccess |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Tue 28 Aug '12 9:58 Post subject: |
|
|
Does it need to add some parameters ?
James Blond wrote: | it can be set in server config, virtual host, directory or .htaccess | |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 28 Aug '12 10:40 Post subject: |
|
|
directive -->FileETag
parameters -->INode MTime Size
please do the RTFM for FileETag <-- Link |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Sun 09 Sep '12 3:16 Post subject: |
|
|
It needs to load below,right?
Code: | LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule auth_digest_module modules/mod_auth_digest.so
|
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 10 Sep '12 18:13 Post subject: |
|
|
I've putted it on the end of my httpd.conf |
|
Back to top |
|