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="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. 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>