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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:07:22+00:00 2026-06-06T02:07:22+00:00

I don’t understand what happening in my application. My app structure: EventListActivity (List of

  • 0

I don’t understand what happening in my application. My app structure:

EventListActivity (List of events)
 EventDetailActivity (Detail of selected event and button to open list of persons)
  EventPersonsListActiviy (List of persons who connected to the event
   EventPersonDetialActivity  (Detail of selected person)

When I started the application I got this meminfo:

               native   dalvik    other  total      limit     bitmap  nativeBitmap
allocated:     5257     6620      N/A    11877      N/A       28      661

after the I go through the tree, and when I’m in EventPersonDetialActivity I got this

               native  dalvik    other  total      limit     bitmap  nativeBitmap
allocated:     5690     6740      N/A    12430      N/A       149      661

But when I’m open again the EventListActivity from the menu. But before start activity I close all latest activites (I have a HistoryManager, which is include a List, and when I open an activity I put into the list, and before start again the main activity I call finish() method to activities and after that clear a list. ) And in all activities in onDestroy a set all variable to null and call System.gc(). But I got this:

               native  dalvik    other  total      limit     bitmap  nativeBitmap
allocated:     5663    7193      N/A    12856      N/A       135      661

Why bigger the total memory usage in the third case than in the first case? While in the memory has only the EventListActivity?
And if I reply this method a lot, I got out of memory finally 🙁

  • 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-06T02:07:26+00:00Added an answer on June 6, 2026 at 2:07 am

    Do this to figure it out:

    1. Go to your EventListActivity a few times and check memory usage until it climbs up (but before it crashes).
    2. Take a heap dump
    3. Examine the heap dump using jhat
    4. Look at all instances of all classes (except system)
    5. At the top of the list you should see how many instances you have of each activity and other relevant classes. This should help you determine which objects aren’t being properly freed.
    6. Figure out which objects are referencing the objects that you think should have been collected by the GC (by following the links to “objects referencing this object”)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't think that I'm mad, I understand how php works! That being said. I
Don't know what's wrong here, when I run the application it says Specified method
Don't have much to say, just can get into the event handler. XAML: <Grid>
Don't know why this is happening, but after submitting a form via JS (using
Don't know why, but sometimes LocationManager is still working also after closing application. I
I don't understand the complexities related to CrLf settings in git: core.autocrlf , core.safecrlf
Don't understand this simple code: def main(): print (This program illustrates a chaotic function)
don't understand: in my controller: @json = User.all.to_gmaps4rails do |user| \Title\: \#{user.email}\ end in
Don't understand, if Data.Map is and [] is. I found this out while wondering
Don't quite understand determinism in the context of concurrency and parallelism in Haskell. Some

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.