System.web.optimization AssetManager increases mem

2019-05-10 12:17发布

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.

enter image description here

1条回答
贪生不怕死
2楼-- · 2019-05-10 13:09

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.

查看更多
登录 后发表回答