English 中文(简体)
to至Windows 解冻或释放
原标题:Publish to Windows Azure in debug or release mode
  • 时间:2012-04-16 15:49:07
  •  标签:
  • azure

I have an Windows Azure app (Asp Net Mvc 4). And there is some ajax in this app. Some requests with simple in-memory server logic (no sql, no external web services). When I run it locally in debug mode, it takes about 900 ms for ajax request to get a response. Locally in release mode, it takes about 30 ms (It`s OK). When I publish app to Azure it takes 450 ms for request to get a response. I try both debug mode and release, also cloud and local service configuration. In all cases it takes 450 ms. Question: is there something that I did not take into account?

问题回答

适当诊断您的协会的业绩。 NET MVC的申请,请考虑:

  1. The latency between your client computer and the server. Use the ping utility to measure that.
  2. The time it takes to establish the HTTP and/or HTTPS connection.
  3. The time spent waiting for other concurrent requests your browser may be issuing.
  4. Data transfer time, both to send the request and to retrieve the response.
  5. Queueing on the web server due to overload.
  6. Time spent on the server actually processing the request. You can measure this with the StopwatchAttribute described in this article. Use the current code from GitHub though, because the code in the article is not compatible with ASP.NET MVC 3.

诸如 Chrome和互联网探索者开发工具、火力和雅虎信使等工具可以让你更深入地了解你的申请业绩。





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签