Does ASP.NET share resources in the same pool?

4

I have today in my IIS 8 sites in ASP.NET using the same pool. On average they consume 800mb of RAM.

I ended up dismembering them (separate pools) and apparently seems to be consuming 1.5GB in total.

I wonder if IIS shares resources in the same pool?

Ex: Entity Framework.dll is it loaded once and used between all sites in the same pool?

Several .dlls are the same for almost every project: Ex:

    Antlr3.Runtime.dll
    EntityFramework.dll
    EntityFramework.SqlServer.dll
    Newtonsoft.Json.dll
    System.Web.Mvc.dll
    WebGrease.dll
    //etc
    
asked by anonymous 27.04.2016 / 21:05

1 answer

4

It is possible to share IIS features as you mentioned, but not automatic. To do this. you need to configure your IIS for this. You can check out here . Also has some examples here and here .

But why did the memory consumption increase then?

Each application pool is an instance of W3wp.exe , a worker process for a / site collections. That is, when I was in the same pool , I was creating just one instance, thus consuming memory.

So should I leave everything in the same application pool?

Not really, every case is a case. StackOverflow, for example, leaves everything in a single pool , such as Roberta speaks in her speech , but that means that if any problem occurs and for the pool, all sites will stop working.

In summary, you should study what is best for your case. You can share resources between different pools , put in it or if you have no problem with the memory, leave it as it is.

  

Note: When sharing resources (dll's), you should ensure that the systems are using the same version, and may have problems if one is in a different version.

    
27.04.2016 / 21:43