Howto Evaluate Performance of Mapserve r/mapfiles

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Thu Jan 20 22:50:06 EST 2005


Antti,

Thank you for the suggestion. I in fact loaded mapserver 4.4.1 as Sean
suggested and it has some good output if you set DEBUG ON in the mapfile.
It will display each layer that was rendered and how long it took to
render it. Of course it would always be nice to have more information, but
this was more than I had and enought to identify which layers were the
problems. Once I new what layer to look at it was easy for me to figure
out how to deal with it. In most cases, I just eliminated the layer as it
was excessive detail that I could do without.

Yes, I use the Perl profiling for other scripts and it is an excellent
tool for evaluating script performance. Highly recommended to anyone that
has not used it and uses Perl.

-Steve W.

Antti.Roppola at brs.gov.au said:
> I used Perl's profiling tool a little while back, and found
> it was a pretty good tool for identifying where my application
> spent its time (in this case it was the analysis of log files):
>
>   http://www.perl.com/pub/a/2004/06/25/profiling.html
>
> You could perhaps use Perl Mapscript to run through each layer
> in the map file at a range of scale thresholds?
>
> Perl could work even without the profiling tool; you could get a
> list of render times for each layer at a range of scale, showing
> which layers would benefit the most from indexing, tiling or
> generalisation.
>
> Say:
>       for each Layer:
>               from MinScale to MaxScale by SomeStep:
>                       RenderView(RandomExtent)
>
> It would be really nice to see where that time was spent, for
> Mapserver, I'd guess much time is spent waiting for IO.
>
> Cheers,
>
> Antti
>
> -----Original Message-----
> From: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM]
> Sent: Thursday, 6 January 2005 6:16 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Howto Evaluate Performance of
> Mapserver/mapfiles
>
> Hi all,
>
> I am wondering if there are any tools built into mapserver that would help
> in evaluation performance of my mapfile and help indicate things I might
> want to consider changing.
>
> Are there any useful mapfile settings or command line settings that would
> dump useful information about performance?
>
> I am looking at trying to tune some mapfiles and it would be helpful to
> know what layers got drawn, how many objects were rendered, how much time
> was spent on each layer, how many files were opened for each layer, etc.
>
> My mapfile is totally shapefile layers and a lot of them at that > 100
> layers.
>
> Any ideas would be greatly appreciated.
>
> -Steve W.
>
> ----------------------------------------------------------------------
> IMPORTANT - This message has been issued by The Department of Agriculture,
> Fisheries and Forestry (DAFF).  The information transmitted is for the use
> of the intended recipient only and may contain confidential and/or legally
> privileged material.  It is your responsibility to check any attachments
> for viruses and defects before opening or sending them on.
> Any reproduction, publication, communication, re-transmission, disclosure,
> dissemination or other use of the information contained in this e-mail by
> persons or entities other than the intended recipient is prohibited.  The
> taking of any action in reliance upon this information by persons or
> entities other than the intended recipient is prohibited.  If you have
> received this e-mail in error please notify the sender and delete all
> copies of this transmission together with any attachments.  If you have
> received this e-mail as part of a valid mailing list and no longer want to
> receive a message such as this one advise the sender by return e-mail
> accordingly.  Only e-mail correspondence which includes this footer, has
> been authorised by DAFF
> ----------------------------------------------------------------------
>
>



More information about the mapserver-users mailing list