![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hello Alexander, How did you set the Memory recycling for the application pool? If your ASP.NET consume too much memory, a recycling is reqiured. Also, I suggest you may consider reduce the life time (its expire property) of cached object so that it won't cost too much of memory. Luke |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
OK. I can set Memory recycling for my application. It will restart application. But I do not need to restart one. I need to remove (flush) old cache entries when low memory occured. I notice, application works correctly on the windows server 2003 system with 1Gb RAM. How it happens? I insert new objects in the cache. Application use more and more of memory. Some point some cached objects removed from cache without any errors. It is normal. (In my application I can control count cached objects.) But on the system with 2 Gb RAM (!!!) the application raises exception OutOfMemoryException and does not remove (flush) old cached objects!!! Cache work incorrect on the system with larger memory!!! Why the .NET does not remove (flush) the old objects from cache in this case? Hello Alexander, How did you set the Memory recycling for the application pool? If your ASP.NET consume too much memory, a recycling is reqiured. Also, I suggest you may consider reduce the life time (its expire property) of cached object so that it won't cost too much of memory. Luke |
#6
| |||
| |||
|
|
I use System.Web.Caching.Cache object in ASP.NET application to cache a lot of large (~100K) and small (~2-5K) objects. I use Windows Server 2003, IIS, ASP.NET v.1.1 ( all patched! ). When I run my application on server with 1 Gb Ram all work OK. The memory using w3wp.exe growing up to ~700M, farther some items removed from cache and so on. When I upgrade server memory up to 2 Gb the memory using w3wp.exe growing up to about 1G-1.4G and application exception OutOfMemoryException occured, but cached items has not removed from cache!!! How can I fix this strange behavior? Thanks for any help. Alexander Inochkin. |
#7
| |||
| |||
|
|
CONCLUSION I include /3GB key in boot.ini (on the Windows Server 2003, 2Gb RAM)! It solve my problem... Application grow up to 1.3-1.4 Gb, time from time flush system.web.caching.cache and do not throw exception. I think it is the bug in cache flush algoritm. It can not remove object from cache correctly when expiration time not appear yet on the Windows System 2Gb RAM. Thanks for help. I use System.Web.Caching.Cache object in ASP.NET application to cache a lot of large (~100K) and small (~2-5K) objects. I use Windows Server 2003, IIS, ASP.NET v.1.1 ( all patched! ). When I run my application on server with 1 Gb Ram all work OK. The memory using w3wp.exe growing up to ~700M, farther some items removed from cache and so on. When I upgrade server memory up to 2 Gb the memory using w3wp.exe growing up to about 1G-1.4G and application exception OutOfMemoryException occured, but cached items has not removed from cache!!! How can I fix this strange behavior? Thanks for any help. Alexander Inochkin. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |