httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Gingras <francois.ging...@gmail.com>
Subject Re: [users@httpd] Apache processes
Date Wed, 11 Mar 2009 16:11:06 GMT
John,

prefork and worker are mutually exclusive. When apache is compiled, one 
is picked. In order to change the MPM, apache must be recompiled.

See the output from httpd -V

Frank.

John Hudak wrote:
> On a related question (and not to hijack this thread too much...)...In
> the file apache2.conf
> there are two sections that determine the server operation, prefork
> MPM and worker MPM.
> Where (how?) is the decision made to set either mpm_prefork_module
> TRUE or mpm_worker_module TRUE?
> It is my understanding that these approaches are mutually exclusive
> when Apache is launched. Correct?
> 
> -John
> 
> 
> On Wed, Mar 11, 2009 at 12:00 PM, Frank Gingras
> <francois.gingras@gmail.com> wrote:
>> Andrew,
>>
>> Well, WinNT uses a different MPM model. There is a parent process, and a
>> 'child' process that has internal threads, visible from mod_status. On
>> linux, those would show up as separate processes.
>>
>> See http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers
>>
>> Frank.
>>
>> Andrew Hole wrote:
>>> Thanks.
>>> But I just see 2 processes on task manager, not 63!!! Are there threads?
>>>
>>> MPM is commented. Where can i find the pre-set directives values?
>>> # Server-pool management (MPM specific)
>>> #Include conf/extra/httpd-mpm.conf
>>>
>>> Thanks
>>>
>>> On Wed, Mar 11, 2009 at 3:49 PM, Frank Gingras <francois.gingras@gmail.com
>>> <mailto:francois.gingras@gmail.com>> wrote:
>>>
>>>    Andrew,
>>>
>>>    You may have not set those, but apache ships with pre-set
>>>    directives. Open your config files, and see what those directives
>>>    are set to.
>>>
>>>    Idle workers are processes which are not responding to any HTTP
>>>    request at the moment.
>>>
>>>    Frank.
>>>
>>>    Andrew Hole wrote:
>>>
>>>        I dont have configured any of that directives. There is any
>>>        default configuration?
>>>
>>>        And about server-status:
>>>
>>>        Parent Server Generation: 2
>>>
>>>        1 requests currently being processed, 63 idle workers
>>>
>>>
>>>        What's mean parent server generation and idle workers?
>>>
>>>        Thanks a lot
>>>
>>>
>>>
>>>        On Wed, Mar 11, 2009 at 3:34 PM, Frank Gingras
>>>        <francois.gingras@gmail.com <mailto:francois.gingras@gmail.com>
>>>        <mailto:francois.gingras@gmail.com
>>>        <mailto:francois.gingras@gmail.com>>> wrote:
>>>
>>>           Andrew,
>>>
>>>           See the StartServers / MinSpareServers directives.
>>>
>>>           Frank.
>>>
>>>
>>>           Andrew Hole wrote:
>>>
>>>               Hi!
>>>
>>>               By default in version 2.2 how many child processes are
>>>        created
>>>               at apache
>>>               startup? When is created another one?
>>>
>>>               Thanks
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>>           The official User-To-User support forum of the Apache HTTP
>>> Server
>>>           Project.
>>>           See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>           To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>        <mailto:users-unsubscribe@httpd.apache.org>
>>>           <mailto:users-unsubscribe@httpd.apache.org
>>>        <mailto:users-unsubscribe@httpd.apache.org>>
>>>
>>>            "   from the digest:
>>>        users-digest-unsubscribe@httpd.apache.org
>>>        <mailto:users-digest-unsubscribe@httpd.apache.org>
>>>           <mailto:users-digest-unsubscribe@httpd.apache.org
>>>        <mailto:users-digest-unsubscribe@httpd.apache.org>>
>>>
>>>           For additional commands, e-mail: users-help@httpd.apache.org
>>>        <mailto:users-help@httpd.apache.org>
>>>           <mailto:users-help@httpd.apache.org
>>>        <mailto:users-help@httpd.apache.org>>
>>>
>>>
>>>
>>>    ---------------------------------------------------------------------
>>>    The official User-To-User support forum of the Apache HTTP Server
>>>    Project.
>>>    See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>    To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>    <mailto:users-unsubscribe@httpd.apache.org>
>>>     "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>    <mailto:users-digest-unsubscribe@httpd.apache.org>
>>>    For additional commands, e-mail: users-help@httpd.apache.org
>>>    <mailto:users-help@httpd.apache.org>
>>>
>>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message