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 3300600
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:40:37+00:00 2026-05-17T20:40:37+00:00

My application’s performance deteriorate as it continues to run through the day. I suspect

  • 0

My application’s performance deteriorate as it continues to run through the day.

I suspect it is garbage collector, how can I verify this?
Is there a way to find out which object/function is causing garbage collection overhead?

Is there a way to manually perform garbage collection programatically to clear memory of leakages?

Thanks,

edit
On one end of the application it receives call back from a unmanaged api to accept data, processes it and then send messages out of socket on the second end. From the second end it then gets back follow up data on the messages it sent out.
The application opens 5-6 sockets to send and receive data from the second end.
It constantly logs lots of data to windows file system on a separate thread.

My measurements include timestamping (queryperformance counter) just before I send data out and the timestampinga again when I receive the followup from another process back on the socket.
I noticed out of multiple sockets I open, the performance deterioration is happening on one socket connection only.

The processing between the timestamping and sending.receiving data over socket includes iterating through 2 arraylist that has no more than 5-6 objects and couple of callbacks.

The memory usage from Task MAnager window does not go up considerably. From 96MB to 100MB after 6-7 hours run.

Following are some observations from running perfmon.

“finanlization survivors” and “promoted finalization memory from Gen 0” gradually increase with time

“Gen 0 collections” going from 1819 at the start to 6000 after 4 hours.
“Gen 1 Collections” is 10%-12% of Gen 0 collection and “Gen 2 collection” is 1% or less. COnsidering Gen 0 collection numbers are cumulative, it is probably not abig concern.

GC handles” went up from 850ish to 4000.

  • 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-17T20:40:37+00:00Added an answer on May 17, 2026 at 8:40 pm

    It’s far more likely that you have a memory leak, and invoking the GC manually will not help that: it can’t dispose of objects if your code hasn’t released them.

    Edit

    Since your GC handles are increasing, this page suggests that there are non-managed resources that are not getting freed. I’ve had this happen with bitmaps, for example, but you might have to tell us a lot more about your application to get a more specific suggestion.

    Here’s a thread that may give you some useful insight.

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

Sidebar

Related Questions

Application has an auxiliary thread. This thread is not meant to run all the
Application requests KML data through AJAX from server. This data is stored in javascript
Application.Run(form); Actually I tried to call this from my project. I got this exception.
Application.Run(new Main()); This line gives TypeInitializationException was unhandled after I switched from 3.5 to
Application loader is giving me this error when uploading an app to the AppStore:
Application : Nerddinner. This SP is for an inserting password for newly created User.
Our application has a background thread which spawns a process through System.Diagnostics.Process : Process.Start(
Application : It has 3 views Views A,B,C. There is a Alert on View
Application able to record error in OnError, but we are not able to do
Application frameworks such as DotNetNuke, Eclipse, Websphere and so forth are available today which

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.