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

  • Home
  • SEARCH
  • 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 8558391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:48:03+00:00 2026-06-11T15:48:03+00:00

I have an application in C#, Framework 4. Very basically, this application mainly react

  • 0

I have an application in C#, Framework 4. Very basically, this application mainly react to events and creates objects, release them, create database connection and close them.

Now, we’ve been seeing that the application’s process grows sometimes in very strange ways. We’ve got two different behaviors :

  1. The application grows until reaching up to 4 GB in RAM when usually it “should” stay at around 500 MB. Consequence -> it crashes!
  2. The application grows slowly up to 1200 MB (30 minutes) and then abruptly shrinks to 500 MB (in one second)… and this process repeats itself every now and then. Can this be Garbage Collector in action ?

Now, in order to provide us with more informations about the application, I would like to add in our log files the size of the application’s process. Is it possible through the native framework ? Is it possible to know an object’ size in C# ?

I’ve also found the application NetMemoryProfiler4 but I would prefer to use embedded logging if it’s possible !

  • 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-06-11T15:48:05+00:00Added an answer on June 11, 2026 at 3:48 pm

    You need memory profiler to debug such problems. For example:

    • CLR Profiler
    • .Net Memory Validator
    • GlowCode
    • ANTS Memory Profiler

    Also see suggestions from the other question about memory leaks.

    Basically, this boils down to finding the objects in memory that stay here while they shouldn’t. It can be event handler holding reference to its class or some collection of objects holding references to their parents, and so on. After finding the root cause you may need to restructure your application to get rid of the unnecessary references. This can be as simple as adding forgotten event unsubscription but in non trivial cases might require applying some structural design patterns. This part is very application specific.

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

Sidebar

Related Questions

I have just create a very basic Dynamic Data web application using Entity Framework,
I have an application developed in Zend Framework 1.11. I use Zend_OpenId to create
I have an application that uses the .NET framework 3.5. I am building this
I have this web application using Spring Web Flow framework. In my main page
I have a custom built application framework written in PHP which I have been
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
I have an application on the Compact Framework that has some large embedded resources
I have a wpf application written in framework 4. The application is downloaded via
I have an asp.net 4.0 framework application that consists of a Masterpage and contentplaceholders.
I'm developing a framework application, and I want individual implementations to have the possibility

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.