Geeks With Blogs
Sudheer Kumar ASP.Net, C#, BizTalk, MSBuild, WPF, WCF, WF....

I am working on a program that uploads BLOB from DB to a Document Management System.

I have a WCF service to interact with the DMS.

I have a multi-threaded client program that uploads the BLOBs to DMS and every thread used to create and dispose a proxy instance for every record to update.

When I have a large no of records to convert, I found that the tool’s memory foot print keeps increasing. After a little debugging I found that the WCF proxies are the culprits for excessive memory usage.

I changed the program to re-use the proxies to the service, having one proxy per thread.

So in some scenarios, it might be beneficial to re-use WCF proxies.

Posted on Tuesday, April 20, 2010 8:38 AM | Back to top


Comments on this post: Reusing WCF Proxy to reduce Memory Usage

# re: Reusing WCF Proxy to reduce Memory Usage
Requesting Gravatar...
How can we achieve "having one proxy per thread." ?
Left by Kiran on Jul 31, 2012 4:07 AM

# re: Reusing WCF Proxy to reduce Memory Usage
Requesting Gravatar...
thanks for providing the quality program information
Left by silicone watch on Aug 19, 2012 7:56 PM

# re: Reusing WCF Proxy to reduce Memory Usage
Requesting Gravatar...
excellent post.. takes 1 week to found this solution..
Left by jay on Sep 20, 2012 4:18 AM

# re: Reusing WCF Proxy to reduce Memory Usage
Requesting Gravatar...
how can I achieve this???
Left by ailyn on Nov 15, 2012 10:28 AM

Your comment:
 (will show your gravatar)


Copyright © Sudheer Kumar | Powered by: GeeksWithBlogs.net