WCF Service VS IIS 7.0 VS IIS7.5

I got WCF Service with Fluent NHibernate. When I host it in IIS7.5 on my development machine (WIN7), it works fine. The workflow shows a clear indication of garbage collection for my application pool.

But when I switched to production, which is Windows Server 2008 with IIS7, the Garbage collection does not work, and the virtual bytes in the workflow continue to grow and go out of memory.

The application pool is configured as Integrated.net 2.0. Has anyone experienced this, or is this a known issue with IIS7.0, or did I skip any settings in my configuration file?

I already tried with timely recirculation, but it had no effect.

Regards, Pradeep

+3
source share
1 answer

There are some garbage collection links that work less often on Windows 2008 IIS7 than on a development machine, see, for example: GC often doesn't work enough on an IIS 7 application - Windows Server 2008

However, if you encounter this problem, your code is written in such a way that objects remain to clear the garbage. You should try to remove objects and suppress finalization, see http://msdn.microsoft.com/en-us/library/ms973837.aspx , especially the sample code at the end of the article.

0
source

Source: https://habr.com/ru/post/1756976/


All Articles