0

I am doing stress tests on my ASP.Net MVC2 application, and I have set

<compilation debug="false" /> in web.config.

Simulating 200 connections in the IIS7, which hosts this application, the CPU load goes up to 100%. Simulated requests only access simple home page without the database operations.

Meanwhile, I run the dotTrace to profile the application, which shows the page render procedure (like RenderControl, RenderControlInternal, etc.....) takes about 69% CPU time.

Is this normal? How many connections can an MVC2 application support for one machine?

4

1 回答 1

0

这绝对不正常。我认为可能还有其他一些问题,但是当您从 action 中返回时,mvc2 花费了更多时间来查找相关视图。一些事情要做:

更新您的库。从操作中提供视图名称,然后重试。

public ActionResult Index() {
     ///other operations
     return View("Index",yourmodel);
}

等等

于 2012-05-26T23:19:17.397 回答