Nelson,<br><br>Depending on your MapSever version you could set up the debug options in your mapfile in order to see the timings when the layers are drawn. <br><br>like:<br><br><pre><span class="k">CONFIG</span> <span class="s">&quot;MS_ERRORFILE&quot;</span> <span class="s">&quot;/ms4w/tmp/ms_error.txt&quot;</span><br>
DEBUG 5<br></pre><br>For more info about the debugging options see: <br><a href="http://mapserver.org/mapfile/map.html">http://mapserver.org/mapfile/map.html</a><br><a href="http://mapserver.org/mapfile/layer.html">http://mapserver.org/mapfile/layer.html</a><br>
<br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/9/21 Nelson Correia <span dir="ltr">&lt;<a href="mailto:nelsonwc7@hotmail.com">nelsonwc7@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
 <br>
Hi all,<br>
 <br>
I&#39;m doing an application in C# that uses mapscript to generate images. The features come from a postgis database.<br>
 <br>
On my development machine all goes well and the image is always generated in less than 1 second. When I deployed the application to my two production servers (both powerfull than my dev machine), I noticed a very strange behavior: it takes +-20 seconds to generate the same image. Doing some debug on what&#39;s happening, I realized that was the call to mapObj.draw() method that was taking all that time. <br>
<br>
Thinking it could be a database related problem, (note that I&#39;m using a local database) I&#39;ve inspected the server logs and saw that the query only arrived at the database after that 20 seconds. So, the time is being taken in the draw, but before the database call.<br>

 <br>
Anyone have a clue on what could be happening?<br>
 <br>
Thanks,<br>
 <br>
Nelson<br>                                               <br><hr>What can you do with the new Windows Live? <a href="http://www.microsoft.com/windows/windowslive/default.aspx" target="_blank">Find out</a></div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>