<div>Hi Ed,</div>
<div>&nbsp;</div>
<div>I pursued my MODE=MAP issues a little deeper ... the new hardware didn't fix it ... </div>
<div>&nbsp;</div>
<div>My snapshots fail sporadically. If i plug the source of the images into a new webpage, I get&nbsp;the following error:&nbsp;&quot;CGI error, The specified CGI application misbehaved by not returning a complete set of HTTP headers.&quot;. Sometimes the top half of an image generates, but not the rest.
<br>&nbsp;</div>
<div>Ive seen this error before when using a faulty build of mapserver that was up on the homepage for awhile a couple months ago but in that case it affected all maps generated, not just some of the snapshots. </div>
<div>&nbsp;</div>
<div>My current install is clean on&nbsp;a new server, 4.4.2 and 4.6b2.&nbsp;Each install is in its own folder, to keep the dll's of the different versions separated,&nbsp;the website has a virtual directory that points to the specific version&nbsp;I want it to use.&nbsp; My mode=browse maps work fine.
</div>
<div>&nbsp;</div>
<div>The failures happen often on the same features, or in the same area of one feature while another area works.&nbsp; The features pass as valid to PostGIS, using shapefiles made no difference. The number of features returned does not seem to be impacting the occurance of failures.
</div>
<div>&nbsp;</div>
<div>These failures have been happening since MapServer 4. I may need to rig up mapserver 3.6 to produce the snapshots since it never gave me a problem. Anyways maybe this shows why I was leery to suggest to the other person to rely on mode=map.
</div>
<div>&nbsp;</div>
<div>Cheers,</div>
<div>Ken Lord</div>
<div>Vancouver BC</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 5/24/05, <b class="gmail_sendername">Ed McNierney</b> &lt;<a href="mailto:ed@topozone.com">ed@topozone.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Ken -</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">If you are trying to serve multiple simultaneous requests, with everything competing to write and then read files from the temp directory, the disk I/O to that drive can become a 
<strong>serious</strong> bottleneck.&nbsp; If heavy usage is not a concern, then this may be a non-issue.</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">I have never seen failures due to MODE=MAP (rather than being caused by something else) and I've used it about a billion times (literally &lt;g&gt;).&nbsp; I would be leery of blaming failures on MODE=MAP without some diagnosis about the cause.
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">&nbsp;&nbsp;&nbsp;&nbsp; - Ed</font></span></div>
<div dir="ltr" align="left"><span>
<p><font size="2">Ed McNierney<br>President and Chief Mapmaker<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://topozone.com/" target="_blank">TopoZone.com</a> / Maps a la carte, Inc.<br>73 Princeton Street, Suite 305
<br>North Chelmsford, MA&nbsp; 01863<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ed@topozone.com" target="_blank">ed@topozone.com</a><br>(978) 251-4242 </font></p></span></div><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> UMN MapServer Users List [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">MAPSERVER-USERS@LISTS.UMN.EDU
</a>] <b>On Behalf Of </b>Ken Lord<br><b>Sent:</b> Tuesday, May 24, 2005 12:48 PM<br><b>To:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">MAPSERVER-USERS@LISTS.UMN.EDU
</a><br><b>Subject:</b> Re: [UMN_MAPSERVER-USERS] Cleaning the /tmp directory<br></font><br>&nbsp;</div>
<div><span class="e" id="q_1040fa7864be5d84_1">
<div></div>
<div>James,</div>
<div>&nbsp;</div>
<div>I use the method you mentioned, 'MODE=MAP', to generate snapshots for query results. It works great to highlight&nbsp;each individual item&nbsp;returned by a&nbsp;map query, placed next each item's&nbsp;attributes.</div>
<div>&nbsp;</div>
<div>However,&nbsp; Since mapserver 4 and later have come out,&nbsp;often the images fail despite the log statement&nbsp;of 'normal execution'.</div>
<div>&nbsp;</div>
<div>I have simplified the maps&nbsp;as much as possible, and I'm sure that its not a lingering syntax difference between 3.6 (where it worked great) and 4 or later. The failures are not&nbsp;consistant either.&nbsp; Why they don't either all work or all fail, or at least all the same features queried&nbsp;fail consistantly? I have no idea. 
</div>
<div>&nbsp;</div>
<div>So I'm leary about suggesting people use MODE=MAP for all their maps just to keep their temp folder's empty, especially when a simple .bat file can be used to empty them regularly.</div>
<div>&nbsp;</div>
<div>Cheers,</div>
<div>Ken Lord</div>
<div>Vancouver BC</div>
<div>&nbsp;</div></span></div></blockquote></div>