一个进程中加载的最大应用程序域数 [英] Max number of appdomains loaded in one process
问题描述
由于动态程序集加载需要应用程序域加载才能通过卸载相关的应用程序域来终止程序集,因此要加载的进程中是否有最大"数量的应用程序域?我正在考虑一个基于服务器的应用程序,每个用户都可以动态运行他的专有 C# 代码.但是,如果有 2000 个用户登录并加载他们的代码呢?除了应用程序的数量之外,我可能会遇到什么限制吗?
Since dynamic assembly loading requires appdomain loading to enable killing the assembly with unloading related appdomain, is there a "max" number appdomains in a process to be loaded? I am thinking of a server based application that each user can run his proprietary C# code dynamically. But what if, say, 2000 users log in and load their codes? Are there any possible restrictions I might encounter besides the number of appdomians?
谢谢.
推荐答案
几乎所有 CLR 限制都基于内存允许".我知道的唯一例外是类的成员数,限制为 65536.这是基于令牌值的定义.AppDomains 没有这样的事情.
Almost all CLR limits are based on "as memory permits". The only exception I know of is the number of members of a class, restricted to 65536. That's based on the definition of a token value. Nothing like that for AppDomains.
这篇关于一个进程中加载的最大应用程序域数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!