Opened 17 years ago

Closed 16 years ago

#528 closed defect (worksforme)

Grey images from mapserver with GETMAPIMAGE operation

Reported by: trondat Owned by:
Priority: medium Milestone:
Component: Server Version: 2.0.0
Severity: major Keywords:
Cc: External ID:

Description

After some time of operation the mapserver returns blank grey ( RGB 237,237,237 ) images until the Maguide service is restarted. Also during multiple request some of the layers are not drawn, missing from the image, but those can be drawn on the next request.

The map template used consists of only static SDF layers no raster or database layers.

This behavior can be reproduced using a web load generator simulating 2 users continously requesting maps for 2-6 hours. The users select from a pool of different positions and scales.

When the serverer just returns grey images, the only way to get it working again is to restart the Mapguide server service. I have also noticed that when the mapguide server returns grey images the mgserver.exe consumes 900 MB of memory and are using around 800 handles. When the service is restarted it consumes around 50 MB and are using around 500 handles.

Example of URL used :

http://127.0.0.1/mapguide/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAGE&VERSION=1.0.0&SESSION=&MAPNAME=&LOCALE=en&MAPDEFINITION=Library://Map/MyMap.MapDefinition&FORMAT=PNG&SELECTION=&SETVIEWCENTERX=200597.800000&SETVIEWCENTERY=4780037.000000&SETVIEWSCALE=98380.905600&SETDISPLAYDPI=96&SETDISPLAYWIDTH=520&SETDISPLAYHEIGHT=400&SHOWLAYERS=&HIDELAYERS=&SHOWGROUPS=&HIDEGROUPS&USERNAME=Anonymous

Here is an entry from the error.log file :

<2008-03-31T14:13:21> Administrator

Error: Failed to stylize layer: land_layer

An exception occurred in FDO component. SDF connect failed. File does not exist or cannot be opened in specified access mode.

StackTrace:

  • MgMappingUtil.StylizeLayers line 776 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\server\src\services\mapping\MappingUtil.cpp Failed to stylize layer: land_layer

An exception occurred in FDO component. SDF connect failed. File does not exist or cannot be opened in specified access mode.

I have tried both using mapagent.fcgi and isapi_mapagent.dll. They produce the same behavior I supose those two are equal.

This bug is also seen MG 1.1 , but then the maps returned where black RGB (0,0,0).

/Trond Tunheim, CellVision AS

Change History (3)

comment:1 by zspitzer, 16 years ago

I believe that error indicates a featureSource which is pointing to a missing file

This can happen when you use a MGP file which has external resources

Interestingly I found this error seems to be fatal to mapguide after an number of requests

comment:2 by jbirch, 16 years ago

Can you test this with 2.1? If it is still a problem, can you please provide an .mgp file of the data you are using, as well as any scripts (or extent / scale ranges you are using for randomizing) that could be used to replicate the problem?

comment:3 by jbirch, 16 years ago

Resolution: worksforme
Status: newclosed

No feedback that would allow duplication of problem. Closing.

Note: See TracTickets for help on using tickets.