System.web.optimization AssetManager增加内存使用量 [英] System.web.optimization AssetManager increases memory usage

查看:88
本文介绍了System.web.optimization AssetManager增加内存使用量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这样做是为了对我们的项目进行内存分析,因为内存使用过多.

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.

推荐答案

我最近发现,通过ScriptBundle最小化较大的缩小文件会导致过多的内存使用.

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

以我为例

发件人: bundles.Add(new ScriptBundle("~/Bundles/Scripts/").Include(....

收件人: bundles.Add(new Bundle("~/Bundles/Scripts/").Include(....

将我的内存使用量减少了约300mb.

Reduced my memory usage by around 300mb.

从长远来看,这显然不是一个很好的解决方案,您可能应该转向另一个解决方案("Gulp"或"Bower"),但这可能足以解决下一两个版本.

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.

这篇关于System.web.optimization AssetManager增加内存使用量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆