Subscriber: OutOfMemoryException
Closed this issue · 4 comments
[01.07.2020 08:34] Erlend Klokkervold:
[2020-06-30 22:37:20] LOG: Exception of type 'System.OutOfMemoryException' was thrown.
[2020-06-30 22:37:20] ERROR Synchronize: Exception of type 'System.OutOfMemoryException' was thrown. at Kartverket.Geosynkronisering.Subscriber.BL.SynchController.DoSynchronization(Int32 datasetId) in /data/temp/geosynkronisering/Kartverket.Geosynkronisering.Subscriber/Kartverket.Geosynkronisering.Subscriber.BL/SynchController.cs:line 346
[2020-06-30 22:37:20] at Test_Subscriber_NetCore.Program.Synchronize(Int32 datasetId) in /data/temp/geosynkronisering/Kartverket.Geosynkronisering.Subscriber/Test_Subscriber_NetCore/Program.cs:line 255
Perhaps rewrite this:
See if we could use this for debugging:
https://www.jetbrains.com/dotmemory/?var=landing&gclsrc=aw.ds&&gclid=EAIaIQobChMI7trP3sOr6gIVSIuyCh04gwiEEAAYASAAEgIXmPD_BwE
We need to not make a new exception as we don't get the entire stacktrace the way it is done now:
https://github.com/kartverket/geosynkronisering/blob/fixDotnetstandard/Kartverket.Geosynkronisering.Subscriber/Kartverket.Geosynkronisering.Subscriber.BL/SynchController.cs#L346