Blazor site on IIS - very bad performance with simultaneous users

cn flag

this is my first post here because I am a bit frustrated. I found no answer. I have prepared website for sport bookings in Blazor Server-Side (.Net 5) and postgres DB. The site was deployed on VPS (2 cores, 4 GB, SSD, Windows Server 2016). I have several clients and the traffic is not big - Google Analytics shows up to max several users simultaneously. Recently traffic suddenly increased to around 100 users at the same time (by publication of one popular sport event) and then the page died. It stopped loading and responding to actions. It took about 20 minutes to start working because the traffic has decreased.

Then I migrated the site to .Net 6 (I read that it has quite a bit of optimization) and changed VPS to a stronger one (4 cores, 8 GB, SSD, Windows Server 2019) and the situation is exactly the same. The website begins to die with around 30 users simultaneously. No matter which page I am testing exactly, whether it is static content or dynamic content from the database - 30 users and website stop working.

I tried to test the website with online tools like BlazeMeter based on Jmeter. The test for 50 users throw following error:

Non HTTP response code: Non HTTP response message: Read timed out 765

Microsoft describes ( that 5000 concurrent users should be handled by webserver with 1,3GB memory, so in my case this is probably not by server resources.

Static pages don't query SQL, so it's not a database issue.

After some suggestion I enabled WebSocket on IIS and application pipeline, but it did not help.

I am not a professional programmer and I do not know where to look for reasons. Thank you in advance for the suggestion where to look for the solution.

Orphans avatar
cn flag
Check the logs?

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.