[mapguide-trac] #683: HttpServerConnection.RenderRuntimeMap timeout

MapGuide Open Source trac_mapguide at osgeo.org
Tue Aug 26 06:06:20 EDT 2008


#683: HttpServerConnection.RenderRuntimeMap timeout
-----------------------+----------------------------------------------------
   Reporter:  MaksimS  |       Owner:  ksgeograf
       Type:  defect   |      Status:  new      
   Priority:  low      |   Milestone:           
  Component:  Maestro  |     Version:  2.0.1    
   Severity:  major    |    Keywords:           
External_id:           |  
-----------------------+----------------------------------------------------
 Didn't want to go after reopening of #675 since this one is different.

 During lenghty RenderRuntimeMap() operations (I mean - lenghty on a MG
 server side, i.e. querying some heavy feature source),
 HttpServerConnection.RenderRuntimeMap() throws timeout exception. And it
 happens far below 5 minutes (as in a SVN), maybe after some 20-30 seconds
 at most. Here's a short example:

 {{{
 ' Creating a runtime map
 conn.CreateRuntimeMap(rtMapId, mapDef)

 ' Getting created runtime map instance
 Dim rtMap As RuntimeClasses.RuntimeMap = conn.GetRuntimeMap(rtMapId)

 ' Very heavy layer turned on, returning 20.000 or more parcels
 rtMap.Layers("PARCELS").Visible = True

 ' Commit a change, everything runs fine...
 conn.SaveRuntimeMap(rtMapId, rtMap)

 ' Bang - here's where exception is being thrown after lenghty processing
 on MG server side
 conn.RenderRuntimeMap(rtMapId, 6437225.3698, 4961979.8236, 5000, 400, 400,
 75)
 }}}

 Exception being thrown:

 {{{
 System.Net.WebException was unhandled by user code
   Message="The operation has timed out"
   Source="System"
   StackTrace:
        at System.Net.HttpWebRequest.GetResponse()    at
 OSGeo.MapGuide.MaestroAPI.HttpServerConnection.RenderRuntimeMap(String
 resourceId, Double x, Double y, Double scale, Int32 width, Int32 height,
 Int32 dpi)    at PredmetMapa.Page_Load(Object sender, EventArgs e) in
 D:\DEV\Legalizacija\PredmetMapa.aspx.vb:line 34    at
 System.Web.UI.Control.OnLoad(EventArgs e)    at
 System.Web.UI.Control.LoadRecursive()    at
 System.Web.UI.Page.ProcessRequestMain(Boolean
 includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   InnerException:
 }}}

 This seems to happen occasionally, probably depending on actual MG server
 resource utilization. Maybe AJAX viewer has a solution for this since it
 never returned timeouts on lengthy operations.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/683>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list