I have a precompiled web app (32 bit) where the memory usage slowly rises until I get OutOfMemoryExceptions. Using a profiler, I've observed that the prime suspect is strings in System.Web.VirtualPath objects, which are in tu stored in the _localResourcesAssemblies Hashtable in a System.Web.Compilation.BuildManager object.
Those entries seem to get added in batches of about 50 MB, once every 4-6 hours. I'm stuck -- I have no clue what is calling into the BuildManager which adds those entries. Looking at the entries, they contain paths that match valid routes of an attribute-routed controller (or parent paths of valid route paths).
No files should be changing in the application's directory.
I set up a simple web app with similar routes to see if I could reproduce the problem, but I haven't been able to reproduce the problem on the test app.
Any ideas on how I can find what is calling into the BuildManager (sealed class, probably singleton) object?