問題タブ [signalr-backplane]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
396 参照

signalr - sqlserver スケールアウトの使用時にシグナルが LongPolling または serverSentEvents トランスポートに接続できませんでした

signalr で sqlserver scaleout を使用している場合GlobalHost.DependencyResolver.UseSqlServer、接続LongPollingまたはserverSentEvents転送に失敗しました。

誰もが以前にこのエラーに直面しました。私は and を使用signalr 2.2.1してsignalr.sqlserver 2.2.1います。

これがowinスタートアップクラスの私の完全なコードです

EventSource が接続されました:

0 投票する
1 に答える
1223 参照

asp.net - Memory Leak in SignalR / Caching

I'm investigating a webapp which ran up to 10gb of memory, by analysing a memory dump using Windbg.

Here's the bottom of the !dumpheap -stat output:

So there are nearly 40 million instances of System.Runtime.Caching.ExpiresBucket, totally nearly 4gb of the used memory. System.Runtime.Caching classes appear quite a lot in the top offenders.

I took a random instance of a System.Runtime.Caching.ExpiresBucket class, and did a !gcroot on it. It took ages (maybe 30 mins) to produce 1 thread...there may have been more but I interrupted the operation at this point.

The chain of references is over 1.5 million lines long! But I can show the important bits here:

I'm running !objsize on the 000000f92d0b84e0 Microsoft.AspNet.SignalR.SqlServer.SqlMessageBus, but it's been running for about 20 mins so far, and I'm expecting a very high number.

What is causing the leak? Is there a known bug in SignalR, using Backplane? We're using v2.0.2, which I believe is not the latest. But I've not found any documentation on the internet referring to a memory leak involving both SignalR and Caching.

Edit:

To answer Pawel's question about instances of SqlMessageBus, here is some more Windbg output: