Hi Asif,<br><br>I don&#39;t know of any specific applications or methods to stress test MapServer.  However, I would think that you could use some web-based tools such as Selenium (possibly) to exercise a web-based setup, or write a test-script which does the same.  Sean Gillies has an excellent set of unit tests written to exercise Python Mapscript.  You can view them here - <a href="http://kentuckykarst.org/mapserver/mapscript/python/tests/cases/">http://kentuckykarst.org/mapserver/mapscript/python/tests/cases/</a>.  It might be possible to adapt some of these to suit your needs, but I would think that a utility which exercises your installation in the same way a user does would be better.<br>
<br>There is a good, generic description of how to approach load testing of web applications here - <a href="http://msdn.microsoft.com/en-us/library/bb924374.aspx">http://msdn.microsoft.com/en-us/library/bb924374.aspx</a>.<br>
<br>Best of luck,<br><br>Roger<br>--<br><br><br>
<br><div class="gmail_quote">On Tue, Jun 30, 2009 at 10:15 PM, Asif Memon <span dir="ltr">&lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hello,<br>
<div><br>
We have started using Map Server to serve large size images. Now we want to do a performance/stress test on Map Server. Do you have any documentation that explains the performance/stress test on a Map Server? If not, could you please suggest what shall I do?<br>


<br>
Sincerely,<br>
Asif Memon<br>
<br>
<br>
</div><div>-----Original Message-----<br>
From: Bob Basques [mailto:<a href="mailto:Bob.Basques@ci.stpaul.mn.us" target="_blank">Bob.Basques@ci.stpaul.mn.us</a>]<br>
Sent: Monday, November 10, 2008 1:27 PM<br>
To: <a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>; Asif Memon<br>
Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
</div>Subject: RE: [mapserver-users] Documentation for serving large rasterimagesusing tile cache.<br>
<br>
Asif,<br>
<br>
While it may be a bit of overhead to implement just for testing, the<br>
GeoMoose client would definitely help with your performance testing.  If<br>
you combine it with FireBug/FireFox, you should be able to extract all<br>
the performance information you need (from the client end).<br>
<br>
>From the server side, you can run the MapServer requests on the<br>
commandline.  In my experience though, the web side of the equation is<br>
usually the bottleneck for most performance issues.<br>
<br>
bobb<br>
<br>
<br>
<br>
&gt;&gt;&gt; &quot;Asif Memon&quot; &lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; 11/10/08 3:21 PM &gt;&gt;&gt;<br>
Thanks Roger,<br>
<br>
<br>
<br>
I have tiled a large mosaic(2 GB) by using the GDAL utility(gdal_convert<br>
&quot;TILED=YES&quot;). I want to test the performance for querying the mosaic<br>
with the zoom functionality. Do I need to write a client or is there<br>
anything readily available with which I can check the performance?<br>
<div><br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
<br>
<br>
From: Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]<br>
</div>Sent: Monday, November 10, 2008 9:35 AM<br>
<div>To: Asif Memon<br>
Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
</div>Subject: Re: [mapserver-users] Documentation for serving large raster<br>
<div>images using tile cache.<br>
<br>
<br>
<br>
Hi Asif,<br>
<br>
</div>My apologies.  I saw your message Friday evening but forgot about it<br>
over the weekend in the course of reinstalling my Linux OS.  If time is<br>
of the essence, posting your question to the entire list should ensure a<br>
speedier response.<br>
<br>
Regarding your questions:<br>
<br>
1) I am not aware of any applications that will act as viewers for<br>
Mapserver operating in &quot;map&quot; mode.  They may exist, but I&#39;m not familiar<br>
with them.  I tend to use Mapserver in only one of two ways at the<br>
moment; in &quot;map&quot; mode to generate static maps, in &quot;wms&quot; mode with a<br>
connection to it via OpenLayers (or TileCache).<br>
<br>
2) Regarding the path to your mapfile, I believe there are several<br>
solutions that you can try if your goal is to shorten the URL string.<br>
They are well-explained here -<br>
<a href="http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url" target="_blank">http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url</a>.<br>
 As far as why the 1st URL doesn&#39;t actually work, it&#39;s because the path<br>
should be relative to the mapserv.exe location in cgi-bin, not to<br>
htdocs.  So try this instead:<br>
<br>
-<br>
<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=../htdocs/mapdemo/itasca_demo.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=../htdocs/mapdemo/itasca_demo.map&amp;mode=map</a><br>
&lt;<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&amp;mode=map</a>&gt;<br>
<br>
<br>
Roger<br>
--<br>
<br>
On Mon, Nov 10, 2008 at 1:58 AM, Asif Memon &lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; wrote:<br>
<br>
Hi All,<br>
<br>
<br>
<br>
I have couple of question, could you please take a look at it :<br>
<br>
<br>
<br>
1)      Do you know any Map Server Client that allows viewing the image<br>
service (created on the Minnesota Map Server) if I give the URL listed<br>
below:<br>
<div><br>
<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&amp;mode=map</a>&quot;<br>
<br>
<br>
<br>
</div>2)      I am using Windows XP on my PC. When I give the URL in this<br>
format -<br>
<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=/mapdemo/itasca_demo.map&amp;mode=map</a>&quot;,<br>
it doesn&#39;t work. But if I give it in format -<br>
<div><a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C</a>:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&amp;mode=map<br>

</div>&lt;<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Citasca_demo.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Citasca_demo.map&amp;mode=map</a>&gt;<br>


, it works. The problem in giving the URL is this format is I have to<br>
put the complete path starting with &quot;C: drive&quot; and if I have to run it<br>
on the server, I cannot give it like that.<br>
<br>
<br>
<br>
Could you please help me with both the above issues? Thanks!<br>
<div><br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
<br>
<br>
From: Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]<br>
Sent: Tuesday, October 28, 2008 8:11 PM<br>
To: Asif Memon<br>
Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] RE: Documentation for serving large<br>
raster images using tile cache.<br>
<br>
<br>
<br>
Hi Asif,<br>
<br>
I downloaded the demo.tif file that you sent earlier, and the<br>
itasca_demo.map from you rprevious email.  I changed the path in the<br>
DATA portion of the LAYER section to point to my filesystem,<br>
    DATA &quot;/var/www/mapfiles/itasca/demo.tif&quot;<br>
<br>
</div>and also changed the EXTThis matches the extent of the file when you run gdalinfo against it<br>
<div>(min_x min_y max_x Max_y).<br>
<br>
With these changes, I&#39;m able to view the file with the following URL:<br>
<a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&amp;mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/itasca/itasca_demo.map&amp;mode=map</a><br>
<br>
(Note, I&#39;m running this in Linux, so paths and URLs are going to be<br>
slightly different than yours)<br>
<br>
Try changing your EXTENT entry to match mine, that might do the trick.<br>
--<br>
<br>
On Tue, Oct 28, 2008 at 3:45 PM, Asif Memon &lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; wrote:<br>
<br>
Thanks Roger.<br>
<br>
<br>
<br>
I don&#39;t see any errors now, but no image appears in the browser(the<br>
browser is blank). I made minor changes to the map file that you sent me<br>
(about the paths, attached is the file).<br>
<br>
<br>
<br>
The URL that I am using in the browser is<br>
<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C</a>:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\itasca_demo.map&amp;mode=map<br>
</div>&lt;<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Citasca_demo.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Citasca_demo.map&amp;mode=map</a>&gt;<br>


<div><div></div><div><br>
<br>
<br>
<br>
Please correct me if anything is wrong in the URL or in the map file.<br>
<br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
<br>
<br>
From: Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]<br>
Sent: Tuesday, October 28, 2008 3:17 PM<br>
<br>
<br>
To: Asif Memon<br>
Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] RE: Documentation for serving large<br>
raster images using tile cache.<br>
<br>
<br>
<br>
Hi Asif,<br>
<br>
Ok, here&#39;s a new mapfile that you can try.  Change your request to point<br>
to this one, and see if you get an image back in your browser.<br>
<br>
Roger<br>
--<br>
<br>
On Tue, Oct 28, 2008 at 2:06 PM, Asif Memon &lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; wrote:<br>
<br>
I believe one of the &quot;END&quot; was missing at the end of the file, I have<br>
added that. This resolves the earlier error and generated a new one -<br>
msDrawMap(): Image handling error. Unable to initialize image.<br>
msPrepareImage(): General error message. Image dimensions not specified.<br>
msCalculateScale(): General error message. Invalid image extent,<br>
minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.<br>
mapserv(): Web application error. No way to generate map extent.<br>
<br>
<br>
<br>
Any help is much appreciated?<br>
<br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
From: Asif Memon<br>
Sent: Tuesday, October 28, 2008 1:48 PM<br>
To: &#39;Roger André&#39;<br>
<br>
<br>
Cc: &#39;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&#39;<br>
<br>
Subject: RE: [mapserver-users] RE: Documentation for serving large<br>
raster images using tile cache.<br>
<br>
<br>
<br>
No, TileCache didn&#39;t come with that. I am trying to view any image right<br>
now to see an example of serving an image into Mapserver.<br>
<br>
<br>
<br>
I changed the path of the WMS<br>
URL(<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C</a>:\Asif\work\devtools\MMS\ms4w\Apache\htdocs\mapdemo\demo.map&amp;mode=map<br>
</div></div>&lt;<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Cdemo.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=C:%5CAsif%5Cwork%5Cdevtools%5CMMS%5Cms4w%5CApache%5Chtdocs%5Cmapdemo%5Cdemo.map&amp;mode=map</a>&gt;<br>


<div><div></div><div>) and the error I am getting now is - msLoadMap(): Premature<br>
End-of-File.<br>
<br>
<br>
<br>
I ran the GDAL tile cache command on a .tif image to create the shape<br>
files using (gdaltindex doq_index.shp doq/*.tif). Also, I made some<br>
changes in the map file. Attached is the most updated map file along<br>
with the shape files.<br>
<br>
<br>
<br>
Could you please take a look at it.<br>
<br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
From: Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]<br>
<br>
Sent: Tuesday, October 28, 2008 1:22 PM<br>
To: Asif Memon<br>
<br>
Subject: Re: [mapserver-users] RE: Documentation for serving large<br>
raster images using tile cache.<br>
<br>
<br>
<br>
Sorry I assumed that the index.html file was the one that came with<br>
TileCache.  Is that not correct?<br>
--<br>
<br>
On Tue, Oct 28, 2008 at 1:02 PM, Asif Memon &lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; wrote:<br>
<br>
Thanks for your reply.<br>
<br>
<br>
<br>
Attached is the map file. I do not have the any tilecache.cfg file. From<br>
the error(msLoadMap(): Unable to access file. (/path/to/demo.map)), it<br>
appears the map file is not accessible.<br>
<br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
<br>
<br>
From: Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]<br>
<br>
Sent: Tuesday, October 28, 2008 12:53 PM<br>
To: Asif Memon<br>
<br>
Cc: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<br>
<br>
</div></div><div><div></div><div>Are you able to view a map when you go to<br>
&quot;<a href="http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&amp;mode=map" target="_blank">http://localhost:9090/cgi-bin/mapserv.exe?map=/path/to/itasca.map&amp;mode=map</a>&quot;<br>
?  Also, can you send a copy of your mapfile, and of your tilecache.cfg<br>
files?<br>
<br>
Roger<br>
--<br>
<br>
On Tue, Oct 28, 2008 at 11:15 AM, Asif Memon &lt;<a href="mailto:mmemon@sdsc.edu" target="_blank">mmemon@sdsc.edu</a>&gt; wrote:<br>
<br>
Hi Roger,<br>
<br>
<br>
<br>
I followed the instructions on the documentation and setup the map<br>
server and demo, when I try to execute the index.html, I get this error<br>
- msLoadMap(): Unable to access file.<br>
(<a href="http://localhost:9090/mapdemo/itasca.map" target="_blank">http://localhost:9090/mapdemo/itasca.map</a>)<br>
<br>
<br>
<br>
Do you know what could be it?<br>
<br>
<br>
<br>
Sincerely,<br>
<br>
Asif Memon<br>
<br>
<br>
<br>
From: Roger André [mailto:<a href="mailto:randre@gmail.com" target="_blank">randre@gmail.com</a>]<br>
Sent: Monday, October 20, 2008 1:38 PM<br>
To: Gregor Mosheh<br>
Cc: Asif Memon; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] RE: Documentation for serving large<br>
raster images using tile cache.<br>
<br>
<br>
<br>
Hi Asif,<br>
<br>
Best thing to do is take a look at these 2 docs first:<br>
- <a href="http://mapserver.gis.umn.edu/docs/howto/raster_data" target="_blank">http://mapserver.gis.umn.edu/docs/howto/raster_data</a><br>
- <a href="http://tilecache.org/readme.html" target="_blank">http://tilecache.org/readme.html</a><br>
<br>
Once you have the ability to see your raster in MapServer via a<br>
&quot;mode=map&quot; request, then you will have to decide how you wish to view<br>
your data afterwards.  There are different things to do in TileCache<br>
depending on whether you wish to view the data in OpenLayers, or over<br>
Google Maps/MS VE.<br>
--<br>
<br>
On Mon, Oct 20, 2008 at 12:01 PM, Gregor Mosheh &lt;<a href="mailto:gregor@hostgis.com" target="_blank">gregor@hostgis.com</a>&gt;<br>
wrote:<br>
<br>
Asif Memon wrote:<br>
<br>
Could someone please point me to the documentation for serving large<br>
(2GB to 3GB) raster images using tile cache. I want to use Minnesota Map<br>
Server and GDAL to achieve this.<br>
<br>
<br>
<br>
You&#39;ll want to ask the TileCache list about that, likely. Once you have<br>
MapServer actually serving up the imagery, get your client using<br>
MapServer or WMS (I like OpenLayers, myself). Then install TileCache and<br>
change the OL app to use TC&#39;s URL instead of MapServer&#39;s. Easy.<br>
<br>
But you may want to install OpenLayers and get it working with MapServer<br>
first, then hit up the OL and TC mailing lists.<br>
<br>
--<br>
Gregor Mosheh / Greg Allensworth    BS, A+, Network+, Security+, Server+<br>
System Administrator, Lead Programmer<br>
HostGIS development &amp; hosting services, <a href="http://www.HostGIS.com/" target="_blank">http://www.HostGIS.com/</a><br>
<br>
&quot;Remember that no one cares if you can back up,<br>
 only if you can restore.&quot; - AMANDA<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">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>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>