[mapguide-users] MapAgent.exe persists after browser close

Scott, Brian ScottB at talgov.com
Tue Jul 17 11:01:16 EDT 2007


Hi The Rock - 
 
Great name.  We are running Apache, not IIS.  Below is the fastcgi configuration section from the httpd.conf file.  
 
**********************************************************************************************
FastCgiConfig -idle-timeout 120 -startDelay 1 -minProcesses 4 -maxClassProcesses 40 -multiThreshold 100 -singleThreshold 100 -killInterval 600
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
 
#Start PHP FastCGI config
ScriptAlias /php/ "C:/Program Files/MapGuideOpenSource/WebServerExtensions/php/"
<Directory "C:/Program Files/MapGuideOpenSource/WebServerExtensions/php">
    Options ExecCGI 
    AddHandler fastcgi-script exe
</Directory>
Action application/x-httpd-php5 "/php/php-cgi.exe"
AddType application/x-httpd-php5 .php
#End PHP FastCGI Config
 
#Start PHP Config
#ScriptAlias /php/ "C:/Program Files/MapGuideOpenSource/WebServerExtensions/php/"
#Action application/x-httpd-php "/php/php-cgi.exe"
#AddType application/x-httpd-php .php
#End PHP Config
*******************************************************************************************
 
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? 
 
Thanks for your help. 
brian
 

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org]On Behalf Of Rock Beans
Sent: Tuesday, July 17, 2007 9:30 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] MapAgent.exe persists after browser close


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.

The Rock



On 7/17/07, nicholda < nicholda at talgov.com> wrote: 


Thanks for your response Kenneth,

Our issue seems to be that the functionality we are trying to provide winds
up creating additional MapAgent.exe processes as a result of a successful
run.  Essentially we are opening the map, creating serveral new layers with 
1 to many points on each one, pushing the layers into the map, then storing
the map back in the repository with the users sesssion.

The report looks great.  However, when the map refreshes, it creates a new
MapAgent.exe process.  So, if we create 40 reports, we reach max class
processes reached and then have to manually go in and start killing
processes / restarting MapGuide.

The code we are using was taken / modified from the development guide; I can 
tell you that we are not doing anything explicity to close any of the
resource or feature services created; is there a chance that a simple
featureService.close() or something related could keep this from happening? 
Or does the creation of new layers on the fly necessitate the creation of a
new MapAgent.exe process and our only option includes kicking the timeout
down from 120 seconds.

Any and all insight is appreciated. 

Thanks,
David


Kenneth, GEOGRAF A/S wrote:
>
> I belive that MapAgent.exe is supposed to keep running.
> IIS/Apache will load/unload fastCGI, to avoid continously reloading
> MapAgent.exe .
>
> If you are using WinXP IIS, you are likely refering to the IIS
> connection limit on WinXP.
> You can increase the number of allowed connections to 40.
> Instructions can be found here: 
> http://weblogs.asp.net/cazzu/archive/2003/10/10/31476.aspx
>
> Regards, Kenneth, GEOGRAF A/S
>
>
>
> nicholda skrev: 
>> Hi All,
>>
>>   I am having trouble with MapAgent.exe, after closing the web browser
>> MapAgent.exe is still running in the background.  Eventually I hit the
>> max
>> number of connections and can't make another connection until I manually 
>> end
>> the MapAgent processes running in the background.  I am running MGOS 1.2.
>> Could someone point me in the right direction for resolving this issue.
>>
>> Thanks,
>> David
>>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>

--
View this message in context: http://www.nabble.com/MapAgent.exe-persists-after-browser-close-tf4090604s16610.html#a11648611
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________ 
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users  <http://lists.osgeo.org/mailman/listinfo/mapguide-users> 







************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************








 
 
************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070717/5edbd170/attachment.html


More information about the mapguide-users mailing list