i have written a simple .NET 4.0 WCF service. Then I have tested this application for hours with the Ants Memory Profiler.
Unfortunally the Size of Byte objects has increased by 8MB. The gc can't free this memory until the service is closed.
This is the object tree:
ClientFramingDuplexSessionChannel -> SynchronizedMessageSource -> ClientDuplexConnectionReader -> Byte
[..] -> ClientDuplexConnectionReader -> Threading.WaitCallback -> ClientDuplexConnectionReader -> Byte
Is there something like a WCF Cache that can be disabled or is there any other way to prevent the WCF Service from consuming memory? Why does WCF consum this 8MB?
View Complete Post