Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 35611 invoked from network); 8 Sep 2003 12:37:01 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Sep 2003 12:37:01 -0000 Received: (qmail 82435 invoked by uid 500); 8 Sep 2003 12:36:45 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 82396 invoked by uid 500); 8 Sep 2003 12:36:44 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 82366 invoked from network); 8 Sep 2003 12:36:44 -0000 Received: from unknown (HELO secure.exclamationlabs.net) (66.77.29.186) by daedalus.apache.org with SMTP; 8 Sep 2003 12:36:44 -0000 Received: from modperlcookbook.org (pcp04156113pcs.walngs01.pa.comcast.net [68.81.89.216]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id h88Caf232609; Mon, 8 Sep 2003 07:36:41 -0500 Message-ID: <3F5C77D4.2000304@modperlcookbook.org> Date: Mon, 08 Sep 2003 08:36:36 -0400 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org, gaganpuri@infosys.com Subject: Re: getting MPM model of apache web server References: <2B721C6525F0D411B1E900B0D0226BDD03218942@mohmsg01.ad.infosys.com> In-Reply-To: <2B721C6525F0D411B1E900B0D0226BDD03218942@mohmsg01.ad.infosys.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Gagan Puri wrote: > Hi All, > > I have an application in which I need to check whether the apache server > is prefork based or worker MPM based. How can I get the model info from > web server in my application. Normal commad line way to check this is by > simply giving the command apachectl -V. Is there any apache specific api > which gives info regading the MPM model of apache web server server. see ap_mpm_query. for an example of its use, try http://marc.theaimsgroup.com/?l=apache-httpd-dev&m=106086674806449&w=2 you can also read through this thread http://marc.theaimsgroup.com/?t=105688560200001&r=1&w=2 for ideas on why it's probably better to test for the existence of threads as a server property, versus a specific mpm model like worker. HTH --Geoff