Sudheer Kumar

ASP.Net, C#, BizTalk, MSBuild, WPF, WCF, WF....
posts - 28, comments - 111, trackbacks - 16

My Links

News



Archives

Post Categories

Reusing WCF Proxy to reduce Memory Usage

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.

Print | posted on Tuesday, April 20, 2010 8:38 AM |

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: