[mapguide-users] Performance Problem using DWF
Andy Morsell
amorsell at spatialgis.com
Wed May 20 17:32:18 EDT 2009
Regarding the repetitive listing of layers in Autodesk MapGuide Studio in a
DWF based layer setup: this bug has existed in that product for awhile and
was not fixed in 2010 (even though I filed a bug report). It seems that it
lists the layer name once per object. At least that's how it appeared on my
end. You can still sort by layer name, find just one listing of the layer
in question, click the checkbox next to it, and the layer filter will work
properly. In other words, you do not have to check every listing of a given
layer name.
Andy Morsell, P.E.
Spatial Integrators, Inc.
www.SpatialGIS.com
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Luis Paolini
Sent: Wednesday, May 20, 2009 12:11 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Performance Problem using DWF
Martin,
In Mapguide, the scale range configuration was with the
default parameters (From 0 to Infinity).
I did some tests using different scales ranges. Starting
with 1:10000 to 1:500
In all the tests, I could not notice improvements on WMS
requests. It is still taking a long time to generate an image.
I also modified the layers in the Drawing Data Setup Panel,
changing from "All Layers" to just one layer, but I had no improvements
also.
One thing that called my attention is that there are 170
layers listed in the Drawing Data List. In some casos, one layer are listed
several times.
I don't know how Map 3D creates the DWF from DWG but it
seems to me that the layers are duplicated, but I'm not sure if this can be
related with
the performance problem.
Luis
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Martin Morrison
Sent: Tuesday, May 19, 2009 10:44 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Performance Problem using DWF
Luis,
What scale are you rendering the data at in Mapguide. It is zoomed out a
good bit, then look at creating different data sources for different scale
levels. The farther you zoom out, have data that is more "generalised" vs
detailed data. When you are zoomed in show the full dataset.
Martin
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Luis Paolini
Sent: Tuesday, May 19, 2009 7:49 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Performance Problem using DWF
Martin,
I'd like to thank you for the tips.
I took some time to read about drawing cleanup and did some
tests using the different cleaning operations.
The result was a great improvement in the time to publish
the dwg file to Mapguide.
See the results below:
DWG01 - 13386 features - 30 seconds to publish
DWG02 - 33201 features - 1 min 30 seconds to publish
DWG03 - 53116 features - 2 min 56 seconds to publish
DWG04 - 68917 features - 14 min 2 seconds to publish
DWG05 - 99399 features - 20 min 13 seconds to publish
In some cases the time was reduced by half.
Now I need to focus on Mapguide performance, because using
the larger dataset (DWG05), Mapguide is very slow to answer a WMS map
request.
In Mapguide, after I created a layer using this dataset, I
enabled it to respond to WMS requests.
Mapguide is taking about 10 minutes to generate a map image
and send it back to the browser.
I was monitoring Mapguide process (Windows/IIS) and noticed
that it allocates 25% of CPU for each request and keeps allocation memory in
a very slow fashion.
Is there anything I should configure, in Mapguide, to get a
better performance?
Regards,
Luis
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Martin Morrison
Sent: Monday, May 18, 2009 3:27 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Performance Problem using DWF
Luis,
Run drawing cleanup. Seriously, do it. Take time to learn how each of the
cleanup steps applies and use it to your best advantage.
Martin
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Luis Paolini
Sent: Monday, May 18, 2009 2:19 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Performance Problem using DWF
Martin,
The DWG file has 171700 items according to qselect command.
The data is a set of engineering drawings (Asbuilts) that
will be used as a background map where data stored in Oracle Spatial will be
overlayed.
Luis
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Martin Morrison
Sent: Monday, May 18, 2009 1:51 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Performance Problem using DWF
Have you run drawing cleanup? It is on the map menu (classic workspace) ->
tools -> drawing cleanup. How much data are we really talking about? 10
points or 10 million lakes?
Martin
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Luis Paolini
Sent: Monday, May 18, 2009 12:48 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Performance Problem using DWF
Martin,
I ran the "audit" command in Map 3D and it found and fixed
584 issues.
After that I published the file to Mapguide and the process
took the same 7 hours.
When it finished and opened the web browser to display the
map, the application keeps waiting for Mapguide for a long time (more than
30 minutes) and then time out.
The DWF file produced has about 15Mbytes and it can be
opened using Design Review.
In Map 3D I also executed the -purge command as suggested by
James, but there was nothing to purge.
Is there anything else I can try?
Regards,
luis
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Martin Morrison
Sent: Friday, May 15, 2009 10:17 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Performance Problem using DWF
In Map 3D you need to make sure the dwg is in good shape before you export
to either MapGuide or DWF. Sometimes getting back to the basics are the
only way to fix issues.
The way to run audit is to type "audit" on the command line in Map 3D and
then decide whether or not to let it fix the errors. Typically I run audit
once without fixing just to see what I am up against and then run it a
second time and let it fix the errors. Sometimes you have to audit a couple
times in a row to get the dwg clean. If it doesn't clean up you may have
bigger issues than audit can take care of and you need to resolve those.
The most important keyboard button is F1, it brings up help. There is
detailed information in help on all of the processes that I listed below.
Martin
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Luis Paolini
Sent: Friday, May 15, 2009 9:01 AM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Performance Problem using DWF
Martin,
I did not audited the dwg and to be honest, I don't know how
to do it.
These auditing operations should be done using Mapguide?
Luis
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Martin Morrison
Sent: Friday, May 15, 2009 9:49 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Performance Problem using DWF
Something is wrong with the larger dwg. Have you audited the dwg? Run
MapCleanup? Purge? Cleaned up excessive scales?
Martin
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Luis Paolini
Sent: Friday, May 15, 2009 8:32 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Performance Problem using DWF
Hi,
I'm a new Mapguide user and need some help to fix a performance problem
publishing DWF data.
Using Autodesk Map 3D I published a DWG to Mapguide. The DWG file has
10Mbytes and the processo took 7 hours. I think that it is too much time and
something must be wrong but let's move on.
After that, using Autodesk Studio, I tried to preview the layer created
(DWF) and the preview windows keeps retrieving data forever and shows
nothing. At the other side, Mapguide Server Processe allocate a lot of my
server resources (memory and CPU) for hours and do nothing.
I also configured the layer to accept WMS requests, but when I send a
GetMap request the same problem happens. No map is returned and the server
resources are increased.
I did the same process with a smaller file (1 Mbyte) and it worked
pretty fine. This small file has the same layers that the big one, but with
less features.
Have you guys some ideas?
Regards,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090520/f9ff374b/attachment.html
More information about the mapguide-users
mailing list