Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / June 2003

Tip: Looking for answers? Try searching our database.

ASP COM object using Interop -> which GC is used?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Crim - 30 Jun 2003 07:25 GMT
It certainly seems preferable that .NET components, used in ASP applications
via COM Interop, would use the Server GC instead of the Workstation GC.

For background, many articles discuss that the Server Garbage Collector is
appropriate for high-throughput use, and the Workstation Garbage Collector
is meant for single user apps with a UI.

Can anyone tell me which GC is used?  If it's the workstation GC, is there a
way to specify that the Server GC be used instead?

Thanks in advance,

John Crim
WebRelevance
john@_remove_this_to_mail_me_webrelevance.com
Vadim Melnik - 30 Jun 2003 09:50 GMT
Hi,

> It certainly seems preferable that .NET components, used in ASP applications
> via COM Interop, would use the Server GC instead of the Workstation GC.
[quoted text clipped - 5 lines]
> Can anyone tell me which GC is used?  If it's the workstation GC, is there a
> way to specify that the Server GC be used instead?

As far as I know, IIS automatically loads server CLR (mscorsvr.dll) on
multi-processor machines.

It's possible to select necessary CLR version, by creating custom CLR host
and loading  runtime by CorBindToRuntimeEx (second parameter used to specify
server or workstation build).

I also heard about undocumented COMPLUS_BUILDFLAVOR environment variable
("SVR" or "WKS"), use it at own risk.

..
Regards,
Vadim
Willy Denoyette [MVP] - 30 Jun 2003 10:14 GMT
Which version of the runtime (server/workstation) loaded is determined by the hosting process and the number of CPU's available.In
your case the hosting process (inetinfo.exe - ASP) which is not .NET aware, will load the (default) workstation version.
On a single CPU box only the workstation version can be loaded even if the host requests for the server version, it is never
beneficial to run the server version of the CLR on a uniprocessor box.

Willy.

> It certainly seems preferable that .NET components, used in ASP applications
> via COM Interop, would use the Server GC instead of the Workstation GC.
[quoted text clipped - 11 lines]
> WebRelevance
> john@_remove_this_to_mail_me_webrelevance.com

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.