There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Abnormal memory usage (+200MB)
We have an ASP.NET MVC4 application that is using System.Web.Optimization to bundle a bunch of Scripts (JQuery, Kendo, Bootstrap). In essence, we have 2 Script Bundles and 2 Style Bundles. Most of them are already minified.
When starting our application, this results in the following Memory Allocations (only relevant Hot path shown):
Function Name Number of Calls Inclusive Allocations Exclusive Allocations Inclusive Bytes Exclusive Bytes Module Name
System.Web.Optimization.Scripts.Render(string) 4 5,518,926 5,518,926 217,531,436 217,531,436 System.Web.Optimization.dll
System.Web.Optimization.Styles.Render(string) 4 2,059,042 2,059,042 47,376,570 47,376,570 System.Web.Optimization.dll
Changing the value of BundleTable.EnableOptimizations does not make any difference.
Note: this is taking 200+MB for Scripts and ~ 50MB for Styles, we have about 7 MB of scripts and ~3MB of css, most is already minified.