I am sorry, I have no clue about Apache on Windows and how it handles the FastCGI dll. I know on Linux this is not an issue. I do know however there is some registry information that pertains to max servers and other settings when used against IIS.
<br><br>HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI<br><br>The Rock<br><br><br><div><span class="gmail_quote">On 7/17/07, <b class="gmail_sendername">Scott, Brian</b> &lt;<a href="mailto:ScottB@talgov.com">ScottB@talgov.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div>
<div><span><font color="#0000ff" face="Arial" size="2">Hi The 
Rock - </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">Great 
name.&nbsp; We are running Apache, not IIS.&nbsp; Below is the fastcgi 
configuration section from the httpd.conf file.&nbsp; </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div><span>
<div><span></span><font face="Arial"><font color="#0000ff"><font size="2">*<span>*********************************************************************************************</span></font></font></font><br><font color="#0000ff" face="Arial" size="2">
FastCgiConfig -idle-timeout 120 -startDelay 1 
-minProcesses 4 -maxClassProcesses 40 -multiThreshold 100 -singleThreshold 100 
-killInterval 600<br>FastCgiServer &quot;C:/Program 
Files/MapGuideOpenSource/WebServerExtensions/php/php-cgi.exe&quot; -processes 4 
-idle-timeout 120 -initial-env PHP_FCGI_MAX_REQUESTS=500 -initial-env 
PHP_FCGI_CHILDREN=1</font></div>
<div><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div>
<div><font color="#0000ff" face="Arial" size="2">#Start PHP FastCGI 
config<br>ScriptAlias /php/ &quot;C:/Program 
Files/MapGuideOpenSource/WebServerExtensions/php/&quot;<br>&lt;Directory &quot;C:/Program 
Files/MapGuideOpenSource/WebServerExtensions/php&quot;&gt;<br>&nbsp;&nbsp;&nbsp; 
Options ExecCGI<span>&nbsp;</span><br>&nbsp;&nbsp;&nbsp; AddHandler 
fastcgi-script exe<br>&lt;/Directory&gt;<br>Action application/x-httpd-php5 
&quot;/php/php-cgi.exe&quot;<br>AddType application/x-httpd-php5 .php<br>#End PHP FastCGI 
Config</font></div>
<div><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div>
<div><font color="#0000ff" face="Arial" size="2">#Start PHP Config<br>#ScriptAlias 
/php/ &quot;C:/Program Files/MapGuideOpenSource/WebServerExtensions/php/&quot;<br>#Action 
application/x-httpd-php &quot;/php/php-cgi.exe&quot;<br>#AddType application/x-httpd-php 
.php<br>#End PHP Config</font></div>
<div><font color="#0000ff" face="Arial" size="2"><span>*******************************************************************************************</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">I&#39;m 
not too hip on FastCGI configuration, is there a mechanism to run as a process 
instead of an instance per process by modifying this configuration? 
</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">Thanks 
for your help. </font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">brian</font></span></div>
<div><font color="#0000ff" face="Arial" size="2"></font></div></span>&nbsp;</div>
<blockquote><div><span class="e" id="q_113d4b2b32bf40d3_1">
  <div dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> 
  <a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapguide-users-bounces@lists.osgeo.org</a> 
  [mailto:<a href="mailto:mapguide-users-bounces@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapguide-users-bounces@lists.osgeo.org</a>]<b>On Behalf Of </b>Rock 
  Beans<br><b>Sent:</b> Tuesday, July 17, 2007 9:30 AM<br><b>To:</b> MapGuide 
  Users Mail List<br><b>Subject:</b> Re: [mapguide-users] MapAgent.exe persists 
  after browser close<br><br></font></div>Make sure your using the FastCGI for 
  the PHP and FCGI extentions within IIS. This allows the php-cgi.exe and 
  mapagent.exe to be run as a process vs. a new instance per process.<br><br>The 
  Rock<br><br><br>
  <div><span class="gmail_quote">On 7/17/07, <b class="gmail_sendername">nicholda</b> &lt;<a href="mailto:nicholda@talgov.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">nicholda@talgov.com</a>
&gt; wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Thanks 
    for your response Kenneth,<br><br>Our issue seems to be that the 
    functionality we are trying to provide winds<br>up creating additional 
    MapAgent.exe processes as a result of a 
    successful<br>run.&nbsp;&nbsp;Essentially we are opening the map, creating 
    serveral new layers with <br>1 to many points on each one, pushing the 
    layers into the map, then storing<br>the map back in the repository with the 
    users sesssion.<br><br>The report looks great.&nbsp;&nbsp;However, when the 
    map refreshes, it creates a new<br>MapAgent.exe process.&nbsp;&nbsp;So, if 
    we create 40 reports, we reach max class<br>processes reached and then have 
    to manually go in and start killing<br>processes / restarting 
    MapGuide.<br><br>The code we are using was taken / modified from the 
    development guide; I can <br>tell you that we are not doing anything 
    explicity to close any of the<br>resource or feature services created; is 
    there a chance that a simple<br>featureService.close() or something related 
    could keep this from happening? <br>Or does the creation of new layers on 
    the fly necessitate the creation of a<br>new MapAgent.exe process and our 
    only option includes kicking the timeout<br>down from 120 
    seconds.<br><br>Any and all insight is appreciated. 
    <br><br>Thanks,<br>David<br><br><br>Kenneth, GEOGRAF A/S 
    wrote:<br>&gt;<br>&gt; I belive that MapAgent.exe is supposed to keep 
    running.<br>&gt; IIS/Apache will load/unload fastCGI, to avoid continously 
    reloading<br>&gt; MapAgent.exe .<br>&gt;<br>&gt; If you are using WinXP IIS, 
    you are likely refering to the IIS<br>&gt; connection limit on 
    WinXP.<br>&gt; You can increase the number of allowed connections to 
    40.<br>&gt; Instructions can be found here: <br>&gt; <a href="http://weblogs.asp.net/cazzu/archive/2003/10/10/31476.aspx" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://weblogs.asp.net/cazzu/archive/2003/10/10/31476.aspx
</a><br>&gt;<br>&gt; 
    Regards, Kenneth, GEOGRAF A/S<br>&gt;<br>&gt;<br>&gt;<br>&gt; nicholda 
    skrev: <br>&gt;&gt; Hi All,<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp; I am having 
    trouble with MapAgent.exe, after closing the web browser<br>&gt;&gt; 
    MapAgent.exe is still running in the background.&nbsp;&nbsp;Eventually I hit 
    the<br>&gt;&gt; max<br>&gt;&gt; number of connections and can&#39;t make another 
    connection until I manually <br>&gt;&gt; end<br>&gt;&gt; the MapAgent 
    processes running in the background.&nbsp;&nbsp;I am running MGOS 
    1.2.<br>&gt;&gt; Could someone point me in the right direction for resolving 
    this issue.<br>&gt;&gt;<br>&gt;&gt; Thanks,<br>&gt;&gt; 
    David<br>&gt;&gt;<br>&gt; 
    _______________________________________________<br>&gt; mapguide-users 
    mailing list<br>&gt; <a href="mailto:mapguide-users@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapguide-users@lists.osgeo.org</a><br>&gt; 
    <a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>&gt;<br>&gt;<br><br>
--<br>View 
    this message in context: <a href="http://www.nabble.com/MapAgent.exe-persists-after-browser-close-tf4090604s16610.html#a11648611" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/MapAgent.exe-persists-after-browser-close-tf4090604s16610.html#a11648611
</a><br>Sent 
    from the MapGuide Users mailing list archive at <a href="http://Nabble.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nabble.com</a>.<br><br>_______________________________________________ 
    <br>mapguide-users mailing list<br><a href="mailto:mapguide-users@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapguide-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.osgeo.org/mailman/listinfo/mapguide-users 
    </a><br></blockquote></div><br><br><br><br><br></span></div>************************************************************************************<br>This 
  footnote confirms that this email message has been scanned by<br>PineApp 
  Mail-SeCure for the presence of malicious code, vandals &amp; computer 
  viruses.<br>************************************************************************************<br><br><br></blockquote>


<br>
<br>
 <br>
 <br>
************************************************************************************<br>
This footnote confirms that this email message has been scanned by<br>
PineApp Mail-SeCure for the presence of malicious code, vandals &amp; computer viruses.<br>
************************************************************************************<br>
<br>
<br>
<br>_______________________________________________<br>mapguide-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br><br></blockquote></div>
<br>