System.OutOfMemoryException in CLR 64bit application - exception

I'm trying to figure out why we hit a System.OutOfMemoryException in our server application. The machine has 256Gb memory and 48 cores, and the exception happens when it's using around 50Gb - 70Gb, so plenty of headroom there.
I have a dump, but unfortunately only after the stack has been unwinded. Using WinDbg and this command:
.foreach(tempVariable {!dumpheap -type System.OutOfMemoryException -short}){!pe -nested tempVariable;.echo *************}
I can see there are a lot of exceptions on the heap of this type:
Exception object: 0000009034f610d0
Exception type: System.OutOfMemoryException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 8007000e
Nested exception -------------------------------------------------------------
Exception object: 00000097711dca00
Exception type: System.OutOfMemoryException
Message: <none>
InnerException: <none>
StackTrace (generated):
SP IP Function
0000009FF5115F70 0000000000000000 mscorlib_ni!System.Environment.GetResourceFromDefault(System.String)+0x1
0000009FF5115F70 00007FF83630240E mscorlib_ni!System.Environment.GetResourceString(System.String, System.Object[])+0xe
0000009FF5115FB0 00007FF7DA46CCAC UNKNOWN!common2.taskservice.SimpleLockingTaskQueue.RunReadonlyEvent(TaskQueueEntry)+0xfbc
0000009FF511E7E0 00007FF7DA46BCD1 UNKNOWN!common2.taskservice.SimpleLockingTaskQueue+<>c__DisplayClass31_0.<MainQueueWorkerThread>b__1()+0x31
0000009FF511E810 00007FF83638D436 mscorlib_ni!System.Threading.Tasks.Task.Execute()+0x46
StackTraceString: <none>
HResult: 8007000e
*************
Exception object: 0000009056032ef0
Exception type: System.OutOfMemoryException
Message: <none>
InnerException: <none>
StackTrace (generated):
SP IP Function
0000009F533FE430 0000000000000000 mscorlib_ni!System.Threading.Monitor.Enter(System.Object)+0x1
0000009F533FE430 00007FF7DA361FD0 UNKNOWN!common2.objectevents.RequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].EventCall(System.Action)+0xa0
0000009F533FE7C0 00007FF7DA609774 UNKNOWN!common2.objectevents.RequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].<ExecuteTail>b__56_0()+0x44
0000009F533FE7F0 00007FF7DA46BEBB UNKNOWN!common2.taskservice.SimpleLockingTaskQueue.RunReadonlyEvent(TaskQueueEntry)+0x1cb
So almost all of the OutOfMemoryException are within the GetResourceFromDefault or Monitor.Enter(). I guess the first handler is trying to allocate memory to display the locale version of the exception? But what about the Monitor.Enter()?
The UNKNOWN module is of course our application..
Anyone has any clues on how to figure out what exactly could be causing the exception?
Edit: More info
!gchandles
...
Statistics:
MT Count TotalSize Class Name
00007ff83993f3b0 1 40 System.Xml.Linq.XNamespace
00007ff836567040 1 48 System.SharedStatics
00007ff835e7b208 1 64 System.EventHandler`1[[Windows.Foundation.Diagnostics.TracingStatusChangedEventArgs, mscorlib]]
00007ff836566f28 3 72 System.Object
00007ff836534af8 1 80 System.Threading.PinnableBufferCache
00007ff831f51b88 1 80 System.Diagnostics.BooleanSwitch
00007ff831f45468 3 120 System.Net.TimerThread+TimerQueue
00007ff836567f70 2 128 System.Security.PermissionSet
00007ff836566e50 1 160 System.ExecutionEngineException
00007ff836566dd8 1 160 System.StackOverflowException
00007ff836566b78 1 160 System.Exception
00007ff836563900 1 192 System.Diagnostics.Tracing.FrameworkEventSource
00007ff836559a50 1 192 System.Threading.Tasks.TplEtwProvider
00007ff836548898 1 192 System.Collections.Concurrent.CDSCollectionETWBCLProvider
00007ff836534b58 1 192 System.Threading.PinnableBufferCacheEventSource
00007ff836525928 1 192 System.Threading.CdsSyncEtwBCLProvider
00007ff831f356e8 1 192 System.PinnableBufferCacheEventSource
00007ff82d10a570 1 192 System.Web.TelemetryEventSource
00007ff836567100 1 216 System.AppDomain
00007ff836574be0 2 320 System.NotSupportedException
00007ff836566ec8 2 320 System.Threading.ThreadAbortException
00007ff831f39f88 4 320 System.PinnableBufferCache
00007ff831f45658 6 336 System.Net.Logging+NclTraceSource
00007ff8365602b0 7 448 Microsoft.Win32.UnsafeNativeMethods+ManifestEtw+EtwEnableCallback
00007ff831f45740 6 480 System.Diagnostics.SourceSwitch
00007ff831f34d10 3 600 System.Net.ServicePoint
00007ff7d98575e0 4 704 common2.objectevents.GlobalCacheRetryException
00007ff8388c0ca8 33 2112 System.DirectoryServices.Protocols.VERIFYSERVERCERT
00007ff8388c5150 33 3168 System.DirectoryServices.Protocols.LdapConnection
00007ff83656c988 7 20504 System.Byte[]
00007ff836566d60 153 24480 System.OutOfMemoryException
00007ff836567d28 1263 121248 System.Threading.Thread
00007ff836548510 1 156336 System.Int64[]
00007ff83654a7d0 3835 276120 System.Reflection.Emit.DynamicResolver
00007ff83657fc70 2084 333440 System.RuntimeType+RuntimeTypeCache
00007ff836566fc0 480 502616 System.Object[]
00007ff835e6f918 90017 10081904 System.Threading.OverlappedData
Total 97964 objects
Handles:
Strong Handles: 815
Pinned Handles: 23
Async Pinned Handles: 90017
Ref Count Handles: 1
Weak Long Handles: 5959
Weak Short Handles: 1149
The faulting thread and the stack
0:134> ~#s
ntdll!NtWaitForSingleObject+0xa:
00007ff8`4b19070a c3 ret
0:134> !pe
Exception object: 00000097711df1a8
Exception type: System.OutOfMemoryException
Message: <none>
InnerException: <none>
StackTrace (generated):
SP IP Function
0000009FF5110C60 0000000000000000 mscorlib_ni!System.Threading.Monitor.Enter(System.Object)+0x1
0000009FF5110C60 00007FF83638C87E mscorlib_ni!System.Threading.Tasks.Task.AddException(System.Object, Boolean)+0xae
0000009FF5110CD0 00007FF836D1B4C8 mscorlib_ni!System.Threading.Tasks.Task.HandleException(System.Exception)+0x88
0000009FF5110D20 00007FF83638D4AB mscorlib_ni!System.Threading.Tasks.Task.Execute()+0xbb
0000009FF511E850 00007FF83633CA72 mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x162
0000009FF511E920 00007FF83633C904 mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+0x14
0000009FF511E950 00007FF83638D6DC mscorlib_ni!System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)+0x21c
0000009FF511EA00 00007FF83638CDF3 mscorlib_ni!System.Threading.Tasks.Task.ExecuteEntry(Boolean)+0x73
0000009FF511EA40 00007FF836374882 mscorlib_ni!System.Threading.ThreadPoolWorkQueue.Dispatch()+0x152
Heap of free objects
0:134> !dumpheap -stat -type Free
Statistics:
MT Count TotalSize Class Name
00007ff831f35af8 1 32 System.Net.SafeLocalFree
00007ff831f39188 1 48 System.Net.SafeFreeCredential_SECURITY
00007ff831f3abd0 11 440 System.Net.SafeFreeContextBufferChannelBinding_SECURITY
0000009032e03d20 18266055 5247426202 Free
Total 18266068 objects
Fragmented blocks larger than 0.5 MB:
Addr Size Followed by
0000009052cca810 13.7MB 0000009053a72bc0 dbtaskmessages.KeyValueObject
00000090ef377af0 11.4MB 00000090efedffe0 System.String
00000090f14cf6c0 20.8MB 00000090f2996d18 dbtaskmessages.KeyValueObject
000000912a19b2b8 12.6MB 000000912ae3dbb0 System.Collections.Concurrent.ConcurrentDictionary`2+Node[[System.Int64, mscorlib],[System.Object, mscorlib]]
00000091ec96bbd0 10.3MB 00000091ed3bd0f8 System.Collections.Concurrent.ConcurrentDictionary`2+Node[[System.Int64, mscorlib],[System.Object, mscorlib]]
00000091ed8e66f8 13.0MB 00000091ee5efe20 System.String
00000091efce52b8 10.1MB 00000091f07067b0 System.Collections.Concurrent.ConcurrentDictionary`2+Node[[System.Int64, mscorlib],[System.Object, mscorlib]]
000000922a3946e0 10.1MB 000000922ada5c48 System.Collections.Concurrent.ConcurrentQueue`1+Segment[[System.Action, mscorlib]]
000000926c6395f8 15.6MB 000000926d5d02e0 System.Int32[]
000000943169ca50 11.4MB 000000943220d3c0 System.Collections.Concurrent.ConcurrentDictionary`2+Node[[System.Int64, mscorlib],[System.Object, mscorlib]]
00000094a39033d0 12.4MB 00000094a4573ee0 System.Collections.Concurrent.ConcurrentDictionary`2+Node[[System.Int64, mscorlib],[System.Object, mscorlib]]
000000955e5ef658 10.3MB 000000955f044318 common2.database.GlobalCaching.CachedObjectQueryTable`3+CachedCollection[[HnG_States.ProtoObjects.SocialConnection, HnG_States],[HnG_States.ProtoObjects.Indexes.SocialConnectionIndex+IndexByInviterAndInvitee, HnG_States],[System.String, mscorlib]]
00000098dcae2108 10.6MB 00000098dd57b508 common2.database.CachingKeyValueObject
00000098e7f6cb68 14.2MB 00000098e8d9da30 System.String
0000009ba8be9868 10.4MB 0000009ba9655030 Microsoft.Win32.SafeHandles.SafeWaitHandle
0000009baf6351a0 23.9MB 0000009bb0e18a20 System.UInt64[]
0000009be4ae9160 12.8MB 0000009be57a94c8 System.String
This list only contains objects >10Mb - in total there is 1145 objects
The CLR stack from the faulting thread
0:134> !clrstack
OS Thread Id: 0x1778 (134)
Child SP IP Call Site
0000009ff5110b68 00007ff84b19070a [HelperMethodFrame_1OBJ: 0000009ff5110b68] System.Threading.Monitor.Enter(System.Object)
0000009ff5110c60 00007ff83638c87e System.Threading.Tasks.Task.AddException(System.Object, Boolean) [f:\dd\ndp\clr\src\BCL\system\threading\Tasks\Task.cs # 2041]
0000009ff5110cd0 00007ff836d1b4c8 System.Threading.Tasks.Task.HandleException(System.Exception) [f:\dd\ndp\clr\src\BCL\system\threading\Tasks\Task.cs # 2929]
0000009ff5110d20 00007ff83638d4ab System.Threading.Tasks.Task.Execute() [f:\dd\ndp\clr\src\BCL\system\threading\Tasks\Task.cs # 2515]
0000009ff5115cd8 00007ff838d3120d [GCFrame: 0000009ff5115cd8]
0000009ff5115e78 00007ff838d3120d [HelperMethodFrame_2OBJ: 0000009ff5115e78] System.Environment.GetResourceFromDefault(System.String)
0000009ff5115f70 00007ff83630240e System.Environment.GetResourceString(System.String, System.Object[]) [f:\dd\ndp\clr\src\BCL\system\environment.cs # 1332]
0000009ff5115fb0 00007ff7da46ccac common2.taskservice.SimpleLockingTaskQueue.RunReadonlyEvent(TaskQueueEntry)
0000009ff511af78 00007ff838d3120d [GCFrame: 0000009ff511af78]
0000009ff511b118 00007ff838d3120d [HelperMethodFrame_2OBJ: 0000009ff511b118] System.Environment.GetResourceFromDefault(System.String)
0000009ff511b210 00007ff83630240e System.Environment.GetResourceString(System.String, System.Object[]) [f:\dd\ndp\clr\src\BCL\system\environment.cs # 1332]
0000009ff511b250 00007ff836386e87 System.Exception.ToString(Boolean, Boolean) [f:\dd\ndp\clr\src\BCL\system\exception.cs # 439]
0000009ff511b2a0 00007ff7da362b87 common2.objectevents.RequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].EventCall(System.Action)
0000009ff511d408 00007ff838d3120d [HelperMethodFrame_1OBJ: 0000009ff511d408] System.Threading.Monitor.Enter(System.Object)
0000009ff511d500 00007ff7da0aa16a System.Collections.Concurrent.ConcurrentDictionary`2[[System.Int64, mscorlib],[System.__Canon, mscorlib]].AcquireLocks(Int32, Int32, Int32 ByRef) [f:\dd\ndp\clr\src\BCL\system\Collections\Concurrent\ConcurrentDictionary.cs # 1911]
0000009ff511d560 00007ff7da489e91 System.Collections.Concurrent.ConcurrentDictionary`2[[System.Int64, mscorlib],[System.__Canon, mscorlib]].GetKeys() [f:\dd\ndp\clr\src\BCL\system\Collections\Concurrent\ConcurrentDictionary.cs # 1955]
0000009ff511d5c0 00007ff7da489c4a common2.database.KeyIdTable`1[[System.__Canon, mscorlib]].GetIds(System.Collections.Generic.List`1, System.__Canon)
0000009ff511d620 00007ff7da489864 common2.database.SimpleObjectQueryTable`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Get(System.__Canon, common2.database.RetrieveContext)
0000009ff511d7d0 00007ff7da4891e5 common2.database.ObjectTable.Query[[System.__Canon, mscorlib]](System.__Canon, common2.database.RetrieveContext)
0000009ff511d880 00007ff7da488ecf common2.database.GlobalCaching.ContextualPureObjectQuery`1[[System.__Canon, mscorlib]].Query[[System.__Canon, mscorlib]](System.__Canon)
0000009ff511d980 00007ff7da488236 common2.database.CacheObjectQuery`1[[System.__Canon, mscorlib]].Query[[System.__Canon, mscorlib]](System.__Canon)
0000009ff511daa0 00007ff7da5d661d HnG_States.timeevent_extensions.By_ObjType_ObjId(common2.database.Interfaces.IObjectTableQuery`1, System.String, Int64)
0000009ff511db00 00007ff7da5cb610 WarServer.StrategyCleanup_CronJob.CleanupTransports(common2.database.Interfaces.IObjectDbConnection2, HnG_States.ProtoObjects.war)
0000009ff511dca0 00007ff7da5c9aab WarServer.StrategyCleanup_CronJob.HandleCronJob()
0000009ff511dd70 00007ff7da5c28fa common2.objectevents.CronJobRequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].Handle()
0000009ff511deb0 00007ff7da3623ec common2.objectevents.RequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].EventCall(System.Action)
0000009ff511e240 00007ff7da361eaf common2.objectevents.RequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].HandleEvent()
0000009ff511e2e0 00007ff7da5ae7a0 common2.objectevents.ClientRequestEventHandler`3[[System.__Canon, mscorlib],[System.__Canon, mscorlib],[System.__Canon, mscorlib]].HandleEvent()
0000009ff511e390 00007ff7da46bebb common2.taskservice.SimpleLockingTaskQueue.RunReadonlyEvent(TaskQueueEntry)
0000009ff511e7e0 00007ff7da46bcd1 common2.taskservice.SimpleLockingTaskQueue+c__DisplayClass31_0.b__1()
0000009ff511e810 00007ff83638d436 System.Threading.Tasks.Task.Execute() [f:\dd\ndp\clr\src\BCL\system\threading\Tasks\Task.cs # 2498]
0000009ff511e850 00007ff83633ca72 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) [f:\dd\ndp\clr\src\BCL\system\threading\executioncontext.cs # 954]
0000009ff511e920 00007ff83633c904 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) [f:\dd\ndp\clr\src\BCL\system\threading\executioncontext.cs # 902]
0000009ff511e950 00007ff83638d6dc System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) [f:\dd\ndp\clr\src\BCL\system\threading\Tasks\Task.cs # 2827]
0000009ff511ea00 00007ff83638cdf3 System.Threading.Tasks.Task.ExecuteEntry(Boolean) [f:\dd\ndp\clr\src\BCL\system\threading\Tasks\Task.cs # 2767]
0000009ff511ea40 00007ff836374882 System.Threading.ThreadPoolWorkQueue.Dispatch() [f:\dd\ndp\clr\src\BCL\system\threading\threadpool.cs # 820]
0000009ff511eed8 00007ff838bd6793 [DebuggerU2MCatchHandlerFrame: 0000009ff511eed8]
Condensed output from !threads
0:134> !threads
ThreadCount: 1154
UnstartedThread: 0
BackgroundThread: 243
PendingThread: 0
DeadThread: 905
Hosted Runtime: no
Lock
ID OSID ThreadOBJ State GC Mode GC Alloc Context Domain Count Apt Exception
134 1111 1778 0000009f5fcc1e00 10a9228 Preemptive 00000097711E0D00:00000097711E1190 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000097711df1a8 (nested exceptions)
135 1250 1288 0000009fef1bc510 1029228 Preemptive 000000A4D5D27438:000000A4D5D28868 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a4d5d258e0 (nested exceptions)
136 1298 c20 0000009f5fc995c0 10a9228 Preemptive 0000009A2E09FA40:0000009A2E0A02A0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009a2e098cd0 (nested exceptions)
138 1332 34c8 0000009f5e739410 1029228 Preemptive 000000A4447D6088:000000A4447D68E8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a4447d1198 (nested exceptions)
137 1309 1bac 0000009f5fd1ded0 1029228 Preemptive 000000905604D918:000000905604E178 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009056033c68 (nested exceptions)
139 1064 2378 000000a5ed90a830 1029228 Preemptive 000000A3063531D0:000000A306353A30 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a30634e778 (nested exceptions)
141 1232 33a8 0000009f5ead9840 1029228 Preemptive 000000A87D726CD0:000000A87D727DC0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a87d725178 (nested exceptions)
142 1136 1fac 000000900689acc0 1029228 Preemptive 00000099EE7269F0:00000099EE726B30 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000099ee724e98 (nested exceptions)
143 1377 3540 000000a045163fd0 10a9228 Preemptive 00000095667C19F8:00000095667C29A8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000095667bfea0 (nested exceptions)
144 1241 d00 000000a010ab3870 1029228 Preemptive 0000009165F29128:0000009165F29988 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009165f229c8 (nested exceptions)
145 1242 2704 00000090071ff070 10a9228 Preemptive 000000952E0F5840:000000952E0F60A0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000952baa2ec8 (nested exceptions)
147 674 2f2c 0000009f5dfcb720 10a9228 Preemptive 000000A1DB23A7F8:000000A1DB23C388 0000009032df1aa0 0 MTA (Threadpool Worker) common2.objectevents.GlobalCacheRetryException 000000a1db23a6c8
151 1226 3584 000000900447a040 1029228 Preemptive 00000099308F2770:00000099308F2FD0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000993089daa8 (nested exceptions)
152 1090 19cc 0000009f5fb2ba50 1029228 Preemptive 000000A306345418:000000A3063469C0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a3063437e0 (nested exceptions)
155 1209 34ec 0000009f5e96df00 1029228 Preemptive 000000A1DA486760:000000A1DA486FC0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a1da40bdd8 (nested exceptions)
154 1163 1dac 00000090064c7010 1029228 Preemptive 000000905604B918:000000905604C178 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a6bd558138 (nested exceptions)
156 1187 1ea8 0000009006e05630 10a9228 Preemptive 000000A718498E00:000000A7184993F0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a71848f1f0 (nested exceptions)
157 248 2a9c 000000a82f251800 10a9228 Preemptive 000000A5F3B38500:000000A5F3B39398 0000009032df1aa0 1 MTA (Threadpool Worker) System.NotSupportedException 000000a5f3b366f0
158 1339 21ec 000000a036221870 1029228 Preemptive 0000009C2A8F2D38:0000009C2A8F3400 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009c2a8bf188 (nested exceptions)
159 1171 194 0000009fef2b0dd0 1029228 Preemptive 000000A5F383A1B0:000000A5F383B368 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a5f3838658 (nested exceptions)
161 1215 2224 000000a5ed90c770 1029228 Preemptive 000000A22583CDB0:000000A22583D610 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a225035148 (nested exceptions)
162 1073 1e68 0000009fef17d350 10a9228 Preemptive 000000A8360DD5D0:000000A8360DDB90 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a8360dba78 (nested exceptions)
163 1381 34a4 0000009004477160 1029228 Preemptive 000000A718488710:000000A7184893F0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a718486bb8 (nested exceptions)
164 1365 3684 0000009006b62e90 10a9228 Preemptive 0000009B2EAC16D8:0000009B2EAC3648 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009b2eab7b48 (nested exceptions)
171 1323 13f0 0000009f413dc5f0 10a9228 Preemptive 000000A87DF9FB48:000000A87DF9FC88 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a87df9dff0 (nested exceptions)
175 1274 1368 000000a300c6ffc0 10a9228 Preemptive 0000009C2A9D0C00:0000009C2A9D1460 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009c2a9bc720 (nested exceptions)
166 1240 34b4 0000009fef17eac0 1029228 Preemptive 000000A2C1FEAE78:000000A2C1FEB6D8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a2c1fda230 (nested exceptions)
174 1251 3014 000000a13449a060 1029228 Preemptive 000000952DC45020:000000952DC46B68 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000952dc434c8 (nested exceptions)
168 1362 147c 000000a01d889030 10a9228 Preemptive 000000A6BE3C7F18:000000A6BE3C8778 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a6be3b96e0 (nested exceptions)
167 1366 23d4 0000009004c7c830 1029228 Preemptive 00000096AC78B9E0:00000096AC78C240 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000096ac6b88d0 (nested exceptions)
179 1324 928 0000009f41579010 1029228 Preemptive 00000099AD7D8D48:00000099AD7DAD38 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000099ad7d71f0 (nested exceptions)
177 1221 13e4 000000a045164f70 1029228 Preemptive 000000A5A1495748:000000A5A1495FA8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a5a145ac98 (nested exceptions)
178 1293 23a8 0000009006bf9af0 1029228 Preemptive 00000094AE08CFE0:00000094AE08EF58 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000094ae08b488 (nested exceptions)
181 1349 29e4 000000a045162090 1029228 Preemptive 0000009165F272C0:0000009165F27988 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009165f1f6a8 (nested exceptions)
184 1296 1f84 0000009f417a4dc0 1029228 Preemptive 0000009A2D8D3A98:0000009A2D8D42F8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009a2d84dcd8 (nested exceptions)
193 1102 11a4 0000009006a26610 1029228 Preemptive 000000A2764CC658:000000A2764CDBD8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a2764cab00 (nested exceptions)
186 1210 25ec 0000009f5eadbf50 1029228 Preemptive 00000096AC6B76E0:00000096AC6B79A8 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000096ac6b5b88 (nested exceptions)
188 1379 13a4 000000a3678a7e20 1029228 Preemptive 000000A36F372090:000000A36F3728F0 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a36f3059d8 (nested exceptions)
190 1255 17d0 000000a3678a9590 1029228 Preemptive 000000986D851380:000000986D853138 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000986d84f828 (nested exceptions)
191 1235 193c 0000009f4769c770 1029228 Preemptive 000000A834B596F0:000000A834B59F50 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 000000a834ad32f0 (nested exceptions)
205 783 2fcc 0000009f46811e50 10a9228 Preemptive 0000009BAF601AC8:0000009BAF603188 0000009032df1aa0 0 MTA (Threadpool Worker) common2.objectevents.GlobalCacheRetryException 0000009baf6016b0
208 1357 3ac4 0000009f5dfcaf50 1029228 Preemptive 0000009165F25128:0000009165F25988 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 0000009165f1c3b8 (nested exceptions)
210 1243 2884 0000009fef2af660 1029228 Preemptive 00000099EE7122D0:00000099EE712B30 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000099ee6ff608 (nested exceptions)
211 1239 263c 000000a810bcde10 1029228 Preemptive 0000009464764D30:0000009464764F30 0000009032df1aa0 0 MTA (Threadpool Worker) System.OutOfMemoryException 00000094647631d8 (nested exceptions)
219 1183 3820 000000a34ad75a10 8029228 Preemptive 000000986D8548D8:000000986D855138 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 000000986d83e5f0 (nested exceptions)
220 1217 1968 0000009fef12abb0 8029228 Preemptive 00000099EE716110:00000099EE716B30 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 00000099ee713f70 (nested exceptions)
224 1335 1e44 0000009f5dfc9010 8029228 Preemptive 000000A87D7BD2F0:000000A87D7BDE50 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 000000a87d7bb150 (nested exceptions)
223 1327 3244 0000009f418eb490 8029228 Preemptive 000000A5A149AD40:000000A5A149BFA8 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 000000a5a1498ba0 (nested exceptions)
225 1228 4e0 000000a01e879e10 8029228 Preemptive 000000A3FDE5D5C0:000000A3FDE5DE20 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 000000a3fde548e0 (nested exceptions)
229 1354 3550 0000009006873d60 8029228 Preemptive 00000094EEB90F28:00000094EEB91788 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 00000094eeb8c548 (nested exceptions)
230 1152 2b3c 0000009006875ca0 8029228 Preemptive 0000009AE81807E0:0000009AE8180D58 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 0000009ae8148908 (nested exceptions)
246 1265 3670 0000009f5eada010 80a9228 Preemptive 000000A8BFA16770:000000A8BFA16FD0 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 000000a8bfa114b8 (nested exceptions)
272 1029 2c3c 0000009004ef0be0 8029228 Preemptive 0000009AE8CB9950:0000009AE8CBA460 0000009032df1aa0 0 MTA (Threadpool Completion Port) System.OutOfMemoryException 0000009ae8cb97f0
213 949 c4c 0000009fef212f00 a0228 Preemptive 0000009058538D40:000000905853AC20 0000009032df1aa0 0 MTA System.OutOfMemoryException 0000009058538c58
I've filtered out (Threadpool Worker) and (Threadpool Completion Port) threads
Edit2 Even more info:
We have been running perfmon on the side and one thing we can see is, that before the crash, the number of "Sink blocks in use" goes crazy. It goes from stable 200-300ish to 60+ million... Sometimes it can recover from this, but sometimes it can't and then it crashes.
Any clues to what could cause this?
Edit3: Added image of sink lock
https://imgur.com/a/bPNbh
Edit4: We are running with GC in server mode and
System.Runtime.GCSettings.LatencyMode = System.Runtime.GCLatencyMode.SustainedLowLatency;
Henning

Related

What could be the cause of these http-livestream artefacts in google chrome?

Here is the http-livestream setup: The server is running ffmpeg with the DASH protocol and h264 encoding. The client is using Dash.js. Resolution is fixed to 1920x1080, with 24 bit depth, and 60hz.
The artefacting (image below) is only present when the last row of the video is within chrome viewport (so it disapears if the page is scrolled up). It manifests itself as stretching of the center row of pixels downwards, and appears to only affect some color channels.
I have attempted changing the bitrate, and cutting the last row from the source, thinking the issue could be on the server side, without any impact. The fact that the issue depends on the position in the viewport makes me suspect a glitch in chrome itself.
I have also attempted to force hardware decoding off in chrome:\flags and it does not solve the issue.
Please submit your hypothesis on what could be the cause of this issue. Thanks.
Update #1
Here is the ffmpeg command line and logs:
export DISPLAY=:0 && ffmpeg -f x11grab -framerate 60 -video_size 1920x1080 -i :0.0+0,0 -draw_mouse 0 -f dash -utc_timing_url https://time.akamai.com/?iso -streaming 1 -seg_duration 2 -frag_duration 0.033 -fflags nobuffer -fflags flush_packets -c:v h264 -preset ultrafast data/stream.mpd
And the logs:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[x11grab # 0x561ca34b9980] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':0.0+0,0':
Duration: N/A, start: 1618941693.853256, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 60 fps, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 # 0x561ca34c5300] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 # 0x561ca34c5300] profile High 4:4:4 Predictive, level 4.2, 4:4:4 8-bit
[libx264 # 0x561ca34c5300] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
[dash # 0x561ca34c3740] No bit rate set for stream 0
[dash # 0x561ca34c3740] Opening 'data/init-stream0.m4s' for writing
Output #0, dash, to 'data/stream.mpd':
Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (libx264), yuv444p, 1920x1080, q=-1--1, 60 fps, 15360 tbn, 60 tbc
Metadata:
encoder : Lavc58.54.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[dash # 0x561ca34c3740] Opening 'data/chunk-stream0-00001.m4s.tmp' for writing
frame= 34 fps=0.0 q=15.0 size=N/A time=00:00:00.43 bitrate=N/A dup=5 drop=0 speed=0.836x
frame= 65 fps= 64 q=15.0 size=N/A time=00:00:00.95 bitrate=N/A dup=5 drop=0 speed=0.929x
frame= 96 fps= 62 q=15.0 size=N/A time=00:00:01.46 bitrate=N/A dup=5 drop=2 speed=0.955x
frame= 126 fps= 62 q=15.0 size=N/A time=00:00:01.96 bitrate=N/A dup=5 drop=3 speed=0.962x
frame= 157 fps= 62 q=15.0 size=N/A time=00:00:02.48 bitrate=N/A dup=5 drop=3 speed=0.973x
frame= 188 fps= 61 q=15.0 size=N/A time=00:00:03.00 bitrate=N/A dup=5 drop=3 speed=0.98x
frame= 217 fps= 61 q=15.0 size=N/A time=00:00:03.48 bitrate=N/A dup=5 drop=3 speed=0.977x
frame= 247 fps= 61 q=15.0 size=N/A time=00:00:03.98 bitrate=N/A dup=6 drop=3 speed=0.976x
[dash # 0x561ca34c3740] Opening 'data/stream.mpd.tmp' for writing
[dash # 0x561ca34c3740] Opening 'data/chunk-stream0-00002.m4s.tmp' for writing
frame= 279 fps= 61 q=15.0 size=N/A t
Add the -vf format=yuv420p output option for YUV 4:2:0 chroma subsampling. This is the only widely supported chroma subsampling scheme for H.264.
Your input pixel format is bgr0. Your output is yuv444p. ffmpeg tries to preserve as much fidelity as it can so it auto converts it to a pixel format supported by the selected encoder that most resembles the source. In this case it is yuv444p (YUV 4:4:4) which is not universally supported.

Error run node module in windows

I've a problem when running npm run start-dev. I didn't find how to fix it.
I need your help.
Here the screenshot:
You need to install dependencies. Execute these 2 commands:
npm i -g webpack
npm i -g nodemon
thank you max! but now another error appears:
$ npm run start-dev
Transpeed#0.1.0 start-dev D:\Job\Tsuki Studio\project\transport
NODE_ENV=development webpack -w & NODE_ENV=development nodemon server.js
Webpack is watching the files…
(node:5256) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
Hash: 78554cdef93f0cd841ef7c3729b001ec9190d7db
Version: webpack 3.1.0
Child
Hash: 78554cdef93f0cd841ef
Time: 22097ms
Asset Size Chunks Chunk Names
./public/bundle.js 2.21 MB 0 [emitted] [big] main
./public/bundle.js.map 2.61 MB 0 [emitted] main
[41] ./src/shared/helper/index.js 112 bytes {0} [built]
[224] ./src/shared/reducers/index.js 245 bytes {0} [built]
[225] ./src/shared/routes.js 307 bytes {0} [built]
[298] ./src/browser/index.js 868 bytes {0} [built]
[447] ./src/shared/configureStore.js 515 bytes {0} [built]
[449] ./src/shared/reducers/Authentication.js 638 bytes {0} [built]
[453] ./src/shared/reducers/User.js 319 bytes {0} [built]
[455] ./src/shared/App.js 2.85 kB {0} [built]
[456] ./src/shared/scenes/Dashboard/index.js 3.17 kB {0} [built]
[461] ./src/shared/helper/Cookie.js 600 bytes {0} [built]
[463] ./src/shared/helper/PrivateRoute.js 1.37 kB {0} [built]
[464] ./src/shared/helper/authHeader.js 216 bytes {0} [built]
[465] ./src/shared/helper/store.js 326 bytes {0} [built]
[696] ./src/shared/scenes/Sign/scenes/Login/index.js 6.57 kB {0} [built]
[697] ./src/shared/scenes/Users/index.js 12 kB {0} [built]
+ 725 hidden modules
Child
Hash: 7c3729b001ec9190d7db
Time: 31234ms
Asset Size Chunks Chunk Names
server.js 3.07 MB 0 [emitted] [big] main
server.js.map 3.85 MB 0 [emitted] main
[43] ./src/shared/helper/index.js 112 bytes {0} [built]
[161] ./src/shared/routes.js 307 bytes {0} [built]
[162] ./src/shared/actions/index.js 47 bytes {0} [built]
[280] ./src/shared/reducers/index.js 245 bytes {0} [built]
[281] ./src/shared/HOC/index.js 51 bytes {0} [built]
[357] ./src/server/index.js 3.02 kB {0} [built]
[547] ./src/shared/scenes/Dashboard/index.js 3.17 kB {0} [built]
[585] ./src/shared/helper/authHeader.js 216 bytes {0} [built]
[586] ./src/shared/helper/store.js 326 bytes {0} [built]
[587] ./src/shared/reducers/Authentication.js 638 bytes {0} [built]
[588] ./src/shared/reducers/User.js 319 bytes {0} [built]
[826] ./src/shared/scenes/Sign/scenes/Login/index.js 6.57 kB {0} [built]
[827] ./src/shared/scenes/Users/index.js 12 kB {0} [built]
[870] ./src/shared/configureStore.js 515 bytes {0} [built]
[873] ./src/shared/App.js 2.85 kB {0} [built]
+ 870 hidden modules
WARNING in ./node_modules/express/lib/view.js
80:29-41 Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/encoding/lib/iconv-loader.js
9:12-34 Critical dependency: the request of a dependency is an expression

Error in ES6-webpack-babel boilerplate

I was using an ES6-react-webpack boilerplate that I found on the internet. It works fine. Now, I wanted to strip it down to get rid of reactjs elements. and I get the following error:
xtd8865#darkstar:~/data/projects/reactjs/es6-template/template$ npm start
> react-es6-webpack-boilerplate#4.0.0 start /home/xtd8865/data/projects/reactjs/es6-template/template
> node server.js
Listening at localhost:5000
Hash: 8ee3d46227d899f9d9c3
Version: webpack 1.13.2
Time: 3914ms
Asset Size Chunks Chunk Names
bundle.js 666 kB 0 main
chunk {0} bundle.js (main) 224 kB [rendered]
[0] multi main 52 bytes {0} [built] [1 error]
[1] (webpack)-dev-server/client?http://localhost:5000 3.97 kB {0} [built]
[2] (webpack)/~/node-libs-browser/~/url/url.js 22.3 kB {0} [built]
[3] (webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js 14.6 kB {0} [built]
[4] (webpack)/buildin/module.js 251 bytes {0} [built]
[5] (webpack)/~/node-libs-browser/~/url/~/querystring/index.js 127 bytes {0} [built]
[6] (webpack)/~/node-libs-browser/~/url/~/querystring/decode.js 2.4 kB {0} [built]
[7] (webpack)/~/node-libs-browser/~/url/~/querystring/encode.js 2.09 kB {0} [built]
[8] (webpack)-dev-server/~/strip-ansi/index.js 161 bytes {0} [built]
[9] (webpack)-dev-server/~/strip-ansi/~/ansi-regex/index.js 135 bytes {0} [built]
[10] (webpack)-dev-server/client/socket.js 856 bytes {0} [built]
[11] (webpack)-dev-server/~/sockjs-client/lib/entry.js 244 bytes {0} [built]
[12] (webpack)-dev-server/~/sockjs-client/lib/transport-list.js 613 bytes {0} [built]
[13] (webpack)-dev-server/~/sockjs-client/lib/transport/websocket.js 2.71 kB {0} [built]
[14] (webpack)/~/node-libs-browser/~/process/browser.js 5.3 kB {0} [built]
[15] (webpack)-dev-server/~/sockjs-client/lib/utils/event.js 2 kB {0} [built]
[16] (webpack)-dev-server/~/sockjs-client/lib/utils/random.js 746 bytes {0} [built]
[17] (webpack)-dev-server/~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built]
[18] (webpack)-dev-server/~/sockjs-client/lib/utils/url.js 975 bytes {0} [built]
[19] (webpack)-dev-server/~/sockjs-client/~/url-parse/index.js 9.91 kB {0} [built]
[20] (webpack)-dev-server/~/sockjs-client/~/url-parse/~/requires-port/index.js 753 bytes {0} [built]
[21] (webpack)-dev-server/~/sockjs-client/~/url-parse/lolcation.js 1.58 kB {0} [built]
[22] (webpack)-dev-server/~/sockjs-client/~/url-parse/~/querystringify/index.js 1.3 kB {0} [built]
[23] (webpack)-dev-server/~/sockjs-client/~/debug/browser.js 3.76 kB {0} [built]
[24] (webpack)-dev-server/~/sockjs-client/~/debug/debug.js 4.1 kB {0} [built]
[25] (webpack)-dev-server/~/sockjs-client/~/debug/~/ms/index.js 2.33 kB {0} [built]
[26] (webpack)-dev-server/~/sockjs-client/~/inherits/inherits_browser.js 672 bytes {0} [built]
[27] (webpack)-dev-server/~/sockjs-client/lib/event/emitter.js 1.27 kB {0} [built]
[28] (webpack)-dev-server/~/sockjs-client/lib/event/eventtarget.js 1.85 kB {0} [built]
[29] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/websocket.js 172 bytes {0} [built]
[30] (webpack)-dev-server/~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built]
[31] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built]
[32] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built]
[33] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built]
[34] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built]
[35] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built]
[36] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built]
[37] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.8 kB {0} [built]
[38] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built]
[39] (webpack)-dev-server/~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built]
[40] (webpack)-dev-server/~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built]
[41] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xdr.js 2.46 kB {0} [built]
[42] (webpack)-dev-server/~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built]
[43] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built]
[44] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built]
[45] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built]
[46] (webpack)-dev-server/~/sockjs-client/lib/transport/iframe.js 3.83 kB {0} [built]
[47] (webpack)-dev-server/~/sockjs-client/~/json3/lib/json3.js 43.3 kB {0} [built]
[48] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
[49] (webpack)-dev-server/~/sockjs-client/lib/version.js 26 bytes {0} [built]
[50] (webpack)-dev-server/~/sockjs-client/lib/utils/iframe.js 5.06 kB {0} [built]
[51] (webpack)-dev-server/~/sockjs-client/lib/utils/object.js 532 bytes {0} [built]
[52] (webpack)-dev-server/~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built]
[53] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/htmlfile.js 2.2 kB {0} [built]
[54] (webpack)-dev-server/~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built]
[55] (webpack)-dev-server/~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built]
[56] (webpack)-dev-server/~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built]
[57] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/jsonp.js 5.57 kB {0} [built]
[58] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built]
[59] (webpack)-dev-server/~/sockjs-client/lib/main.js 11.9 kB {0} [built]
[60] (webpack)-dev-server/~/sockjs-client/lib/shims.js 18.2 kB {0} [built]
[61] (webpack)-dev-server/~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built]
[62] (webpack)-dev-server/~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built]
[63] (webpack)-dev-server/~/sockjs-client/lib/utils/log.js 450 bytes {0} [built]
[64] (webpack)-dev-server/~/sockjs-client/lib/event/event.js 477 bytes {0} [built]
[65] (webpack)-dev-server/~/sockjs-client/lib/location.js 177 bytes {0} [built]
[66] (webpack)-dev-server/~/sockjs-client/lib/event/close.js 295 bytes {0} [built]
[67] (webpack)-dev-server/~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built]
[68] (webpack)-dev-server/~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built]
[69] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built]
[70] (webpack)-dev-server/~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built]
[71] (webpack)-dev-server/~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built]
[72] (webpack)-dev-server/~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built]
[73] (webpack)-dev-server/~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built]
[74] (webpack)-dev-server/~/sockjs-client/lib/facade.js 723 bytes {0} [built]
[75] (webpack)/hot/dev-server.js 1.85 kB {0} [built]
[76] (webpack)/hot/log-apply-result.js 813 bytes {0} [built]
ERROR in ./scripts/index.js
Module build failed: Error: Couldn't find preset "react" relative to directory "/home/xtd8865/data/projects/reactjs/es6-template/template"
at /home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:298:19
at Array.map (native)
at OptionManager.resolvePresets (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:269:20)
at OptionManager.mergePresets (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:258:10)
at OptionManager.mergeOptions (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:243:14)
at OptionManager.init (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:373:12)
at File.initOptions (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/index.js:221:65)
at new File (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/index.js:141:24)
at Pipeline.transform (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-loader/index.js:38:20)
# multi main
webpack: bundle is now VALID.
/scripts/index.js does not have any reference to react:
var container = document.getElementById('root');
container.innerHTML = "THIS IS A TEST";
I have removed all the packages with react in their names from package.json and upgraded version numbers of packages:
{
"name": "ES6-template",
"version": "0.0.1",
"description": "My es6 playground",
"main": "index.js",
"scripts": {
"start": "node server.js",
"build": "BABEL_ENV=production ./node_modules/.bin/webpack --config webpack.config.production.js",
"lint": "./node_modules/.bin/eslint ."
},
"keywords": [
"es6",
"babel",
"webpack"
],
"dependencies": {
"babel-runtime": "^6.9.2",
"bootstrap": "^3.3.7"
},
"devDependencies": {
"babel-polyfill": "^6.16.0",
"babel-core": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.2.5",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"css-loader": "^0.25.0",
"eslint": "^3.7.1",
"file-loader": "^0.9.0",
"url-loader": "^0.5.7",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.16.2"
}
}
Please advise. Also, are there any other packages above that were react-specific and would not be needed without react?
I have found what it was. The problem was in the hidden file .babelrc
I have removed the reference to react presets there and everything is fine.

Flask API server slow response time

I created an API server with Flask, I use gunicorn with eventlet to run it. I noticed a long response time from Flask server when calling APIs. I did a profiling with my client, one ran from my laptop, one ran directly in Flask API server.
From my laptop:
302556 function calls (295712 primitive calls) in 5.594 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
72 4.370 0.061 4.370 0.061 {method 'poll' of 'select.epoll' objects}
16 0.374 0.023 0.374 0.023 {method 'connect' of '_socket.socket' objects}
16 0.213 0.013 0.213 0.013 {method 'load_verify_locations' of '_ssl._SSLContext' objects}
16 0.053 0.003 0.058 0.004 httplib.py:798(close)
52 0.034 0.001 0.034 0.001 {method 'do_handshake' of '_ssl._SSLSocket' objects}
On server:
231449 function calls (225936 primitive calls) in 3.320 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
12 2.132 0.178 2.132 0.178 {built-in method read}
13 0.286 0.022 0.286 0.022 {method 'poll' of 'select.epoll' objects}
12 0.119 0.010 0.119 0.010 {_ssl.sslwrap}
12 0.095 0.008 0.095 0.008 {built-in method do_handshake}
855/222 0.043 0.000 0.116 0.001 sre_parse.py:379(_parse)
1758/218 0.029 0.000 0.090 0.000 sre_compile.py:32(_compile)
1013 0.027 0.000 0.041 0.000 sre_compile.py:207(_optimize_charset)
12429 0.023 0.000 0.029 0.000 sre_parse.py:182(__next)
So, I saw my client took long time to wait from server response base on the profile result.
I used gunicorn with eventlet to serve Flask app, with the flowing configuration:
import multiprocessing
bind = ['0.0.0.0:8000']
backlog = 2048
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = 'eventlet'
user = 'www-data'
group = 'www-data'
loglevel = 'info'
My client is an custom HTTP client using eventlet to patch httplib2 and create a pool to connect to server.
I stuck here with the troubleshooting. All server stats were normal. How can I detect the bottle neck of my API server?

Why sipml5 create webRTC invite request with same port for Audio RTP, Audio RTCP, Video RTP and Video RTCP?

Previously I used firefox web browser to initiate webRTC invite request. Then I observed sdp with different port numbers for audio and video channel. And I could easily get the candidates and completed ICE operations. Here I am attaching webRTC invite request message in chrome web browser.
INVITE sip:user1#myserver.demo.com SIP/2.0
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bK2d4AlD4kTtu3AvTbW7RZDD03H1Ex8MnB;rport
From: "user2"<sip:user2#myserver.demo.com>;tag=gy75qhB7Gxto2pakdTaT
To: <sip:user1#myserver.demo.com>
Contact: "user2"<sip:user2#df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;language="en,fr"
Call-ID: 1290ebe1-f59d-95c3-a91c-d714773ae56b
CSeq: 37591 INVITE
Content-Type: application/sdp
Content-Length: 3709
Max-Forwards: 70
User-Agent: IM-client/OMA1.0 sipML5-v1.2014.12.11
Organization: Doubango Telecom
v=0
o=- 3376022867449415700 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b
m=audio 57008 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126
c=IN IP4 202.53.167.164
a=rtcp:57008 IN IP4 202.53.167.164
a=candidate:2068563606 1 udp 2122194687 192.168.10.148 57008 typ host generation 0
a=candidate:2068563606 2 udp 2122194687 192.168.10.148 57008 typ host generation 0
a=candidate:902314598 1 tcp 1518214911 192.168.10.148 0 typ host tcptype active generation 0
a=candidate:902314598 2 tcp 1518214911 192.168.10.148 0 typ host tcptype active generation 0
a=candidate:3083270405 1 udp 1685987071 202.53.167.164 57008 typ srflx raddr 192.168.10.148 rport 57008 generation 0
a=candidate:3083270405 2 udp 1685987071 202.53.167.164 57008 typ srflx raddr 192.168.10.148 rport 57008 generation 0
a=ice-ufrag:cinBWZB6tiSnOnf1
a=ice-pwd:50yVBGm5WuKlbZeyRrmjOvMn
a=ice-options:google-ice
a=fingerprint:sha-256 7C:69:84:B5:D5:C1:86:D0:56:8F:22:BA:5F:61:AD:1E:55:21:5A:6A:50:35:0C:49:E2:43:E9:C0:03:CC:B5:31
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10; useinbandfec=1
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:126 telephone-event/8000
a=maxptime:60
a=ssrc:4060942202 cname:MV0YBQDo4IyYKk2T
a=ssrc:4060942202 msid:Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b 8031161b-973f-4024-8f52-7bd33af05431
a=ssrc:4060942202 mslabel:Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b
a=ssrc:4060942202 label:8031161b-973f-4024-8f52-7bd33af05431
m=video 57008 UDP/TLS/RTP/SAVPF 100 116 117 96
c=IN IP4 202.53.167.164
a=rtcp:57008 IN IP4 202.53.167.164
a=candidate:2068563606 1 udp 2122194687 192.168.10.148 57008 typ host generation 0
a=candidate:2068563606 2 udp 2122194687 192.168.10.148 57008 typ host generation 0
a=candidate:902314598 1 tcp 1518214911 192.168.10.148 0 typ host tcptype active generation 0
a=candidate:902314598 2 tcp 1518214911 192.168.10.148 0 typ host tcptype active generation 0
a=candidate:3083270405 1 udp 1685987071 202.53.167.164 57008 typ srflx raddr 192.168.10.148 rport 57008 generation 0
a=candidate:3083270405 2 udp 1685987071 202.53.167.164 57008 typ srflx raddr 192.168.10.148 rport 57008 generation 0
a=ice-ufrag:cinBWZB6tiSnOnf1
a=ice-pwd:50yVBGm5WuKlbZeyRrmjOvMn
a=ice-options:google-ice
a=fingerprint:sha-256 7C:69:84:B5:D5:C1:86:D0:56:8F:22:BA:5F:61:AD:1E:55:21:5A:6A:50:35:0C:49:E2:43:E9:C0:03:CC:B5:31
a=setup:actpass
a=mid:video
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=sendrecv
a=rtcp-mux
a=rtpmap:100 VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=rtpmap:96 rtx/90000
a=fmtp:96 apt=100
a=ssrc-group:FID 992785727 3894832329
a=ssrc:992785727 cname:MV0YBQDo4IyYKk2T
a=ssrc:992785727 msid:Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b 85987089-827b-4f5a-a7ff-65afc1c23f88
a=ssrc:992785727 mslabel:Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b
a=ssrc:992785727 label:85987089-827b-4f5a-a7ff-65afc1c23f88
a=ssrc:3894832329 cname:MV0YBQDo4IyYKk2T
a=ssrc:3894832329 msid:Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b 85987089-827b-4f5a-a7ff-65afc1c23f88
a=ssrc:3894832329 mslabel:Jyup2XWPA5tOgvau9NIBMjlZFQzSEl6g3P0b
a=ssrc:3894832329 label:85987089-827b-4f5a-a7ff-65afc1c23f88
So, why they are using same port numbers and how to handle these for ICE check?
The line which causes the browser to use only one connection for audio and video is
a=group:BUNDLE audio video
You can simply remove this line from the offer/answer and the browsers will continue to use multiple connections.