System.web.optimization AssetManager increases memory usage

 ̄綄美尐妖づ 提交于 2019-12-07 16:18:24

问题


I am doing so memory analysis for our project there is excessive usage of memory.

This is what I got when I did a deep analysis.


回答1:


I have recently found that minifing large minified files via ScriptBundle can cause excessive memory usage.

In my case changing

From:bundles.Add(new ScriptBundle("~/Bundles/Scripts/").Include(....

To:bundles.Add(new Bundle("~/Bundles/Scripts/").Include(....

Reduced my memory usage by around 300mb.

Long term this obviously isn't a great solution, and you should probably move to another solution ("Gulp" or "Bower"), but this may be enough to get through the next release or two.



来源:https://stackoverflow.com/questions/27980800/system-web-optimization-assetmanager-increases-memory-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!