Ok well, got a big update here.  I was able to switch it back to a 256x256 WMS tiled layer.  My problem was that the symbols were being clipped, however, by using the openlayers &quot;gutter&quot; property, I was able to fix this problem. I am using a 1.0 ratio, and the tiles seem to be loading in much faster, and with a gutter value of 32 the clipping is completely gone.  <br>
<br>For those that don&#39;t know, the gutter parameter is one that is a property of the OpenLayers.Layer class.  This is the description:<br><br>{Integer} Determines the width (in pixels) of the gutter around image 
tiles to ignore.   By setting this property to a non-zero value, images 
will be requested that are wider and taller than the tile size by a 
value of 2 x gutter.   This allows artifacts of rendering at tile edges 
to be ignored.   Set a gutter value that is equal to half the size of 
the widest symbol that needs to be displayed.  Defaults to zero.   
Non-tiled layers always have zero gutter.<br><br>I am going to see if my client is satisfied with the speed, and I will continue trying different things to optimize, obviously if anyone has any suggestions they are welcome =).  Thanks a lot for the help so far everyone.<br>
<br>-Adam<br><br><div class="gmail_quote">On Mon, May 3, 2010 at 7:52 PM, Lime, Steve D (DNR) <span dir="ltr">&lt;<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
How big are (and how many) the images requested by OL? You&#39;ve been through so many changes I&#39;m not sure exactly what configuration you&#39;re using:<br>
<br>
  - tiled vs. untiled?<br>
  - layer ratio setting?<br>
<div class="im"><br>
Steve<br>
________________________________________<br>
From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Adam Eskreis [<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>]<br>

</div>Sent: Monday, May 03, 2010 6:23 PM<br>
To: Rahkonen Jukka<br>
<div class="im">Cc: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] Re: WMS and tiles cutting off<br>
<br>
</div><div class="im">Thank you for the advice Jukka.  I tried just running shp2img.  The results are almost instant.  I also tried using my client with the symbols turned off, and the result was about half the load time.  So I guess from this we can assume that there is a certain amount of overhead that openlayers is giving me, as well the symbols are causing some overhead.  The only thing is, what to do?  I can&#39;t sacrifice any more quality on my symbols (whcih are 8 bit png images) and openlayers as far as I know is the best client out there.<br>

<br>
Things are starting to look grim<br>
<br>
</div><div class="im">On Mon, May 3, 2010 at 2:44 PM, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&lt;mailto:<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;&gt; wrote:<br>

Hi,<br>
<br>
If the query is optimized then try to find out real bottle neck. I believe that first step would be to throw away your client and test with shp2img and by having DEBUG 5 with all your layers. If you believe that the reason is due to symbols, then have a try by commenting out all the symbols you will soon know it for sure. I have not played with symbols myself but I can imagine that some sort of symbols are faster to render than others (truetype/pixmap/inline).<br>

<br>
-Jukka Rahkonen-<br>
<br>
<br>
<br>
Adam Eskreis wrote:<br>
<br>
&gt; Thank you for the response David.<br>
<br>
&gt; I have optimized the query all I can.  I have optimized the query to the<br>
point that even with all categories selected, the query has a run time of 52<br>
ms.  I can only assume that the issue lies with the generation of the<br>
images.  I will try to run it without the &quot;IN&quot; part of the query, but I<br>
can&#39;t imagine that it&#39;st he problem.  I think the problem is that there are<br>
a large number of symbols that need to be generated, and it&#39;s taking<br>
mapserver a long time to load them in.  Also, yes I have indexes on all<br>
columns that I am calling in, and yes, they are all using the same SRS.  I<br>
am still trying a few more things, but I don&#39;t think it&#39;s the database query<br>
that&#39;s causing the problem.<br>
<br>
<br>
&gt; On Fri, Apr 30, 2010 at 9:37 AM, Fawcett, David (MPCA) &lt;<br>
</div><div class="im"><a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&lt;mailto:<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt;&gt; wrote:<br>
<br>
&gt;&gt;  Adam,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; It sounds like you have boiled the issue down to too much of a time lag<br>
&gt; between the time the query is executed and the image appears in the client.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; Is it taking a long time for MapServer to draw the image, or is it the<br>
&gt; delivery of the image to the requesting machine and subsequent placement in<br>
&gt; the client?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; If it is taking MapServer a long time, maybe there are some more data<br>
&gt; optimizations that you can do.  Is there a better way to structure your<br>
&gt; data, can you do any pre-processing?  Is it all in the same SRS, got<br>
&gt; attribute and spatial indexes?  I have used the SQL IN for some apps with<br>
&gt; reasonable performance, but in the last 6 months or so, there were some<br>
&gt; posts on this list comparing the use of IN to a layer (or class?) filter.<br>
&gt; The latter solution was significantly faster.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; If it is taking a long time to get to the client, then that is likely an<br>
&gt; infrastructure issue on either end.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; If you want some more help digging in more deeply, post some more stats and<br>
&gt; mapfile snippets.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt; David.<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; *From:* <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt; [mailto:<br>

&gt; <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;] *On Behalf Of *Adam Eskreis<br>

<div class="im">&gt; *Sent:* Thursday, April 29, 2010 4:24 PM<br>
&gt; *To:* Lime, Steve D (DNR)<br>
</div>&gt; *Cc:* <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>
<div class="im">&gt;<br>
&gt; *Subject:* Re: [mapserver-users] Re: WMS and tiles cutting off<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; I tried doing ratio:1 unfortunately it doesn&#39;t seem like enough of a<br>
&gt; performance increase.  Separate layers for each category is an option,<br>
&gt; however, there are over a hundred categories, and any combination of<br>
&gt; categories can be on at any given time, so this could prove to have<br>
&gt; performance issues of it&#39;s own.  However, I thank you guys Steve and Kaipi<br>
&gt; for your advice.  I think I am just going to go back to my old method, which<br>
&gt; was using php mapscript to generate the tiles, then each time the user<br>
&gt; selected new categories, purge the cache and remake the mapfile.  It&#39;s not<br>
&gt; the ideal solution but it seems to be the only one.<br>
&gt;<br>
&gt; Thanks again,<br>
&gt;<br>
&gt; -Adam<br>
&gt;<br>
&gt; On Thu, Apr 29, 2010 at 3:50 PM, Lime, Steve D (DNR) &lt;<br>
</div><div class="im">&gt; <a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&lt;mailto:<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;&gt; wrote:<br>
&gt;<br>
</div><div class="im">&gt; Note that by default I believe openlayers will request an image that is<br>
&gt; *much* larger than what is visible. Setting the layers (OL) ratio:1 makes it<br>
&gt; the same size as the view port and that can speed up rendering considerably.<br>
&gt;<br>
&gt; Alternatively you could create a separate set of tiles for each category I<br>
&gt; suppose and switch OL layers as necessary...<br>
&gt;<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
&gt; ________________________________________<br>
</div><div class="im">&gt; From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt; [<br>

&gt; <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;] On Behalf Of Adam Eskreis [<br>

&gt; <a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>&lt;mailto:<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>&gt;]<br>
&gt;<br>
</div><div class="im">&gt; Sent: Thursday, April 29, 2010 2:25 PM<br>
&gt;<br>
</div><div class="im">&gt; To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>
&gt; Subject: Re: [mapserver-users] Re: WMS and tiles cutting off<br>
&gt;<br>
</div><div class="im">&gt; Ok, I just gave an untiled layer a try, unfortunately though, due to the<br>
&gt; large amount of symbols being displayed on the screen, there is about a 2<br>
&gt; second delay every time the map is panned.  My client will most certainly<br>
&gt; find this unacceptable.  I have tried using smaller images, but I cannot<br>
&gt; sacrifice any more quality.  I believe my database query to be as optimized<br>
&gt; as it can be (has about 50 ms runtime, I honestly don&#39;t think I can get it<br>
&gt; any lower than that).<br>
&gt;<br>
&gt; If these are the only options, is there something else besides WMS that you<br>
&gt; all would recommend using to solve this issue?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; -Adam<br>
&gt;<br>
&gt; On Thu, Apr 29, 2010 at 2:54 PM, Lime, Steve D (DNR) &lt;<br>
</div><div class="im">&gt; <a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&lt;mailto:<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;&lt;mailto:<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&lt;mailto:<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;&gt;&gt; wrote:<br>

&gt; So use two layers. One for the background, use tilecache for that. Then use<br>
&gt; an untiled wms/mapserver layer for the overlayed points. - Steve<br>
&gt; ________________________________________<br>
&gt;<br>
</div>&gt; From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;&lt;mailto:<br>

<div class="im">&gt; <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;&gt; [<br>

</div>&gt; <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;&lt;mailto:<br>

<div class="im">&gt; <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>&gt;&gt;] On Behalf Of Adam Eskreis [<br>

</div>&gt; <a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>&lt;mailto:<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>&gt;&lt;mailto:<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>&lt;mailto:<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>&gt;&gt;]<br>

<div class="im">&gt;<br>
&gt; Sent: Thursday, April 29, 2010 1:24 PM<br>
&gt;<br>
</div>&gt; To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>

<div class="im">&gt; &gt;<br>
&gt;<br>
&gt; Subject: Re: [mapserver-users] Re: WMS and tiles cutting off<br>
&gt;<br>
&gt; I have thought about using tilecache with metatiling, however there is a<br>
&gt; caveat about this map that i forgot to mention in my main post, and it has<br>
&gt; to do with that &quot;categories&quot; parameter.  Basically, each point/symbol on the<br>
&gt; map has an associated category in the database backend.  I am using<br>
&gt; mapserver/WMS parameters to change the categories which are called.  Each<br>
&gt; time the user selects a category, only the points in that category are<br>
&gt; shown.  My query in the mapfile looks something like thi:<br>
&gt;<br>
&gt; SELECT point_geom,gid,symbol,angle FROM mapdata WHERE category<br>
&gt; IN(%CATEGORIES%)&quot;;<br>
&gt;<br>
&gt; And each time the user changes the categories, I use openlayers to merge<br>
&gt; new parameters, and input the new category values that should be used.  Is<br>
&gt; tilecache still useable if I have a system like this set up?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; -Adam<br>
&gt;<br>
&gt;   On Thu, Apr 29, 2010 at 6:14 AM, kaipi &lt;<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&lt;mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&gt;&lt;mailto:<br>
</div>&gt; <a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&lt;mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&gt;&gt;&lt;mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&lt;mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&gt;&lt;mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&lt;mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>&gt;&gt;&gt;&gt;<br>

<div><div></div><div class="h5">&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; you can use  <a href="http://tilecache.org/" target="_blank">http://tilecache.org/</a> Tilecache   with the option metatiling<br>
&gt; enabled. With metatiling enabled Tilecache will fetch larger tiles (eg.<br>
&gt; 4096x4096) from Mapserver and will cut them into smaller tiles (eg.<br>
&gt; 256x256). It will also increase performance because Mapserver does not need<br>
&gt; to render tiles when they are already in cache.<br>
&gt;<br>
&gt; kaipi<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://osgeo-org.1803224.n2.nabble.com/WMS-and-tiles-cutting-off-tp4978418p4979280.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/WMS-and-tiles-cutting-off-tp4978418p4979280.html</a><br>
&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt;<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;<br>

&gt; &gt;&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;&lt;mailto:<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>&gt;&gt;&gt;<br>
&gt;<br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>