Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Max number of appdomains loaded in one process

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?

thanks.

like image 456
ali_bahoo Avatar asked Nov 09 '10 16:11

ali_bahoo


1 Answers

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.

like image 182
Hans Passant Avatar answered Oct 23 '22 21:10

Hans Passant