开发者

Getting System.OutOfMemoryException due to ASP.NET temp folder

开发者 https://www.devze.com 2022-12-20 05:26 出处:网络
I have hosted some 5 applications on IIS in my server. After sometimes I am gettingSystem.OutOf开发者_运维问答MemoryException error due to out of memory in ASP.NET Temp Folder.

I have hosted some 5 applications on IIS in my server.

After sometimes I am getting System.OutOf开发者_运维问答MemoryException error due to out of memory in ASP.NET Temp Folder.

Is there any way to clear it automatically or any setting for this.


I doubt you're getting an OutOfMemoryException because a temp folder is full. I can see other types of exceptions being thrown for a full drive, just not OutOfMemoryException. I think you're looking in the wrong place.


System.OutOfMemoryException isn't due to your temp folder, this happens when .Net can't allocate memory.

You may want to look at MSDN Troubleshooting topics for this.


OutOfMemoryException isn't thrown because your temp directory is filling up. However, if some part of your code is reading the list of files, it may trigger the exception. This is not due to the directory filling up, but because the required data structure cannot be allocated by the runtime.

0

精彩评论

暂无评论...
验证码 换一张
取 消