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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:49:40+00:00 2026-05-31T06:49:40+00:00

I am trying to find memory leaks in a program I did not design

  • 0

I am trying to find memory leaks in a program I did not design (I’m new to the project). As it is quite a large program, I am having some trouble. I have tried a few profilers, and most of them hang or crash when attempting to follow the allocation stack trace to see which objects are taking up all of the memory.

I am running System.gc(); in a Thread and attempting to find out what exactly it is releasing/freeing. From the profiler, I can see that it is releasing, but I need to know what it is releasing.

Is there some way to get information at runtime from the garbage collector as to which objects it is releasing/freeing?

If not, or if this is a bad way to even think about trying to approach this, any other suggestions would be appreciated.

  • 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-31T06:49:42+00:00Added an answer on May 31, 2026 at 6:49 am

    I would use a memory profiler to find a memory leak. You can start with VisualVM. this may find your problem, but if it doesn’t try an evaluation version of a commercial profiler like YourKit.

    These tools can not only tell you what is being discarded but where it is being creating in the first place. It has a graphical interface so you can see the biggest or most numerous.

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

Sidebar

Related Questions

I am trying to find memory leaks from my Xcode project. I don't know,
I've got stuck in a problem with gflags when trying to find some memory
I am trying to find leaks in my program, which is a framework based
I am using latest Xcode, and trying to find memory leaks. When i use
I'm working on tracking down some difficult to find memory leaks in my iPhone
I'm having some trouble in my first foray into threads in C. I'm trying
I'm trying to use mtrace to detect memory leaks in a fortran program. I'm
I'm trying to find some information regarding the available GPU (for OpenGL) memory on
I'm trying to find memory leaks and performance issues with my java application. Is
I am trying to find a memory leak using ants memory profiler, and I've

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.