ImageResizer 磁盘缓存 System.IO.IOException
ImageResizer diskcache System.IO.IOException
我们的应用程序中记录了以下异常:
System.IO.IOException: Insufficient system resources exist to complete
the requested service. at System.IO.__Error.WinIOError(Int32
errorCode, String maybeFullPath) at
System.IO.FileStream.FlushOSBuffer() at
System.IO.FileStream.Flush(Boolean flushToDisk) at
ImageResizer.Plugins.DiskCache.CustomDiskCache.<>c__DisplayClass29_0.b__0()
at ImageResizer.Plugins.DiskCache.LockProvider.TryExecute(String key,
Int32 timeoutMs, LockCallback success) at
ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile(String
keyBasis, String extension, ResizeImageDelegate writeCallback, Int32
timeoutMs, Boolean asynchronous) at
ImageResizer.Plugins.DiskCache.DiskCache.Process(IResponseArgs e) at
ImageResizer.Plugins.DiskCache.DiskCache.Process(HttpContext context,
IResponseArgs e) at
ImageResizer.InterceptModule.HandleRequest(HttpContext context,
HttpModuleRequestAssistant ra, IVirtualFile vf) at
ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object
sender, EventArgs e) at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)
我们有一个负载平衡环境,其中有两个 Web 服务器在一个单独的文件服务器上使用相同的缓存文件夹。
我们的磁盘缓存配置是这样的:
<diskcache dir="~/imageresizercache" autoClean="true" hashModifiedDate="true" />
知道为什么会出现这个异常吗?
谢谢,
你能分享诊断页面吗? /resizer.debug
听起来共享文件服务器存在连接瓶颈。一般来说,如果缓存文件没有存储在本地,最好禁用自动清理。
我们的应用程序中记录了以下异常:
System.IO.IOException: Insufficient system resources exist to complete the requested service. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.FlushOSBuffer() at System.IO.FileStream.Flush(Boolean flushToDisk) at ImageResizer.Plugins.DiskCache.CustomDiskCache.<>c__DisplayClass29_0.b__0() at ImageResizer.Plugins.DiskCache.LockProvider.TryExecute(String key, Int32 timeoutMs, LockCallback success) at ImageResizer.Plugins.DiskCache.CustomDiskCache.GetCachedFile(String keyBasis, String extension, ResizeImageDelegate writeCallback, Int32 timeoutMs, Boolean asynchronous) at ImageResizer.Plugins.DiskCache.DiskCache.Process(IResponseArgs e) at ImageResizer.Plugins.DiskCache.DiskCache.Process(HttpContext context, IResponseArgs e) at ImageResizer.InterceptModule.HandleRequest(HttpContext context, HttpModuleRequestAssistant ra, IVirtualFile vf) at ImageResizer.InterceptModule.CheckRequest_PostAuthorizeRequest(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
我们有一个负载平衡环境,其中有两个 Web 服务器在一个单独的文件服务器上使用相同的缓存文件夹。
我们的磁盘缓存配置是这样的:
<diskcache dir="~/imageresizercache" autoClean="true" hashModifiedDate="true" />
知道为什么会出现这个异常吗? 谢谢,
你能分享诊断页面吗? /resizer.debug
听起来共享文件服务器存在连接瓶颈。一般来说,如果缓存文件没有存储在本地,最好禁用自动清理。