lundi 4 janvier 2021

Stuttering SignalR When Using IIS

I am using ASP .NET SignalR to create a realtime game in the browser. It seems to run fine, other than occasional stutters on the display output.

I first noticed this when I deployed my application to a virtual PC in the cloud. To rule out bandwidth issues, I then deployed it to another virtual PC running locally.

Even when running the application from a virtual PC locally, I still get the stutters.

This issue does not happen when I run the application on local host using IIS express.

This makes me think that the issue has something to do with IIS, since both the cloud virtual PC and local virtual have this in common and local host does not.

After Googling I found lots of people advising to check certain settings in IIS.

These websocket settings were listed as possible culprits: IIS websocket settings

I don’t see any issues there though.

Another suggestion was to check the queue length in the advanced settings of the App Pool. Currently it is 1000. I believe that this is enough, as according to Perfmon, the number of requests received peeks at about 100 per second and sent at 80. Queue Settings IIS Perfmon

Has anyone else got any ideas?

I am using SignalR for ASP .NET 2.4.1 and IIS 10

Thanks




Aucun commentaire:

Enregistrer un commentaire