Memory leak in serilog?

See original GitHub issue

Hi, I’ve been working with Microsoft on a sporadic memory leak in an Azure Asp.net Core App Service running in .Net 4.7.2… When this leak occurs, the process goes from about 500MB in size to 8GB in size in less than two minutes. The Microsoft support person told me that it’s an issue when Serilog is trying to log an exception, it enters some loop. I’m not 100% sure if I agree with this, but here’s what she wrote:

I look into one of the manual dumps you took, top objects in memory: It appears exceptions causing your loggings to behave unexpectedly. The number of Serilog objects closed to 50 millions and almost 2 G in size.


0x00007FFEEF765818      521,319   108,434,352 Microsoft.EntityFrameworkCore.ChangeTracking.Internal.Snapshot,System.Nullable,System.Nullable,System.Nullable,System.Nullable,System.Nullable,System.Guid,System.Guid,System.Guid,System.String>
0x00007FFEEC9FEED8    4,657,095   111,770,280 Serilog.Events.DictionaryValue
0x00007FFEEF7298E0      677,319   119,208,144 Microsoft.EntityFrameworkCore.ChangeTracking.Internal.Snapshot,System.Nullable,System.Nullable,System.Nullable,System.Nullable,System.Nullable,System.Guid>
0x00007FFF45C94FB8      940,339   120,427,000 System.Collections.Generic.HashSet+Slot[]
0x00007FFEED067B50      521,319   129,287,112 MyApp.Modules.MyEntity1.MyEntityMyEntity
0x00007FFEEE646130    1,734,319   138,745,520 Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalClrEntityEntry
0x00007FFEED0674E8      677,298   140,877,984 MyApp.Modules.MyEntity1.MyEntity
0x00007FFF49BD6BA8    3,759,464   158,934,132 System.String
0x00007FFF49BC1BF8    9,969,688   319,030,016 System.Guid
0x00007FFEF026EA68    4,657,087   372,566,960 System.Collections.Generic.Dictionary
0x000002044FE1CDD0    5,837,862   383,222,966 Free
0x00007FFF494C7CF8    5,745,185   459,614,800 System.Collections.Generic.Dictionary
0x00007FFF49BD9490   14,581,219   785,463,224 System.Int32[]
0x00007FFEF026F300    4,656,974 1,018,012,800 System.Collections.Generic.Dictionary+Entry[]
0x00007FFF49BA6730    5,744,607 1,187,403,888 System.Collections.Generic.Dictionary+Entry[]
0x00007FFEEC9FAF18   49,885,180 1,197,244,320 Serilog.Events.ScalarValue
Total 126,186,519 objects, Total size: 7,939,099,934 

Please take a look at this one thread, I am attaching others in a text file for you to check. I hope it helps you to focus on the part of your code that’s having issue. You can look into the exceptions in your logs and try to fix them, and also see if you can change your logging logic. I would remove it since it’s causing more problem!

Let us know if you have any questions.

0:016> knL
# Child-SP          RetAddr           Call Site
00 0000008f`caa721a8 00007fff`56873acf ntdll!ZwWaitForSingleObject+0x14
01 0000008f`caa721b0 00007fff`4bf6cb27 KERNELBASE!WaitForSingleObjectEx+0x8f
02 0000008f`caa72250 00007fff`4bf6cadf clr!CLREventWaitHelper2+0x3c
03 0000008f`caa72290 00007fff`4bf6ca5c clr!CLREventWaitHelper+0x1f
04 0000008f`caa722f0 00007fff`4bf5e0c4 clr!CLREventBase::WaitEx+0x7c
05 (Inline Function) --------`-------- clr!CLREventBase::Wait+0x24
06 0000008f`caa72380 00007fff`4bf5e638 clr!SVR::gc_heap::wait_for_gc_done+0x55
07 0000008f`caa723b0 00007fff`4bf5e6bc clr!SVR::GCHeap::GarbageCollectGeneration+0x108
08 0000008f`caa72410 00007fff`4bf6f1f4 clr!SVR::gc_heap::trigger_gc_for_alloc+0x2c
09 (Inline Function) --------`-------- clr!SVR::gc_heap::try_allocate_more_space+0x1c9
0a (Inline Function) --------`-------- clr!SVR::gc_heap::allocate_more_space+0x1e1
0b (Inline Function) --------`-------- clr!SVR::gc_heap::allocate+0x225
0c (Inline Function) --------`-------- clr!SVR::GCHeap::Alloc+0x2ae
0d (Inline Function) --------`-------- clr!Alloc+0x662
0e (Inline Function) --------`-------- clr!AllocateObject+0x74b
0f 0000008f`caa72450 00007ffe`efca1eb0 clr!JIT_New+0x867
10 0000008f`caa72800 00007ffe`efc14b3e Serilog!Serilog.Capturing.PropertyValueConverter.<TryConvertEnumerable>g__MapToDictionaryElements14_0(System.Collections.IDictionary, Serilog.Parsing.Destructuring)+0x20
11 0000008f`caa72850 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0x7e
12 0000008f`caa728b0 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
13 0000008f`caa72950 00007ffe`efca2bd5 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
14 0000008f`caa729a0 00007fff`45bc8237 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToSequenceElements14_1>d.MoveNext()+0xe5
15 0000008f`caa729f0 00007fff`45bc803b System_Core_ni!System.Linq.Buffer`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]], mscorlib]]..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)+0xffffffff`ffff5887
16 0000008f`caa72a80 00007ffe`ef360b0c System_Core_ni!System.Linq.Enumerable.ToArray[[System.Linq.Parallel.Pair`2[[System.Decimal, mscorlib],[System.Int64, mscorlib]], System.Core]](System.Collections.Generic.IEnumerable`1<System.Linq.Parallel.Pair`2<System.Decimal,Int64>>)+0xffffffff`ffd49a2b
17 0000008f`caa72af0 00007ffe`efc14b91 Serilog!Serilog.Events.SequenceValue..ctor(System.Collections.Generic.IEnumerable`1<Serilog.Events.LogEventPropertyValue>)+0x1c
18 0000008f`caa72b20 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0xd1
19 0000008f`caa72b80 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
1a 0000008f`caa72c20 00007ffe`efca26f0 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
1b 0000008f`caa72c70 00007fff`45bd5218 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToDictionaryElements14_0>d.MoveNext()+0x150
1c 0000008f`caa72cc0 00007ffe`efca2492 System_Core_ni!System.Linq.Enumerable.ToDictionary[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)+0xffffffff`fffffa58
1d 0000008f`caa72d60 00007ffe`efc14b49 Serilog!Serilog.Events.DictionaryValue..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<Serilog.Events.ScalarValue,Serilog.Events.LogEventPropertyValue>>)+0x102
1e 0000008f`caa72db0 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0x89
1f 0000008f`caa72e10 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
20 0000008f`caa72eb0 00007ffe`efca2bd5 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
21 0000008f`caa72f00 00007fff`45bc8237 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToSequenceElements14_1>d.MoveNext()+0xe5
22 0000008f`caa72f50 00007fff`45bc803b System_Core_ni!System.Linq.Buffer`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]], mscorlib]]..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)+0xffffffff`ffff5887
23 0000008f`caa72fe0 00007ffe`ef360b0c System_Core_ni!System.Linq.Enumerable.ToArray[[System.Linq.Parallel.Pair`2[[System.Decimal, mscorlib],[System.Int64, mscorlib]], System.Core]](System.Collections.Generic.IEnumerable`1<System.Linq.Parallel.Pair`2<System.Decimal,Int64>>)+0xffffffff`ffd49a2b
24 0000008f`caa73050 00007ffe`efc14b91 Serilog!Serilog.Events.SequenceValue..ctor(System.Collections.Generic.IEnumerable`1<Serilog.Events.LogEventPropertyValue>)+0x1c
25 0000008f`caa73080 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0xd1
26 0000008f`caa730e0 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
27 0000008f`caa73180 00007ffe`efca26f0 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
28 0000008f`caa731d0 00007fff`45bd5218 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToDictionaryElements14_0>d.MoveNext()+0x150
29 0000008f`caa73220 00007ffe`efca2492 System_Core_ni!System.Linq.Enumerable.ToDictionary[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)+0xffffffff`fffffa58
2a 0000008f`caa732c0 00007ffe`efc14b49 Serilog!Serilog.Events.DictionaryValue..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<Serilog.Events.ScalarValue,Serilog.Events.LogEventPropertyValue>>)+0x102
2b 0000008f`caa73310 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0x89
2c 0000008f`caa73370 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
2d 0000008f`caa73410 00007ffe`efca26f0 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
2e 0000008f`caa73460 00007fff`45bd5218 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToDictionaryElements14_0>d.MoveNext()+0x150
2f 0000008f`caa734b0 00007ffe`efca2492 System_Core_ni!System.Linq.Enumerable.ToDictionary[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)+0xffffffff`fffffa58
30 0000008f`caa73550 00007ffe`efc14b49 Serilog!Serilog.Events.DictionaryValue..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<Serilog.Events.ScalarValue,Serilog.Events.LogEventPropertyValue>>)+0x102
31 0000008f`caa735a0 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0x89
32 0000008f`caa73600 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
33 0000008f`caa736a0 00007ffe`efca2bd5 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
34 0000008f`caa736f0 00007fff`45bc81d8 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToSequenceElements14_1>d.MoveNext()+0xe5
35 0000008f`caa73740 00007fff`45bc803b System_Core_ni!System.Linq.Buffer`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]], mscorlib]]..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)+0xffffffff`ffff5828
36 0000008f`caa737d0 00007ffe`ef360b0c System_Core_ni!System.Linq.Enumerable.ToArray[[System.Linq.Parallel.Pair`2[[System.Decimal, mscorlib],[System.Int64, mscorlib]], System.Core]](System.Collections.Generic.IEnumerable`1<System.Linq.Parallel.Pair`2<System.Decimal,Int64>>)+0xffffffff`ffd49a2b
37 0000008f`caa73840 00007ffe`efc14b91 Serilog!Serilog.Events.SequenceValue..ctor(System.Collections.Generic.IEnumerable`1<Serilog.Events.LogEventPropertyValue>)+0x1c
38 0000008f`caa73870 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0xd1
39 0000008f`caa738d0 00007ffe`efca2836 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
3a 0000008f`caa73970 00007ffe`efca26f0 Serilog!Serilog.Capturing.PropertyValueConverter+DepthLimiter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring)+0x56
3b 0000008f`caa739c0 00007fff`45bd5218 Serilog!Serilog.Capturing.PropertyValueConverter+<<TryConvertEnumerable>g__MapToDictionaryElements14_0>d.MoveNext()+0x150
3c 0000008f`caa73a10 00007ffe`efca2492 System_Core_ni!System.Linq.Enumerable.ToDictionary[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Collections.Generic.IEqualityComparer`1<System.__Canon>)+0xffffffff`fffffa58
3d 0000008f`caa73ab0 00007ffe`efc14b49 Serilog!Serilog.Events.DictionaryValue..ctor(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<Serilog.Events.ScalarValue,Serilog.Events.LogEventPropertyValue>>)+0x102
3e 0000008f`caa73b00 00007ffe`ec7f7446 Serilog!Serilog.Capturing.PropertyValueConverter.TryConvertEnumerable(System.Object, Serilog.Parsing.Destructuring, System.Type, Serilog.Events.LogEventPropertyValue ByRef)+0x89
3f 0000008f`caa73b60 00007ffe`edafa7a0 Serilog!Serilog.Capturing.PropertyValueConverter.CreatePropertyValue(System.Object, Serilog.Parsing.Destructuring, Int32)+0x156
40 0000008f`caa73c00 00007ffe`ec7f8878 Serilog!Serilog.Capturing.MessageTemplateProcessor.CreateProperty(System.String, System.Object, Boolean)+0x50
41 0000008f`caa73c50 00007ffe`ec7f814b Serilog_Exceptions!Serilog.Exceptions.Core.ExceptionEnricher.Enrich(Serilog.Events.LogEvent, Serilog.Core.ILogEventPropertyFactory)+0x58
42 0000008f`caa73ca0 00007ffe`ec7f7ed9 Serilog!Serilog.Core.Enrichers.SafeAggregateEnricher.Enrich(Serilog.Events.LogEvent, Serilog.Core.ILogEventPropertyFactory)+0x5b
43 0000008f`caa73cf0 00007ffe`ed300830 Serilog!Serilog.Core.Logger.Dispatch(Serilog.Events.LogEvent)+0x39
44 0000008f`caa73d30 00007fff`4bdb1f3c Serilog_Extensions_Logging!Serilog.Extensions.Logging.SerilogLogger.Log[[System.__Canon, mscorlib]](Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, System.__Canon, System.Exception, System.Func`3<System.__Canon,System.Exception,System.String>)+0x550
45 0000008f`caa73e40 00007ffe`ed302416 clr!InstantiatingMethodStubWorker+0xbc
46 0000008f`caa73f00 00007ffe`ef3cb811 Microsoft_Extensions_Logging_Abstractions!Microsoft.Extensions.Logging.LoggerMessage+<>c__DisplayClass6_0`2[[System.__Canon, mscorlib],[System.__Canon, mscorlib]].<Define>b__0(Microsoft.Extensions.Logging.ILogger, System.__Canon, System.__Canon, System.Exception)+0x146
47 0000008f`caa73fb0 00007ffe`eda7fdb1 Microsoft_AspNetCore_Server_Kestrel_Core!Microsoft.AspNetCore.Server.Kestrel.Core.Internal.KestrelTrace.ApplicationError(System.String, System.String, System.Exception)+0x31
48 0000008f`caa73fe0 00007fff`4be0989d Microsoft_AspNetCore_Server_Kestrel_Core!Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol+<ProcessRequests>d__185`1[[Microsoft.AspNetCore.Hosting.Internal.HostingApplication+Context, Microsoft.AspNetCore.Hosting]].MoveNext()+0xce1
49 0000008f`caa74030 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
4a 0000008f`caa74120 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
4b 0000008f`caa741c0 00007fff`59faa5fd clr!ProcessCLRException+0x31c
4c 0000008f`caa742a0 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
4d 0000008f`caa742d0 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
4e 0000008f`caa749b0 00007fff`4be0a33b clr!ClrUnwindEx+0x40
4f 0000008f`caa74ed0 00007fff`59faa57d clr!ProcessCLRException+0x2e9
50 0000008f`caa74fb0 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
51 0000008f`caa74fe0 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
52 0000008f`caa756e0 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
53 0000008f`caa75ec0 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
54 0000008f`caa75fa0 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
55 0000008f`caa760a0 00007fff`4a3868ef clr!IL_Throw+0x10b
56 0000008f`caa76250 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
57 0000008f`caa76280 00007ffe`eda7f703 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
58 0000008f`caa762b0 00007fff`499b3423 Microsoft_AspNetCore_Server_Kestrel_Core!Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol+<ProcessRequests>d__185`1[[Microsoft.AspNetCore.Hosting.Internal.HostingApplication+Context, Microsoft.AspNetCore.Hosting]].MoveNext()+0x633
59 0000008f`caa764a0 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
5a 0000008f`caa76570 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
5b 0000008f`caa765a0 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
5c 0000008f`caa765f0 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
5d 0000008f`caa76640 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
5e 0000008f`caa766d0 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
5f 0000008f`caa76730 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
60 0000008f`caa76780 00007ffe`edaa5f67 mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
61 0000008f`caa767c0 00007fff`4be0989d Microsoft_AspNetCore_Server_IISIntegration!Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware+<Invoke>d__13.MoveNext()+0x717
62 0000008f`caa76840 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
63 0000008f`caa76930 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
64 0000008f`caa769d0 00007fff`59faa5fd clr!ProcessCLRException+0x31c
65 0000008f`caa76ab0 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
66 0000008f`caa76ae0 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
67 0000008f`caa771c0 00007fff`4be0a33b clr!ClrUnwindEx+0x40
68 0000008f`caa776e0 00007fff`59faa57d clr!ProcessCLRException+0x2e9
69 0000008f`caa777c0 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
6a 0000008f`caa777f0 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
6b 0000008f`caa77ef0 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
6c 0000008f`caa786d0 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
6d 0000008f`caa787b0 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
6e 0000008f`caa788b0 00007fff`4a3868ef clr!IL_Throw+0x10b
6f 0000008f`caa78a60 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
70 0000008f`caa78a90 00007ffe`edaa5eef mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
71 0000008f`caa78ac0 00007fff`499b3423 Microsoft_AspNetCore_Server_IISIntegration!Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware+<Invoke>d__13.MoveNext()+0x69f
72 0000008f`caa78bd0 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
73 0000008f`caa78ca0 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
74 0000008f`caa78cd0 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
75 0000008f`caa78d20 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
76 0000008f`caa78d70 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
77 0000008f`caa78e00 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
78 0000008f`caa78e60 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
79 0000008f`caa78eb0 00007ffe`edaa6702 mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
7a 0000008f`caa78ef0 00007fff`4be0989d MyAppApi!MyAppApi.Startup+<>c+<<Configure>b__12_0>d.MoveNext()+0x192
7b 0000008f`caa78f40 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
7c 0000008f`caa79030 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
7d 0000008f`caa790d0 00007fff`59faa5fd clr!ProcessCLRException+0x31c
7e 0000008f`caa791b0 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
7f 0000008f`caa791e0 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
80 0000008f`caa798c0 00007fff`4be0a33b clr!ClrUnwindEx+0x40
81 0000008f`caa79de0 00007fff`59faa57d clr!ProcessCLRException+0x2e9
82 0000008f`caa79ec0 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
83 0000008f`caa79ef0 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
84 0000008f`caa7a5f0 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
85 0000008f`caa7add0 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
86 0000008f`caa7aeb0 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
87 0000008f`caa7afb0 00007fff`4a3868ef clr!IL_Throw+0x10b
88 0000008f`caa7b160 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
89 0000008f`caa7b190 00007fff`4a3865ac mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
8a 0000008f`caa7b1c0 00007ffe`edaa6691 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.GetResult()+0x1c
8b 0000008f`caa7b1f0 00007fff`499b3423 MyAppApi!MyAppApi.Startup+<>c+<<Configure>b__12_0>d.MoveNext()+0x121
8c 0000008f`caa7b280 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
8d 0000008f`caa7b350 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
8e 0000008f`caa7b380 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
8f 0000008f`caa7b3d0 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
90 0000008f`caa7b420 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
91 0000008f`caa7b4b0 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
92 0000008f`caa7b510 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
93 0000008f`caa7b560 00007ffe`eeb5f800 mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
94 0000008f`caa7b5a0 00007fff`4be0989d Microsoft_AspNetCore_Cors!Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware+<InvokeCore>d__18.MoveNext()+0x3e0
95 0000008f`caa7b610 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
96 0000008f`caa7b700 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
97 0000008f`caa7b7a0 00007fff`59faa5fd clr!ProcessCLRException+0x31c
98 0000008f`caa7b880 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
99 0000008f`caa7b8b0 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
9a 0000008f`caa7bf90 00007fff`4be0a33b clr!ClrUnwindEx+0x40
9b 0000008f`caa7c4b0 00007fff`59faa57d clr!ProcessCLRException+0x2e9
9c 0000008f`caa7c590 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
9d 0000008f`caa7c5c0 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
9e 0000008f`caa7ccc0 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
9f 0000008f`caa7d4a0 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
a0 0000008f`caa7d580 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
a1 0000008f`caa7d680 00007fff`4a3868ef clr!IL_Throw+0x10b
a2 0000008f`caa7d830 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
a3 0000008f`caa7d860 00007ffe`eeb5f78b mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
a4 0000008f`caa7d890 00007fff`499b3423 Microsoft_AspNetCore_Cors!Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware+<InvokeCore>d__18.MoveNext()+0x36b
a5 0000008f`caa7d910 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
a6 0000008f`caa7d9e0 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
a7 0000008f`caa7da10 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
a8 0000008f`caa7da60 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
a9 0000008f`caa7dab0 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
aa 0000008f`caa7db40 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
ab 0000008f`caa7dba0 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
ac 0000008f`caa7dbf0 00007ffe`edaab95e mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
ad 0000008f`caa7dc30 00007fff`4be0989d Swashbuckle_AspNetCore_Swagger!Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware+<Invoke>d__6.MoveNext()+0x3ce
ae 0000008f`caa7dc80 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
af 0000008f`caa7dd70 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
b0 0000008f`caa7de10 00007fff`59faa5fd clr!ProcessCLRException+0x31c
b1 0000008f`caa7def0 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
b2 0000008f`caa7df20 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
b3 0000008f`caa7e600 00007fff`4be0a33b clr!ClrUnwindEx+0x40
b4 0000008f`caa7eb20 00007fff`59faa57d clr!ProcessCLRException+0x2e9
b5 0000008f`caa7ec00 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
b6 0000008f`caa7ec30 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
b7 0000008f`caa7f330 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
b8 0000008f`caa7fb10 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
b9 0000008f`caa7fbf0 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
ba 0000008f`caa7fcf0 00007fff`4a3868ef clr!IL_Throw+0x10b
bb 0000008f`caa7fea0 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
bc 0000008f`caa7fed0 00007ffe`edaab6b3 mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
bd 0000008f`caa7ff00 00007fff`499b3423 Swashbuckle_AspNetCore_Swagger!Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware+<Invoke>d__6.MoveNext()+0x123
be 0000008f`caa7ffa0 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
bf 0000008f`caa80070 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
c0 0000008f`caa800a0 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
c1 0000008f`caa800f0 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
c2 0000008f`caa80140 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
c3 0000008f`caa801d0 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
c4 0000008f`caa80230 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
c5 0000008f`caa80280 00007ffe`edaad1d3 mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
c6 0000008f`caa802c0 00007fff`4be0989d Swashbuckle_AspNetCore_SwaggerUI!Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware+<Invoke>d__5.MoveNext()+0x383
c7 0000008f`caa80310 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
c8 0000008f`caa80400 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
c9 0000008f`caa804a0 00007fff`59faa5fd clr!ProcessCLRException+0x31c
ca 0000008f`caa80580 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
cb 0000008f`caa805b0 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
cc 0000008f`caa80c90 00007fff`4be0a33b clr!ClrUnwindEx+0x40
cd 0000008f`caa811b0 00007fff`59faa57d clr!ProcessCLRException+0x2e9
ce 0000008f`caa81290 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
cf 0000008f`caa812c0 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
d0 0000008f`caa819c0 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
d1 0000008f`caa821a0 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
d2 0000008f`caa82280 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
d3 0000008f`caa82380 00007fff`4a3868ef clr!IL_Throw+0x10b
d4 0000008f`caa82530 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
d5 0000008f`caa82560 00007ffe`edaad16a mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
d6 0000008f`caa82590 00007fff`499b3423 Swashbuckle_AspNetCore_SwaggerUI!Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware+<Invoke>d__5.MoveNext()+0x31a
d7 0000008f`caa825f0 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
d8 0000008f`caa826c0 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
d9 0000008f`caa826f0 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
da 0000008f`caa82740 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
db 0000008f`caa82790 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
dc 0000008f`caa82820 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
dd 0000008f`caa82880 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
de 0000008f`caa828d0 00007ffe`edaadbe4 mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
df 0000008f`caa82910 00007fff`4be0989d Microsoft_AspNetCore_StaticFiles!Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware+<Invoke>d__7.MoveNext()+0x834
e0 0000008f`caa82980 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
e1 0000008f`caa82a70 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
e2 0000008f`caa82b10 00007fff`59faa5fd clr!ProcessCLRException+0x31c
e3 0000008f`caa82bf0 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
e4 0000008f`caa82c20 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
e5 0000008f`caa83300 00007fff`4be0a33b clr!ClrUnwindEx+0x40
e6 0000008f`caa83820 00007fff`59faa57d clr!ProcessCLRException+0x2e9
e7 0000008f`caa83900 00007fff`59f3fd23 ntdll!RtlpExecuteHandlerForException+0xd
e8 0000008f`caa83930 00007fff`59f41a39 ntdll!RtlDispatchException+0x373
e9 0000008f`caa84030 00007fff`56873c58 ntdll!RtlRaiseException+0x2d9
ea 0000008f`caa84810 00007fff`4be0a83a KERNELBASE!RaiseException+0x68
eb 0000008f`caa848f0 00007fff`4be0aa9a clr!RaiseTheExceptionInternalOnly+0x2aa
ec 0000008f`caa849f0 00007fff`4a3868ef clr!IL_Throw+0x10b
ed 0000008f`caa84ba0 00007fff`499fb6fc mscorlib_ni!System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()+0x1f
ee 0000008f`caa84bd0 00007ffe`edaadb2f mscorlib_ni!System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)+0x3c
ef 0000008f`caa84c00 00007fff`499b3423 Microsoft_AspNetCore_StaticFiles!Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware+<Invoke>d__7.MoveNext()+0x77f
f0 0000008f`caa84d60 00007fff`499b32b4 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x163
f1 0000008f`caa84e30 00007fff`499fea8c mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
f2 0000008f`caa84e60 00007fff`49a05882 mscorlib_ni!System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()+0x6c
f3 0000008f`caa84eb0 00007fff`499816f7 mscorlib_ni!System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)+0x62
f4 0000008f`caa84f00 00007fff`499fc060 mscorlib_ni!System.Threading.Tasks.Task.FinishContinuations()+0x3d7
f5 0000008f`caa84f90 00007fff`49a08641 mscorlib_ni!System.Threading.Tasks.Task.Finish(Boolean)+0x50
f6 0000008f`caa84ff0 00007fff`499fd6c3 mscorlib_ni!System.Threading.Tasks.Task`1[[System.__Canon, mscorlib]].TrySetException(System.Object)+0xade1
f7 0000008f`caa85040 00007ffe`edaaf185 mscorlib_ni!System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib]].SetException(System.Exception)+0xffffffff`fffff893
f8 0000008f`caa85080 00007fff`4be0989d IdentityServer4!IdentityServer4.Hosting.BaseUrlMiddleware+<Invoke>d__3.MoveNext()+0x195
f9 0000008f`caa850d0 00007fff`4be09764 clr!ExceptionTracker::CallHandler+0xfd
fa 0000008f`caa851c0 00007fff`4be09678 clr!ExceptionTracker::CallCatchHandler+0x90
fb 0000008f`caa85260 00007fff`59faa5fd clr!ProcessCLRException+0x31c
fc 0000008f`caa85340 00007fff`59f406ba ntdll!RtlpExecuteHandlerForUnwind+0xd
fd 0000008f`caa85370 00007fff`4be0a380 ntdll!RtlUnwindEx+0x38a
fe 0000008f`caa85a50 00007fff`4be0a33b clr!ClrUnwindEx+0x40
ff 0000008f`caa85f70 00007fff`59faa57d clr!ProcessCLRException+0x2e9

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:25 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
Homertaxcommented, Jan 30, 2019

I had a very similar situation. My project used Serilog.Exceptions and .Enrich.WithExceptionDetails() as well as EF Core. On certain EF Core db exceptions it would trigger a SELECT of all data in every table included in the context! Obviously the memory usage skyrocketed. Removing .Enrich.WithExceptionDetails() solved the issue, but I never had time to investigate what was happening.

3reactions
joshmouchcommented, Feb 22, 2019

Thanks for the clarification. I added the destructor back in with more restrictive settings, and I started seeing the memory leak again, but this time it’s much slower and I can actually get a memory dump as it’s occurring. The objects are definitely all EntityFramework core-related, though I can’t tell from the dump what the root objects are that’s hanging on to them. I’m going to have to guess Serilog, since it doesn’t occur unless I have the Destructure enabled.

.Destructure.ToMaximumCollectionCount(10) // Default is int.MaxValue
			.Destructure.ToMaximumStringLength(1024) // Default is int.MaxValue
			.Destructure.ToMaximumDepth(5) // Default is 10
			.Enrich.WithExceptionDetails(new DestructuringOptionsBuilder()
				.WithDefaultDestructurers()
				.WithIgnoreStackTraceAndTargetSiteExceptionFilter()
				.WithDestructuringDepth(5) // default is 10
			)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Memory leak in .NET Core 3.0 app when using NLog or ...
I am having a strange issue with .NET Core 3.0 while using loggers. The app works ok on Windows, but when I start...
Read more >
Perfect recipe to take down hosting machine by memory leak
Opened dump file in dotnet-dump and heap-stat pointed that there are 4 types from serilog namespace taking 30gb memory on heap.
Read more >
Debug a memory leak in .NET Core
This tutorial uses a sample app, which intentionally leaks memory, as an exercise. You can also analyze apps that unintentionally leak memory.
Read more >
Serilog. Sinks. Elasticsearch memory leaks to large ...
Serilog. Sinks. Elasticsearch memory leaks to large memory and not GC. Does this issue relate to a new feature or an existing bug?...
Read more >
8 Ways You can Cause Memory Leaks in .NET : r/dotnet
Forget to Dispose an object there are no references to, memory leak (though TECHNICALLY not since GC cleans it up eventually, though there...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found