Solved

WCF Memory Issue

Posted on 2013-11-22
4
67 Views
Last Modified: 2015-12-28
Hi Experts,

     I have a Windows Mobile application running on a Motorola mobile device (Windows Mobile 6.5, .NET Compact Framework 3.5).  The application communicates with a WCF web service (http binding, XML format, hosted in a windows service (on the server side that is)).

     What I am noticing is that, on the client side, every time I make a call to the web service, the application takes a chunk of the memory and it never releases it back to the app.  The amount of data transferred in each call doesn't seem to make a difference in how much "bite" is taken out of the memory.  Now, we're only talking about maybe 500 KB each time, but when dealing with a mobile device that only has 250 MB of memory in the first place and it limits the amount of available memory per application, you run out of memory rather quickly and you start getting OutOfMemoryExceptions in the oddest places.  I don't think that it's any other part of my application, because even if all I do is start the app and do nothing else but fire the same web service call over and over again (with virtually no data being passed in each call (other than WCF overhead)), eventually the application runs out of memory.

      Has anyone else seen this before?  If yes, what's going on and how do I fix it?

      This problem is making the application completely unusable; I am in desperate need of help!

Thanks in advance!!!!
0
Comment
Question by:axnst2
  • 2
4 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
Comment Utility
Have you used a profiler to investigate this issue?

If you have the Ultimate edition, that version comes with a profiler.
0
 
LVL 2

Assisted Solution

by:Pavel_Kudishin
Pavel_Kudishin earned 250 total points
Comment Utility
Check that you release managed and not-managed resources after every call, close connection.
0
 

Author Comment

by:axnst2
Comment Utility
This is not a memory issue caused by me.  What I'm trying to find out is if there are any built in WCF settings that would cache/ hold on to data until I tell it to clear it....or anything else like that...
0
 

Author Closing Comment

by:axnst2
Comment Utility
The question has not really been resolved, but I want to clean this up.  Thanks for the attempt anyways!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now