[mapguide-trac] #480: Crash with MgInvalidStreamHeaderException with GETTILEIMAGE (load test)

MapGuide Open Source trac_mapguide at osgeo.org
Mon Apr 20 00:23:19 EDT 2009


#480: Crash with MgInvalidStreamHeaderException with GETTILEIMAGE (load test)
-----------------------------------+----------------------------------------
 Reporter:  zspitzer               |         Owner:          
     Type:  defect                 |        Status:  reopened
 Priority:  high                   |     Milestone:          
Component:  Tile Service           |       Version:  2.1.0   
 Severity:  major                  |    Resolution:          
 Keywords:  out of memory ,  #520  |   External_id:          
-----------------------------------+----------------------------------------
Comment (by uvlite):

 Hi Walt,

 I tried to render the tiles our map on a 1GB windows server machine using
 a most recent build from the build server.

 The server falls over but the exception from FDO does not get propagated
 to MapGuide correctly. I think this needs a bit of thought.

 Generally, the behaviour of the server when memory runs out is bad because
 the tileserver returns SUCCESS for wrongly rendered tiles!!

 [Approach1] do a wait retry for each out of memory exception .... this
 should already serialize memory requests sufficiently to make things
 stable.
 we could create a clever macro for all MEMALLOCS which does exactly this.
 Maybe the allocator plugin for std library containers can be used for that
 also.

 [Approach2] at least propagate more meaningful errors from FDO to mapguide
 so this can be dealt with correctly (e.g. return error message on the tile
 but dont create the tile in cache) thats still better than wrong tiles.

 # Log Type: Error Log
 # Log Parameters: CLIENT,CLIENTIP,USER,ERROR,STACKTRACE
 <2009-04-20T13:30:01>   2088
  Success: Server started.
 <2009-04-20T14:04:41>   5212            192.168.99.99   Anonymous
  Error: Failed to stylize layer: aug 06-ROADS - HWY
         Cannot establish connection.
  StackTrace:
   - MgMappingUtil.StylizeLayers line 763 file
 c:\ci\mapguide\build\mgdev\server\src\services\mapping\MappingUtil.cpp
 <2009-04-20T14:07:28>   5540            192.168.99.99   Anonymous
  Error: Failed to stylize layer: aug 06-ROADS - FWY
         An exception occurred in FDO component.
         An exception occurred in FDO component.
         An error occurred during SDF database access.
  StackTrace:
   - MgMappingUtil.StylizeLayers line 763 file
 c:\ci\mapguide\build\mgdev\server\src\services\mapping\MappingUtil.cpp
 <2009-04-20T14:07:29>   1768            192.168.99.99   Anonymous
  Error: Failed to stylize layer: aug 06-ROADS - MAJ
         An exception occurred in FDO component.
         An exception occurred in FDO component.
         An error occurred during SDF database access.
  StackTrace:
   - MgMappingUtil.StylizeLayers line 763 file
 c:\ci\mapguide\build\mgdev\server\src\services\mapping\MappingUtil.cpp

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/480#comment:12>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list