by jask2002
19. March 2012 05:52
When you have a Managed COM+ component written in C# class library and hosted on to DLLHOST.EXE
By default on a multi proc box .Net would load Server Mode GC(Mscorsvr) and in case you want to change the GC flavor to Workstation Mode (Mscorwks) for some reasons
Typically we do the change in aspnet.config in framework 2.0 folder
<configuration>
<runtime>
<gcServer enabled="false"/>
<gcConcurrent enabled="false"/>
</runtime>
</configuration>
And I can see it into effect for w3wp.exe as System.Environment.IsServerGC is returning False.
But the process in question dllhost.exe still have Server Mode loaded!
Then finally it took into effect when doing the change in Class Project library project by adding app.config
And also it took into effect when we added dllhost.exe.config OR dllhst3g.exe.config (depending upon your EXE)
You need to create a .config file for the C:\WINDOWS\system32\dllhst3g.exe.config (This will have server wide effect on all the dllhost.exe)
<?xml version ="1.0"?>
<configuration>
<runtime>
<gcServer enabled="false"/>
<gcConcurrent enabled="false"/>
</runtime>
</configuration>
Till then bye bye 
|
Has this post helped you? Saved you? If you'd like to show your appreciation. Please buy me a coffee or make a small contribution
toward blog's maintenance(to keep it Ads free )
|
f80066c3-fbab-49d8-a2ff-5f64d9dc91f0|0|.0
Tags: .Net, GC, dllhost.eexe
.Net | GC | Debugging