Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6101295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:29:01+00:00 2026-05-23T13:29:01+00:00

I have a wcf service and i am using below config values for the

  • 0

I have a wcf service and i am using below config values for the same.

maxItemsInObjectGraph="2147483647"
maxBufferPoolSize="2147483647" 
maxReceivedMessageSize="2147483647"

Everything works fine except that my service keeps occupaing the memory. I have narrowed down the problem and the reason it is occuping lots of memory is because it is not freeing up these unused buffer size. When i use defalt values for that, it works just right with no too much memory.

Is there a way i can make service claim the unused space?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:29:01+00:00Added an answer on May 23, 2026 at 1:29 pm

    I’m curious as to how you determined these settings are the cause of your issue, and what you are looking at to determine the memory usage, and over how much time and how many requests you let it run.

    Do you get an OutOfMemory exception after a couple requests?

    Note that 2147483647 bytes is 2GB, so it would take about 2 or 3 requests before you would run out of memory if these buffers were being fully allocated and not released.

    Are you sure that the memory just isn’t being GC’d because there is no reason to? If heap space is available, and under certain thresholds, it don’t have much of a reason to spend time GC’ing things.


    Edit:

    You may also see different memory usage based on the size of these created buffers and objects. Some of this is outlined here. Basically .net treats objects over 85,000 bytes as ‘large’ and compacts them differently.

    Again though, if you never get a memory exception or actually run out of memory, then you probably don’t have an issue. “different” memory usage doesn’t mean it is “wrong”. You should load test your application and see if it actually runs out of memory, which would indicate a real memory leak. Otherwise, it might just build up memory until it approaches the max heap gen sizes then GC everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service that is using a custom ServiceAuthorizationManager . The custom
I have a WCF Service Library (implemented using NH) with one of the class
I have developed a Web service using WCF Service Application. This service application is
I have a .NET web service (using asmx...have not upgraded to WCF yet) that
I have a Data Service created using WCF that internally uses nHibernate. This WCF
I have a WCF Service. It returns the below type. I get the data
I am using VS 2008. I have to create a wcf service and inside
I have made a REST Web service, that works with Visual Studios WCF Test
I have a REST WCF service. Its using a webHttpBinding and the configuration looks
I have a simple WCF4 REST service which is working fine when using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.