views:

197

answers:

2

I'm supporting a ASP.NET v2.0 app installed on a Windows 2003 SP3 Enterprise on a quad core 8G machine running on .NET 2.0 SP1.

  1. before enabling the config, ran "tasklist /m mscorwks.dll"
    Image Name PID Modules
    w3wp.exe 7888 mscorwks.dll

  2. add under section in web.config

  3. ran IISRESET, rebooted server too

  4. ran "tasklist /m mscorsvr.dll"
    INFO: No tasks are running which match the specified criteria.

  5. ran "tasklist /m mscorwks.dll"
    Image Name PID Modules
    w3wp.exe 6251 mscorwks.dll

It seems like gcServer is not taking effect. Are there any additional settings/ configurations necessary to get it working?

+1  A: 

Update: Sorry, just saw that the link below, and thus maybe the whole information, applies to IIS 6.0. I don't know whether that is applicable to your environment.

I don't believe you can configure any GC setting on a per AppDomain basis, which is essentially what would happen when you only set it in a web.config file, thus on a per application basis.

You need to set this in the aspnet.config file. The Aspnet.config file is in the same directory as the Aspnet_isapi.dll file (check this for more information).

Edit: To figure out the GC in use, you can use WinDBG/SOS and the eeversion command:

0:010> !eeversion
2.0.50727.3082 retail
Workstation mode
SOS Version: 2.0.50727.3053 retail build
Christian.K
Well, this is standard Win2K3 SP3. I just verified IIS version is 6I just tried aspnet.config under C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727. still the tasklist /m mscorsvr.dll returns INFO: No tasks are running which match the specified criteria
G33kKahuna
A: 

Christian.K

thanks for the link; Chapter 5 had the answer. Below the line is a quote from Chapter 5

I guess there is no way to check whether the server GC is working.

Note: At the time of this writing, the .NET Framework 2.0 (code-named "Whidbey") includes both GCs inside Mscorwks.dll, and Mscorsvr.dll no longer exists.

G33kKahuna
@G33kKahuna: Rather than posting this as a new "answer", it should have been a comment to the answer provided by @Christian.K.
Scott Dorman
Yup, that is correct - I forgot :-(. See my orignal answer for a possibility to figure out which GC is being used.
Christian.K
@Christian: Thanks bud ...
G33kKahuna