System.web.optimization AssetManager increases memory usage

一个人想着一个人 提交于 2019-12-05 20:10:07

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.

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