服务器的性能问题与应用程序的本地性能相比?
我正在寻找性能问题的解决方案。我们正在使用以下内容:
- ASP.net
- SQL Server
- 实体框架
我希望有人以前遇到过这个问题并已经解决了!
与在本地调试时运行相同的应用程序相比,在托管应用程序上执行 HTTP 请求所需的时间要长 2 到 3 倍。然而,如果我们在服务器主机上的 preinit 和 rederer 之间进行跟踪,我们会得到大约 0.250 秒的请求时间,但是当我们观察它时,实际上需要 3 或 4 秒来渲染整个页面。
这让我们发疯!关于造成这种情况的原因以及如何解决它有什么想法吗?
我们是否可以使用一个程序来检查和调试其根本原因?如果这种情况发生在您身上,是否有建议您会尝试什么?
感谢您!
I'm looking for a solution to a performance problem. We are using the following:
- ASP.net
- SQL Server
- Entity framework
I am hoping that someone has run into this issue before and has solved it!
It's taking 2 at 3 times longer to execute an HTTP request on a hosted application compared to running the same application locally on debug. However, if we trace between preinit and rederer, on the server host,we are getting something like 0.250 seconds request time but, when are watching it, it is actually taking 3 or 4 seconds to render that complete page.
This is driving us crazy! Any ideas as to what is causing this and how to fix it?
Is there a program can we use to check and debug this for it's root cause? If it was happening to you, are there recommendations as to what you would you try?
Thanks you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能是这样的:
来自开发计算机的数据与生产(托管)服务器中的数据相同吗?如果不是,问题是您没有很好地使用 ORM 或者必须优化您的应用程序。
您可以使用firebug网络面板检查问题是否来自网络...< /p>
希望有帮助。
probably any of this:
is the data from the development computer the same that in the production(hosted) server? if not the problem is that you are not using well your ORM or have to optimize your app.
you can use firebug net panel to check if the problem is from the network...
if you are using a VPS and a cheap one, your computer might be better than the server and as the server is shared among several virtual sites their load might affect the performance of your app.
hope it helps.