<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff size=2>Hi The
Rock - </FONT></SPAN></DIV>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff size=2>Great
name. We are running Apache, not IIS. Below is the fastcgi
configuration section from the httpd.conf file. </FONT></SPAN></DIV>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><SPAN class=410335714-17072007>
<DIV><SPAN class=410335714-17072007></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>*<SPAN
class=410335714-17072007>*********************************************************************************************</SPAN></FONT></FONT></FONT><BR><FONT
face=Arial color=#0000ff size=2>FastCgiConfig -idle-timeout 120 -startDelay 1
-minProcesses 4 -maxClassProcesses 40 -multiThreshold 100 -singleThreshold 100
-killInterval 600<BR>FastCgiServer "C:/Program
Files/MapGuideOpenSource/WebServerExtensions/php/php-cgi.exe" -processes 4
-idle-timeout 120 -initial-env PHP_FCGI_MAX_REQUESTS=500 -initial-env
PHP_FCGI_CHILDREN=1</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>#Start PHP FastCGI
config<BR>ScriptAlias /php/ "C:/Program
Files/MapGuideOpenSource/WebServerExtensions/php/"<BR><Directory "C:/Program
Files/MapGuideOpenSource/WebServerExtensions/php"><BR>
Options ExecCGI<SPAN
class=410335714-17072007> </SPAN><BR> AddHandler
fastcgi-script exe<BR></Directory><BR>Action application/x-httpd-php5
"/php/php-cgi.exe"<BR>AddType application/x-httpd-php5 .php<BR>#End PHP FastCGI
Config</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>#Start PHP Config<BR>#ScriptAlias
/php/ "C:/Program Files/MapGuideOpenSource/WebServerExtensions/php/"<BR>#Action
application/x-httpd-php "/php/php-cgi.exe"<BR>#AddType application/x-httpd-php
.php<BR>#End PHP Config</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=410335714-17072007>*******************************************************************************************</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff size=2>I'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 class=410335714-17072007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff size=2>Thanks
for your help. </FONT></SPAN></DIV>
<DIV><SPAN class=410335714-17072007><FONT face=Arial color=#0000ff
size=2>brian</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org]<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> <<A
href="mailto:nicholda@talgov.com">nicholda@talgov.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><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. 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. However, when the
map refreshes, it creates a new<BR>MapAgent.exe process. 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>><BR>> I belive that MapAgent.exe is supposed to keep
running.<BR>> IIS/Apache will load/unload fastCGI, to avoid continously
reloading<BR>> MapAgent.exe .<BR>><BR>> If you are using WinXP IIS,
you are likely refering to the IIS<BR>> connection limit on
WinXP.<BR>> You can increase the number of allowed connections to
40.<BR>> Instructions can be found here: <BR>> <A
href="http://weblogs.asp.net/cazzu/archive/2003/10/10/31476.aspx">http://weblogs.asp.net/cazzu/archive/2003/10/10/31476.aspx</A><BR>><BR>>
Regards, Kenneth, GEOGRAF A/S<BR>><BR>><BR>><BR>> nicholda
skrev: <BR>>> Hi All,<BR>>><BR>>> I am having
trouble with MapAgent.exe, after closing the web browser<BR>>>
MapAgent.exe is still running in the background. Eventually I hit
the<BR>>> max<BR>>> number of connections and can't make another
connection until I manually <BR>>> end<BR>>> the MapAgent
processes running in the background. I am running MGOS
1.2.<BR>>> Could someone point me in the right direction for resolving
this issue.<BR>>><BR>>> Thanks,<BR>>>
David<BR>>><BR>>
_______________________________________________<BR>> mapguide-users
mailing list<BR>> <A
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>>
<A
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR>><BR>><BR><BR>--<BR>View
this message in context: <A
href="http://www.nabble.com/MapAgent.exe-persists-after-browser-close-tf4090604s16610.html#a11648611">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">Nabble.com</A>.<BR><BR>_______________________________________________
<BR>mapguide-users mailing list<BR><A
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users
</A><BR></BLOCKQUOTE></DIV><BR><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 & computer
viruses.<BR>************************************************************************************<BR><BR><BR></BLOCKQUOTE></BODY></HTML>
<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 & computer viruses.<BR>
************************************************************************************<BR>
<BR>
<BR>