简体   繁体   English

IIS 6.0应用程序池共享DLL

[英]IIS 6.0 app pool sharing DLLs

I have 10+ apps that are on a single app pool. 我在单个应用程序池中有10多个应用程序。 All these apps have some common dlls that they all load. 所有这些应用程序都有一些都可以加载的常见dll。 The issue right now is that these dlls are put in the '\\bin' folder for each app. 现在的问题是,这些dll被放置在每个应用程序的'\\ bin'文件夹中。 So each app; 因此,每个应用程序; even though it uses dll_a, will end up loading its own 'copy' of dll_a. 即使它使用dll_a,也将最终加载它自己的dll_a的“副本”。

I have a few questions 1) Is this ok? 我有几个问题1)可以吗? 2) Should i put dll_a in some common folder and have all apps reference 1 single copy? 2)我应该将dll_a放在某个公用文件夹中,并且让所有应用引用1个单一副本吗? 3. Does each worker process serving these apps load multiple copies of dll_a from different paths even though they are basically the same dll? 3.为这些应用程序服务的每个工作进程是否从不同的路径加载dll_a的多个副本,即使它们基本上是相同的dll?

1) Is this ok? 1)这样可以吗? -- yes this is ok. -是的,可以。

2) Should i put dll_a in some common folder and have all apps reference 1 single copy? 2)我应该将dll_a放在某个公用文件夹中,并且让所有应用引用1个单一副本吗? -- you can if you want. -如果需要,您可以。 The problem you will run into is that if you ever need to have an app use a different version of the dll all the others will have to upgrade (or downgrade). 您将遇到的问题是,如果您需要让某个应用程序使用其他版本的dll,则其他所有版本都必须升级(或降级)。 If deployment isn't a problem for managing the dlls I would tend to give them their own sererate copy. 如果部署不是管理dll的问题,我将倾向于给他们自己的Sererer副本。 We have a pretty automated process where I work though, so keeping things in sync when they need to be is pretty trivial here. 不过,我们有一个非常自动化的流程,因此在需要时保持同步非常简单。

3) Does each worker process serving these apps load multiple copies of dll_a from different paths even though they are basically the same dll? 3)服务这些应用程序的每个工作进程是否从不同的路径加载dll_a的多个副本,即使它们基本上是相同的dll? -- Yes each process will have it's on copy of the dll. -是的,每个进程都将其放在dll副本上。 Each application runs in it's own memory space, so althought technically they are using the same one, each one will have a copy of it in memory. 每个应用程序都在其自己的内存空间中运行,因此尽管从技术上讲它们使用的是同一应用程序,但是每个应用程序都会在内存中拥有一个副本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM