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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:48:12+00:00 2026-05-26T21:48:12+00:00

Native heap size of my application keeps increasing and finally crashes. I have a

  • 0

Native heap size of my application keeps increasing and finally crashes.

I have a couple of list views in my application and it is being populated from the database.
In the lisview, there are images and I have soft references to the bitmap image that is being loaded into the listview.

I also have option to view my application in different languages – English and Hindi.Whenever the user changes the language, I reload my application and this is increasing native heap size even though I have set FLAG_CLEAR_TOP and the activities are destroyed.I also set the locale when the language is changed.

I have also made sure all the lists are cleared when activities are destroyed.

  • 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-26T21:48:12+00:00Added an answer on May 26, 2026 at 9:48 pm

    You have to double check the ways you control your connections and data that you retrieve and keep in your application.

    You have a Memory Leak in your application and it’s kinda hard to catch it.The best you can do is that cleaning all your background cache and closing the connections whenever you do a major operation which will affect or restart the application.

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

Sidebar

Related Questions

How can we poll the heap size (both native and managed) periodically on Android,
I have a Java application that calls lots of different native methods of a
I am working on an application where i have images being downloaded asynchronously for
I have a .NET/native C++ application. Currently, the C++ code allocates memory on the
In my application I load a couple of images from JPEG and PNG files.
I want to scan the entire heap of a currently running native application through
The native email application which version is 2.3 run in version 4.0, it will
When my android application native code runs on NEON processor I'm taking advantage of
We have a .NET application which our customers consider too large for mass deployment
I tried to increase the heap size like the below C:\Data\Guru\Code\Got\adminservice\adminservice>java -Xms512m -Xmx512m Usage:

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.