2012-10-08 64 views
2

我已經在asp.net創建一個Web應用程序[.NET 4 Framework和Visual Studio 2010]。現在我與IIS 5.1上運行version.When我跑我的申請,我收到以下錯誤如何解決asp.net中內存消耗超限的問題?

Server Application Unavailable 
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. 

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. 

我還檢查與事件查看器......它說

Event Type: Error 
Event Source: ASP.NET 4.0.30319.0 
Event Category: None 
Event ID: 1001 
Date:  8/10/12 
Time:  9:55:47 AM 
User:  N/A 
Computer: SARAVANAN- 
Description: 
aspnet_wp.exe (PID: 1724) was recycled because memory consumption exceeded the 1221 MB (60 percent of available RAM). 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 

我不知道如何解決這個問題?有沒有辦法增加我的IIS的RAM的內存消耗限制。

請指引我走出這個問題...

+1

請參閱[本文](http://msdn.microsoft.com/en-us/library/ee817660.aspx)以獲取有關如何解決此問題的說明。 –

回答

3

底線 - 你應該調試代碼SEEE爲什麼需要這麼多內存。

但是要回答您的實際問題,是的,有一種方法可以增加此限制。

在Machine.config文件中有一個名爲「中processModel」部分,默認情況下它看起來像這樣:

<processModel autoConfig="true"/>

如果你改變它添加一個「的memoryLimit」值這將修改用於確定何時回收流程的百分比值。例如:

<processModel autoConfig="true" memoryLimit="90"/>

這將允許過程中要消耗的可用RAM的90%被回收的處理之前。默認值是'60'。你當然也可以設置一個較低的值。