ASP.NET Web应用程序慢度 [英] ASP.NET Web Application Slowness

查看:84
本文介绍了ASP.NET Web应用程序慢度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个IIS 7.5 / .NET框架4.0的服务器上运行一个asp.net web应用程序。每当我浏览到任何网页此服务器上运行,它需要大约12秒开始加载。在这之后,导航快(约0.5秒,即使在重击打页)。如果你把它闲置两分钟,再次减慢下一个请求。我可以告诉大家,这是因为连接超时设置为120秒......我猜测,该限制后,在接下来的页面请求的网站必须重新加载一切。此网站调用两个不同的数据库,但是,默认页不应该这样做并遭受长时间的初始加载时间。我曾尝试为IIS 7.5中设置应用程序初始化,但发现充其量后这样做是非常边际的变化。从我一直在读什么,似乎有这个模块中的IIS 7.5非常成败参半。是否有规避这个加载时间,而不必仅仅依靠高连接超时值的任何其他手段,因为这不会解决反正初始加载时间?

I have an asp.net web application running on an IIS 7.5/.NET Framework 4.0 server. Whenever I navigate to any webpage running on this server, it takes about 12 seconds to initially load. After that, navigation is quick (about 0.5 seconds, even on heavy hitting pages). If you leave it idle for two minutes, it slows again for the next request. I can tell that this is because the connection time-out is set to 120 seconds...I am guessing that after that limit, the site must reload everything when the next page is requesting. This site does call two different databases, however, default page should not do so and suffers the long initial load time. I have tried setting up Application Initialization for IIS 7.5, but noticed very marginal change at best after this was done. From what I've been reading, there seems to be very mixed success with this module in IIS 7.5. Is there any other means of circumventing this load time without having to rely solely on a high connection timeout value, since that would not resolve initial load time anyway?

推荐答案

是不相关的连接超时。每Zerkey在评论上述问题,我有点好奇,环顾四周的方式来看看发生了什么装,因为调试它从我的电脑仍然是缓慢的,但相当快(约4-6秒)。在IIS这是发布到服务器上,我去工作进程,选择的过程,点击右边的当前请求。这表明我,它被挂在我使用所谓51degrees.mobi第三方移动重定向服务。它正在采取的那12秒,想想10对那些文件加载​​。发生了什么事是,记录功能分别设置登录的App_Data文件夹中,并且该目录不见了。这显然​​不是给我一个明显的错误,它只是想它,失败。有一次,我加入这个目录和日志文件,并重新激活,应用程序初始化,一切都是快。

Was not related the connection timeout as I thought it was, but rather another timeout and necessary files missing. Per Zerkey's question in the comments above, I got a little curious and looked around for ways to see what was loading, as debugging it from my PC was still slow, but considerably faster (about 4-6 seconds). In IIS on the server this is published to, I went to Worker Processes, selected the process and clicked current requests on the right. This showed me that it gets hung up on a 3rd party mobile redirection service I am using called 51degrees.mobi. It was taking about 10 of those 12 seconds for those file to load. What was happening is that the logging capabilities were set to log in an App_Data folder, and that directory was missing. It evidently wasn't giving me a visible error, it was just trying it and failing. Once I added this directory and log file, and reactivated Application Initialization, everything is quick.

这篇关于ASP.NET Web应用程序慢度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆