ASP.NET应用程序重新启动太多 [英] ASP.NET Application Restarts Too Much

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

问题描述

我有一个ASP.NET网站,所以会和其他的东西都不见了,用户也complaning一下它在重新启动每隔1-2小时一天,因为他们打开一个网页,做一些20分钟,当他们提交它,一个漂亮的我们很抱歉页面是存在的。

I have an ASP.NET WebSite which restarts in every 1-2 hours in a day so sessions and other thing are gone and users are complaning about it, because they open a page and do something for 20 minutes and when they submit it, a nice "we are sorry" page is there.

我没有做任何重新启动应用程序(改变web.config中,改变的文件,甚至是其他越野车之类的东西删除在App_Data文件夹通常不会导致重新启动)。

I don't do anything which restarts the application (changing the web.config, changing the files, or even other buggy things like deleting a folder in App_Data which normally shouldn't cause a restart).

是否可以与服务器的硬件有关系吗?这是没有太大的强大。

Can it be related with Server's hardware? It is not much powerful.

推荐答案

<一个href=\"http://blogs.msdn.com/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx\"相对=nofollow>勾选此博客帖子有关的AppDomain的回收将一些可能的原因。有许多可能的原因。

Check this blog post about some possible causes for appdomain recycles. There are many possible causes.

如果您无法修复,你可以在进程内会话状态切换到eiter会话状态服务器或存储在数据库中的会话状态的问题。这两个选项是很容易设置和工作得很好,但有一个性能的影响(10%-20%之间,我认为)。 <一href=\"http://blog.maartenballiauw.be/post/2007/11/ASPNET-load-balancing-and-ASPNET-state-server-%28aspnet%5Fstate%29.aspx\"相对=nofollow>有一个很好的文章在这里了解如何设置一个会话状态服务器。

If you are unable to fix the problem you could switch from in-process session state to eiter a session state server or to storing session state in a database. Both options are easy to set up and works quite well, but there is a performance impact (between 10-20% I think). There is a nice article here about how to setup a session state server.

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

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