ASP.NET Application Gets Slower Over Time

I'm running a .NET C# (4.5) web forms application and on our production server, the application gets slower and slower for everyone over time until about an hour where it becomes pretty much unusable and we just restart the server.

It works perfectly fine on my local machine. Never gets slower at all. So I'm trying to think of what would be different.

My local machine connect to the same database. There's also some active directory things being used for logins but that also connects to the same place on both my local and production environments.

I have debug off in the web.config. I've also looked up pretty much any other solutions and haven't had luck.

I did see some stuff about viewstates building up with ajax requests. I do have a page with updatepanels that are refreshing every few seconds, but I'm confused as to why the production server would be getting slower over time with this and not my local machine testing.

There's only about 10 people using the application at the moment also. Any ideas?


Refreshing a bunch of updatepanels every few seconds is not a good idea pretty much. I was able to optimize things here and there but in the end it was the auto refreshing that was slowing things down. Completely reprogrammed using signalr to grab updates and now it's very fast.

链接地址: http://www.djcxy.com/p/62250.html

上一篇: DataGridView复制粘贴(带有样式,背景颜色...)

下一篇: ASP.NET应用程序随着时间的推移变得更慢