[mapguide-users] 30 seconds delay after creating +/-100 CreateRuntimeMap calls
BenSav
ben.Savelkoul at geosolutions.be
Tue Feb 28 23:56:48 PST 2017
This is the function we are using to create the runtime map, it is called
from a for-loop:
private void CreateMap(string name, MgMappingService srv)
{
if (!string.IsNullOrEmpty(name))
{
try
{
_log.Info("Trying to create map: " + name);
MgResourceIdentifier resourceID = new
MgResourceIdentifier("Library://" + name + "." +
MgResourceType.MapDefinition);
_log.Info("MapDefinition resource: " +
resourceID.ToString());
srv.CreateRuntimeMap(resourceID, sessionId, 0, 100);
_log.Info("Map created");
}
catch (MgResourceNotFoundException e)
{
_log.Error("Failed to create map: " + name);
_log.Error(e.GetExceptionMessage());
}
catch (Exception e)
{
_log.Error("Failed to create map: " + name);
_log.Error(e.ToString());
}
}
}
This is what is being logged:
09 02 2017 11:22:41 INFO Starting session
09 02 2017 11:22:41 INFO Trying to create map:
DWG/Gasdetectie/Maps/OL_Gasdetectie
09 02 2017 11:22:41 INFO MapDefinition resource:
Library://DWG/Gasdetectie/Maps/OL_Gasdetectie.MapDefinition
09 02 2017 11:22:41 INFO Map created
09 02 2017 11:22:41 INFO Trying to create map:
DWG/Kanaal_gent_terneuzen/Maps/OL_Waterwegen_details
09 02 2017 11:22:41 INFO MapDefinition resource:
Library://DWG/Kanaal_gent_terneuzen/Maps/OL_Waterwegen_details.MapDefinition
09 02 2017 11:22:41 INFO Map created
09 02 2017 11:22:41 INFO Trying to create map:
DWG/Kanaal_gent_terneuzen/Maps/OL_Waterwegen
09 02 2017 11:22:41 INFO MapDefinition resource:
Library://DWG/Kanaal_gent_terneuzen/Maps/OL_Waterwegen.MapDefinition
09 02 2017 11:22:41 INFO Map created
09 02 2017 11:22:41 INFO Trying to create map:
DWG/Info.Bloknrs/Maps/OL_Afdelingsnamen
09 02 2017 11:22:41 INFO MapDefinition resource:
Library://DWG/Info.Bloknrs/Maps/OL_Afdelingsnamen.MapDefinition
09 02 2017 11:22:41 INFO Map created
09 02 2017 11:22:41 INFO Trying to create map:
DWG/Info.Bloknrs/Maps/OL_Info_BlokNrs
09 02 2017 11:22:41 INFO MapDefinition resource:
Library://DWG/Info.Bloknrs/Maps/OL_Info_BlokNrs.MapDefinition
09 02 2017 11:22:41 INFO Map created
.
.
.
09 02 2017 11:22:42 INFO Trying to create map:
DWG/Nutsleidingen_gasvorm/Kooksgas/Maps/OL_196_info
09 02 2017 11:22:42 INFO MapDefinition resource:
Library://DWG/Nutsleidingen_gasvorm/Kooksgas/Maps/OL_196_info.MapDefinition
09 02 2017 11:22:42 INFO Map created
09 02 2017 11:22:42 INFO Trying to create map:
DWG/Nutsleidingen_gasvorm/Kooksgas/Maps/OL_196_kooksgas
*09 02 2017 11:22:42 INFO MapDefinition resource:
Library://DWG/Nutsleidingen_gasvorm/Kooksgas/Maps/OL_196_kooksgas.MapDefinition
09 02 2017 11:23:12 INFO Trying to create map:
DWG/Nutsleidingen_gasvorm/Hoogovengas/Maps/OL_195_RegNr_hoogovengas*
09 02 2017 11:23:12 INFO MapDefinition resource:
Library://DWG/Nutsleidingen_gasvorm/Hoogovengas/Maps/OL_195_RegNr_hoogovengas.MapDefinition
09 02 2017 11:23:12 INFO Map created
09 02 2017 11:23:12 INFO Trying to create map:
DWG/Nutsleidingen_gasvorm/Hoogovengas/Maps/OL_195_info
09 02 2017 11:23:12 INFO MapDefinition resource:
Library://DWG/Nutsleidingen_gasvorm/Hoogovengas/Maps/OL_195_info.MapDefinition
09 02 2017 11:23:12 INFO Map created
So you can see clearly there is a pause or delay of exactly 30 seconds.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/30-seconds-delay-after-creating-100-CreateRuntimeMap-calls-tp5309691p5310061.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list