Author |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Tue 28 Jun '11 10:15 Post subject: need to install prefork module? |
|
|
Is there anyone who can share the experience and performance about prefork module at apache 2.X?And,what is the best value setting of prefork module?
regards |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 28 Jun '11 10:34 Post subject: |
|
|
prefork is only on Linux and unix systems. Do you use some kinda *nix system? If yes, which one? |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Thu 30 Jun '11 2:18 Post subject: |
|
|
No.I don't use those kinds of OS.
If I use win32 OS,set the prefork module will not work finally?Or is there any other harm for win 32 OS?
James Blond wrote: | prefork is only on Linux and unix systems. Do you use some kinda *nix system? If yes, which one? |
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 30 Jun '11 9:39 Post subject: |
|
|
it simply isn't available on Windows. On Windows you have no choise using a different mpm.
What kind of improvement do you wanna have? Isn't winnt mpm running well for you? |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Sat 02 Jul '11 10:35 Post subject: |
|
|
James Blond:
Does it inbuilt prefork module at winNT or win32 apache?I don't know what you mean.Can you explain ?Where can I find the winnt of mpm?
I want to use prefork module to reduce the increasing memory comsumption when apache is running.
I use winNT task to monitor the consumption of memory.I find the httpd.exe consumes the 350MB of memory.Is it normally? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sat 02 Jul '11 12:19 Post subject: |
|
|
350 looks high.
What are you running with apache ?
For example running php as module consumes over time quite some memory. For a compare when running php not as module but FastCGI, see post http://www.apachelounge.com/viewtopic.php?t=2492
There are other advantages running PHP with FCGI. Separating the PHP code from the web server removes 'bloat' from the main server, and improves the performance of non-PHP requests. Secondly, having one permanent PHP process as opposed to one per apache process means that shared resources like persistent MySQL connections are used more efficiently. And maybe even more important is stability, php is not shutting down or restarting Apache anymore.
Steffen |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Sun 03 Jul '11 5:21 Post subject: |
|
|
steffen:
Thank your suggestion.
I try to use this configuration below.Is it right?
And,how do I know fcgid module be well configured and runing already?Is there any way to test it or not?
Code: |
<IfModule mod_fcgid.so>
FcgidInitialEnv PHPRC "c:/php"
FcgidInitialEnv PATH "c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:/WINDOWS/Temp"
FcgidInitialEnv TMP "C:/WINDOWS/Temp"
FcgidInitialEnv windir "C:/WINDOWS"
FcgidIOTimeout 64
FcgidConnectTimeout 16
FcgidMaxRequestsPerProcess 500
<Files ~ "\.php$>"
AddHandler fcgid-script .php
FcgidWrapper "c:/php/php-cgi.exe" .php
</Files>
</IfModule>
|
|
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Sun 03 Jul '11 10:28 Post subject: |
|
|
Another question:
Does the old bugs be sloved at mod_fcgid 2.3.6?Will mod_fcgid 2.3.6 cause some problems or apache crashed under OS no restart situation?
http://www.apachelounge.com/viewtopic.php?t=3573
regards |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Mon 04 Jul '11 6:15 Post subject: |
|
|
Those errors show at error.log.
How to tune [Mon Jul 04 12:12:58 2011] [error] [client 127.0.0.1] File does not exist: C:/apache/www/ADSAdClient31.dll ?
Code: | [Mon Jul 04 12:11:46 2011] [notice] Apache/2.2.19 (Win32) PHP/5.2.17 mod_fcgid/2.3.6 configured -- resuming normal operations
[Mon Jul 04 12:11:46 2011] [notice] Server built: May 21 2011 17:38:08
[Mon Jul 04 12:11:46 2011] [notice] Parent: Created child process 3576
[Mon Jul 04 12:11:46 2011] [notice] Child 420: Released the start mutex
[Mon Jul 04 12:11:46 2011] [notice] Child 3576: Child process is running
[Mon Jul 04 12:11:46 2011] [notice] Child 3576: Acquired the start mutex.
[Mon Jul 04 12:11:46 2011] [notice] Child 3576: Starting 64 worker threads.
[Mon Jul 04 12:11:46 2011] [notice] Child 3576: Starting thread to listen on port 80.
[Mon Jul 04 12:11:47 2011] [notice] Child 420: All worker threads have exited.
[Mon Jul 04 12:11:52 2011] [notice] Child 420: Child process is exiting
[Mon Jul 04 12:12:58 2011] [error] [client 127.0.0.1] File does not exist: C:/apache/www/ADSAdClient31.dll
[Mon Jul 04 12:12:58 2011] [error] [client 127.0.0.1] File does not exist: C:/apache/www/ADSAdClient31.dll |
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 04 Jul '11 8:19 Post subject: |
|
|
put the ADSAdClient31.dll in the C:/apache/www/ADSAdClient31.dll
not really sure you should, but that would remove that one error |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Mon 04 Jul '11 8:34 Post subject: |
|
|
I can't find "ADSAdClient31.dll" at my apache folders.It's so strange.
glsmith wrote: | put the ADSAdClient31.dll in the C:/apache/www/ADSAdClient31.dll
not really sure you should, but that would remove that one error |
|
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 04 Jul '11 8:57 Post subject: |
|
|
well, it looks like you are trying to request it with a browser, why I have no clue, what it is I have no clue.
or
do you have a
LoadFile C:/apache/www/ADSAdClient31.dll
somewhere in your config? |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Mon 04 Jul '11 11:39 Post subject: |
|
|
I check that.There is no other conf files to config this file.I have no idea about this file too.
glsmith wrote: | well, it looks like you are trying to request it with a browser, why I have no clue, what it is I have no clue.
or
do you have a
LoadFile C:/apache/www/ADSAdClient31.dll
somewhere in your config? |
Last edited by maskego on Mon 04 Jul '11 11:42; edited 1 time in total |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Mon 04 Jul '11 11:41 Post subject: |
|
|
And,Does mod_fcgid 2.3.6 run smooth at win 32 apache 2.2.19?I am afraid of apache getting crashed after install this module. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 04 Jul '11 12:41 Post subject: |
|
|
Search Google with ADSAdClient31.dll and you see a lot of hits.
To be sure how it goes in your situation with mod_fcgid, you should test it. PHP as module has far more chance for craching then mod_fcgid, experience here tells us.
Steffen |
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Tue 05 Jul '11 2:36 Post subject: |
|
|
steffen:
Do you mean mod_fcid is more stable to perform php scrpits than mod_php?
Steffen wrote: | Search Google with ADSAdClient31.dll and you see a lot of hits.
To be sure how it goes in your situation with mod_fcgid, you should test it. PHP as module has far more chance for craching then mod_fcgid, experience here tells us.
Steffen |
|
|
Back to top |
|
maskego
Joined: 16 Apr 2010 Posts: 238
|
Posted: Tue 05 Jul '11 9:24 Post subject: |
|
|
I install mod_fcgid.
The memory usage is higher still.It keeps at 400 MB average,and max value is 800MB that I ever seen.
I guess the reason is that mod_security consume more memory resource.It needs to parse the log files,I think. |
|
Back to top |
|