Hi Laurin,
WsHttpBinding and nettcpbinding uses the different encoding: WsHttpBinding uses textMessageEncoding, NetTcpBinding uses binaryMessageEncoding. This will consume the different amount memory. At the same time, in buffer-mode WCF Runtime will save all message data into memory. I think that this will give huge impact on memory consumption.
At the same time, I also recommend that you use CLR profiler and Windbg to investigate memory for more information:
http://msdn.microsoft.com/en-us/library/ms979205.aspx
This How To shows you how to use the CLR Profiler tool to investigate your application's memory allocation profile. You can use CLR Profiler to identify code that causes memory problems, such as memory leaks and excessive or inefficient garbage collection. Download the version for .NET 2.0 application.
http://msdn.microsoft.com/en-us/magazine/cc163528.aspx This column discusses the investigation process and shows you how to collect the data you need to determine what types of memory issues you are dealing with in your applications.
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.