1
Vote

ASP.NET MVC2 possible nasty bug during the view file search.

description

I have discovered that during the high number of users (20-30k within 20-30 seconds) web application made in ASP.NET MVC2 cause bottleneck when
on the return View(); view name is not specified.

public ActionResult Index() {
...
return View(model); // causes 39 s page load
}

public ActionResult Index() {
....
return View("Index",model) // reduced the page load to 0.2 s
}

This problem occurs only when we deal with high user concurrency.

I described the whole problem on my blog.


http://arturito.net/2011/10/24/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck/

comments

hongyes wrote Nov 28, 2011 at 8:27 PM

I can't repro this issue in MVC. Just create a simple MVC project from template and use load test tools to request the home index pages. The response time didn't differ too much after I changed the way to call view method.
Could you still repro this issue in the latest version of MVC? Or can you attach the project here? Thanks.