Solved

WCF Memory Issue

Posted on 2013-11-22
4
71 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
ID: 39671392
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
ID: 39672779
Check that you release managed and not-managed resources after every call, close connection.
0
 

Author Comment

by:axnst2
ID: 39757490
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
ID: 41386715
The question has not really been resolved, but I want to clean this up.  Thanks for the attempt anyways!
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

763 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