Asp.net会很快过期 [英] Asp.net session expire very soon

查看:193
本文介绍了Asp.net会很快过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个消息太频繁,认为它是不常见,我怎么能解决这个问题?


  

与8052服务应用程序池mywebsite.com的进程ID的工作进程已经请求回收,因为它已经达到其专用
  字节内存限制。



解决方案

这不是一个到期,因为超时的,它是一个应用程序池回收,由于内存限制。通常非常糟糕。

如果你有你的ASP.NET应用程序的完全控制,我建议你仔细简介,并发现你在哪里分配和没有释放/配置大量内存。

这可能有助于了解什么是共同使用情况下,用户正在经历更加频繁,并开始调查这些。

您加载了很多的byte []在内存中的文件下载?

在yoou保持在Session太多的参考?

一旦我们有类似的问题,我们只有几个星期后,我们被存储在会话页面,使所有访问过的网页保存在内存中的所有次引用发现了。不容易找到,但一旦我们纠正了这个问题解决了。

I get this message too often and think that it is not usual, how i can fix this issue?

A worker process with process id of '8052' serving application pool 'mywebsite.com' has requested a recycle because it reached its private bytes memory limit.

解决方案

Hi this is not an expire because of a timeout, it's an application pool recycle due to memory limit. Usually very bad.

if you have full control of your ASP.NET application I suggest you profile it carefully and detect where you are allocating and not releasing / disposing a lot of memory.

It might help to understand what are the common use cases users are going through more often and start investigating those.

Are you loading a lot of byte[] in memory for file downloads?

are yoou keeping too many references in the Session?

once we had a similar problem and we found out only after several weeks that we were storing a reference to pages in the Session so all visited pages were kept in memory all the times. Not easy to find but once we corrected this the problem was solved.

这篇关于Asp.net会很快过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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