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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:13:38+00:00 2026-05-27T07:13:38+00:00

I see my heap growing and I know it will eventually crash on any

  • 0

I see my heap growing and I know it will eventually crash on any device since it just keeps growing.

Grow heap (frag case)

is seen throughout the logs

on my phone it will crash the app at 32mb used. Other phones will of course be 16mb, if there are any with that few resources that run android 2.2

Now, I am using recycle() on my bitmaps, setting things to null, popping items from complex data structures, and using System.gc() to invoke garbage collection, throughout the app

but, the heap still grows and its a problem… eventually

How do I just force the app to dump resources so that it can continue functioning.

it is usually always the “bitmap vm budget” exceeding, but I am feeling more and more that I just don’t have access to the “clear bitmap vm” command

  • 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-27T07:13:39+00:00Added an answer on May 27, 2026 at 7:13 am

    i had also struggled a lot with this issue. there are many a things you can do.

    1. you can call recycle on each bitmap and set them to null.(bitmap.recycle() with relaese all the memory used by this bitmap but does not nullify the bitmap object ).

    2. you can also unbind the drawables associated with layouts as specified in this link.

    3. you can convert your hashmaps to WeakHashmaps. so that its memory would get relaesed when system runs low on memory.

    4. you can resize all your bitmaps. have a look at this link..

    5. you can override onLowMemory() method in activity which gets a call when entire system runs low on memory. you can release few resources there.

    6. you can make your objects SoftReference or Weakreference, so that they get released in low memory condition.

    But the real fact is that, all this can DELAY your out of memory issue/crash, but can not eliminate it because thing is that you must be leaking your activity context or memory somewhere.

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

Sidebar

Related Questions

See here: http://code.google.com/p/ie7-js/ Does anyone have any experience or remarks about this javascript? Is
While either IntelliJ or Eclipse are running, I can see how much heap they
I see output like this in my DMP file: Heap entries for Segment00 in
I'm profiling my application using VisualVM and I see that the heap size increased
-Xms is to specify initial heap size or minimum heap size? I see differing
I'm experiencing what appears to be a stack/heap collision in an embedded environment (see
I see that the Heap Size is automatically increased as the app needs it,
Does anyone know if the heap size on Android phones is a constant value
We see lot of sorting techniques like Merge, quick, Heap. Could you help me
Are there any heap data structure implementations out there, fibonacci, binary, or binomial? Reference:

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.