我的网络服务器内存不足 [英] I have problem in my web server out of memory
本文介绍了我的网络服务器内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在网站服务器上的网站(asp.net)有问题,点击下载excel 60,000 KB等大数据或上传此文件,显示此错误,请注意检查任务管理器服务器内存仅使用15%(19 GB从120)。
i have a problem in our site (asp.net) in web server when click download for large data like excel 60,000 KB or upload this file , display this error ,Note when check task manager server memory used just 15% ( 19 GB from 120 ).
Exception information:
Exception type: OutOfMemoryException
Exception message: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Web.Hosting.IIS7WorkerRequest.SendResponseFromFileStream(FileStream f, Int64 offset, Int64 length)
at System.Web.Hosting.IIS7WorkerRequest.SendResponseFromFile(String name, Int64 offset, Int64 length)
at System.Web.HttpFileResponseElement.System.Web.IHttpResponseElement.Send(HttpWorkerRequest wr)
at System.Web.HttpWriter.Send(HttpWorkerRequest wr)
at System.Web.HttpResponse.UpdateNativeResponse(Boolean sendHeaders)
at System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status)
我尝试过:
........................ .................................................. ..............
What I have tried:
........................................................................................
推荐答案
我想这可能是因为你上传的文件大小超过4 MB。 />
I think it may be because you are uploading file having size more than 4 MB.
<system.web>
<httpRuntime maxRequestLength="10000" />
</system.web>
web.config上面的更改可能会解决您的问题。
Above change in web.config may solve your problem.
这篇关于我的网络服务器内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文