[英]Same application pool, but multiple projects and large .dll
I've tried searching here, but could not find a answer to my question (I apologize if I missed it). 我尝试在这里搜索,但找不到我的问题的答案(如果我错过了,我深表歉意)。
Let me set the stage. 让我作好准备。 I have a solution with two sites and two class libraries
我有两个站点和两个类库的解决方案
The sites are using their own Application Pool (lets call them SiteFooPool and AdminFooPool). 这些站点正在使用它们自己的应用程序池(将它们称为SiteFooPool和AdminFooPool)。
I'm also using a external library, EO.Pdf (EssentialObjects PDF) that is currently references in SiteFoo only, for generating PDF files. 我还使用外部库EO.Pdf(EssentialObjects PDF)(当前仅在SiteFoo中引用)来生成PDF文件。 But in the future AdminFoo might also need it.
但是将来AdminFoo可能也需要它。
My question is this, will the SiteFooPool grow in memory if I move EO.Pdf to CommonFoo? 我的问题是,如果将EO.Pdf移至CommonFoo,SiteFooPool是否会在内存中增长? Or will it remain the same since it still in the same application pool, even if SiteFooLib also references CommonFoo?
或者,即使SiteFooLib也引用CommonFoo,由于它仍位于同一应用程序池中,因此它将保持不变吗?
I know the AdminFooPool will grow in memory. 我知道AdminFooPool将在内存中增长。
Thanks, Seke. 谢谢你谢克
A mere reference to the external DLL by itself will not cause the application pool to keep growing in memory. 仅对外部DLL的引用本身不会导致应用程序池在内存中不断增长。 The memory growth of the application pool depends on what you do with that external DLL in the new site.
应用程序池的内存增长取决于您对新站点中的外部DLL的处理方式。 If the new site is performing extensive operations with that DLL, then sure its app pool size will grow by a factor propotional to the memory consumed by those operations.
如果新站点正在使用该DLL执行大量操作,则请确保其应用程序池大小将增加与这些操作所消耗的内存成比例的因数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.