简体   繁体   English

相同的应用程序池,但是多个项目和大型.dll

[英]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 我有两个站点和两个类库的解决方案

  • (ClassLibrary) CommonFoo (ClassLibrary)CommonFoo
  • (ClassLibrary) SiteFooLib (has referense to CommonFoo) (ClassLibrary)SiteFooLib(已引用CommonFoo)
  • (Site) SiteFoo (has referense to CommonFoo and SiteFooLib) (站点)SiteFoo(已引用CommonFoo和SiteFooLib)
  • (Site) AdminFoo (has referense to CommonFoo) (站点)AdminFoo(已参考CommonFoo)

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.

相关问题 C# 多个项目引用相同的 dll - 更新 dll 的简单方法是什么? - C# Multiple projects reference the same dll - Whats the easy way to update the dll? 使用与 AspNetCoreModuleV2 相同的应用程序池托管多个 .net 内核 - Hosting multiple .net core using the same application pool with AspNetCoreModuleV2 Autofac,MediatR和多个DLL项目 - Autofac, MediatR & multiple DLL projects MSBuild用两个不同的项目构建相同的DLL - MSBuild Build same DLL with two different projects 我应该在一个解决方案中有多个项目,还是对于共享同一数据库的控制台和Web应用程序有多个解决方案? - Should I have multiple projects in a Solution or multiple Solutions for a console and web application that share same database? 在多个项目中使用相同的数据库 - Using the same database in multiple projects 在同一解决方案中部署多个项目 - Deploying Multiple Projects in Same Solution 在NotifyIcon应用程序中使用多个项目 - Using multiple Projects in NotifyIcon Application IIS本地,2个网站,2个应用程序池和“共享” dll问题 - IIS local, 2 websites, 2 application pool and “shared” dll problems 使用同一个 DLL 的多个版本 - Using multiple versions of the same DLL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM