0
votes

We have implemented a server with backplane where there are more than 100+ clients are connecting. But when we were testing it we identified that when ever the clients are getting disconnected none of them are able to reconnect back. Also we noticed high number of thread usage (more than 5000) by w3wp.exe and then IIS crashes.

In order to identify what is the cause of this we cleaned the hub and what we found was that when the logger class is removed the backplane works perfectly. We have used NLog logger and initiated it as a static logger.

private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();

In order to confirm whether it is problem with NLog we created another static object inside the hub class but that also showed the same high thread usage. So it seems that whenever there is a static objects clients are unable to reconnect and there is a high usage of threads in the w3wp.exe service. What is the cause for this situation?

PS- We tested using both SQL and redis backplane which showed the same exact results.

1

1 Answers

0
votes

The problem was not using the static objects inside the hub but rather using NLogTraceListener for log signalr traces.