<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2>Hi Jason,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2>Telling isapi_fcgi and mod_fastcgi to spin up two
servers might help but I've had trouble forcing them to spin up agents.
mod_fastcgi is especially obstinate. Even under load it doesn't like to
spin up more than one agent. Here are the appropriate
settings:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2>For IIS:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2>Increase the registry setting
HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2>StartServers REG_DWORD 1 </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=747165019-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff size=2>For
Apache, modify httpd.conf and increase -minProcesses:</FONT></SPAN></DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2>Change</FONT></SPAN></DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2>FastCgiConfig -idle-timeout 120 -minProcesses 1 -maxClassProcesses 4
-multiThreshold 100 -singleThreshold 100 -killInterval 600</FONT></SPAN></DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2>to</FONT></SPAN></DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=747165019-15112006><SPAN class=747165019-15112006><FONT
face=Arial color=#0000ff size=2>FastCgiConfig -idle-timeout 120 -minProcesses 2
-maxClassProcesses 4 -multiThreshold 100 -singleThreshold 100 -killInterval
600</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><BR><FONT
face=Arial><FONT color=#0000ff><FONT size=2>Note<SPAN
class=747165019-15112006>: PHP uses a different configuration line and
should already be spinning up 4 processes:</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=747165019-15112006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>FastCgiServer "C:/Program
Files/MapGuideOpenSource/WebServerExtensions/php/php-cgi.exe" -processes 4
-idle-timeout 120 -<BR>initial-env PHP_FCGI_MAX_REQUESTS=500 -initial-env
PHP_FCGI_CHILDREN=1^M</FONT></SPAN></DIV>
<DIV><SPAN class=747165019-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jason Birch
[mailto:Jason.Birch@nanaimo.ca] <BR><B>Sent:</B> Wednesday, November 15, 2006
12:12 PM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] RE: Studio Enterprise and Web Studio Cannot Connect
Randomly<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2>Hi Trevor,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2>I've seen this second issue ("<SPAN
class=452121918-15112006><FONT face=Arial color=#0000ff size=2>There is also an
occassional cannot connect to URL error when a FastCGI Mapagent process has
shutdown and another one has not started up yet") fairly
consistently.</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2><SPAN
class=452121918-15112006></SPAN></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2><SPAN class=452121918-15112006>Is there any way to
configure FastCGI to avoid this? Like a minimum number of active
processes?</SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2>Jason</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=627380619-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><FONT face=Arial color=#0000ff
size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Trevor Wekel <BR><B>Sent:</B> Wednesday,
November 15, 2006 11:04<BR><B>To:</B> Chris Gountanis;
users@mapguide.osgeo.org<BR><B>Subject:</B> [mapguide-users] RE: Studio
Enterprise and Web Studio Cannot Connect Randomly<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2>Hi Chris,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2>IIS under Windows XP has a hard coded concurrent connection
limit - 10 connections I think. Internet Explorer and the
embedded IE control within Studio may spin up that many connections to
serve a map. If you get back a bunch of 403 errors then you are probably
hitting this limit.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006></SPAN><SPAN
class=452121918-15112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2>There is also an occassional cannot connect to URL error
when a FastCGI Mapagent process has shutdown and another one has not started up
yet. Typically, this is a single error. The error "wakes up the
agent" and a second connection attempt should go through
successfully.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2>I have also seen rare cases where the Apache/IIS FastCGI
link to Mapagent.exe and php-cgi.exe does not initialize successfully.
This effectively locks out the Web Extensions. In these cases stopping
Apache or IIS, manually killing all of the mapagent.exe and php-cgi.exe process,
and restarting Apache or IIS generally corrects the problem. As an
added measure of insurance, stopping and restarting MapGuide Server can be
performed along with the Apache/IIS restart.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2>Hopefully this will help,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=452121918-15112006><FONT face=Arial
color=#0000ff size=2>Trevor</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV></BODY></HTML>