IIS 7 and Above
Unlock your iis7-aspnet performance
Last post Nov 02, 2012 01:10 PM by foxontherock
Feb 18, 2011 10:09 AM|foxontherock|LINK
Feb 18, 2011 10:23 PM|lextm|LINK
If you have to use Workstation GC mode instead of the Server GC mode, the problem is not caused by Microsoft's mistake, but your developers of this application.
Read this chapter, http://msdn.microsoft.com/en-us/library/ff647790.aspx and you will see why Server GC should be used.
I guess there are some classes designed poorly in this application that finally have negative impact on GC. They may work acceptably in Workstation GC mode, but unacceptable in Server GC mode.
Then you should not expect Microsoft to change a critical .NET setting simply for your application.
Optimizing ASP.NET and IIS is not trivial, and please be patient and reasonable.
Feb 19, 2011 08:12 AM|foxontherock|LINK
Feb 19, 2011 09:14 PM|lextm|LINK
I quote that chapter simply to emphasize a fact, that Server GC should be used for your production environment.
I don't doubt that "the quality of your code was increased" or "you applied everything that article suggests". But I must confess the GC oriented optimization does not come easy, unless you have a deep enough understanding of GC/heaps runtime footprint well
enough to identify the cause of the slowness. Even a long time .NET developer may feel difficult to identify or resolve such issues.
The chapter 6 shows sometimes you can switch to Workstation GC, but IMHO that's only a dirty workaround (in case you cannot identify the root cause, this workaround at least makes you happy).
I won't comment more, as it seems that you are very happy with the workaround. You can use it as far as nothing breaks any more. To summarize,
1. .NET coding is not that simple. Playing nicely with the GC requires a lot of efforts.
2. To debug GC related performance issues, you need special expertise, and sometimes involving Microsoft support via http://support.microsoft.com is a quicker way.
3. It is not wrong to apply any workarounds mentioned by Microsoft articles, but make sure you understand the recommended ways.
Feb 19, 2011 10:11 PM|foxontherock|LINK
Nov 02, 2012 01:10 PM|foxontherock|LINK