logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4.3,should add mpm module?
Author
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sat 25 Aug '12 0:50    Post subject: Apache 2.4.3,should add mpm module? Reply with quote

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

PostPosted: Sun 26 Aug '12 12:38    Post subject: Reply with quote

Unless you are using linux / unix witht event mpm there is no use for that mpm settings Wink
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

PostPosted: Mon 27 Aug '12 7:37    Post subject: Reply with quote

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.
Very Happy
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Mon 27 Aug '12 10:39    Post subject: Reply with quote

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.
Very Happy


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

PostPosted: Mon 27 Aug '12 20:48    Post subject: Reply with quote

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

PostPosted: Mon 27 Aug '12 22:39    Post subject: Reply with quote

Does it mean to add "FileETag INode MTime Size" directive to .htaccess to enable etag? Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 27 Aug '12 22:54    Post subject: Reply with quote

it can be set in server config, virtual host, directory or .htaccess
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Tue 28 Aug '12 9:58    Post subject: Reply with quote

Does it need to add some parameters ?

James Blond wrote:
it can be set in server config, virtual host, directory or .htaccess
Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 28 Aug '12 10:40    Post subject: Reply with quote

directive -->FileETag
parameters -->INode MTime Size

please do the RTFM for FileETag <-- Link Wink
Back to top
maskego



Joined: 16 Apr 2010
Posts: 238

PostPosted: Sun 09 Sep '12 3:16    Post subject: Reply with quote

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

PostPosted: Mon 10 Sep '12 18:13    Post subject: Reply with quote

I've putted it on the end of my httpd.conf
Back to top


Reply to topic   Topic: Apache 2.4.3,should add mpm module? View previous topic :: View next topic
Post new topic   Forum Index -> Apache