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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:44:05+00:00 2026-05-21T08:44:05+00:00

I have been looking into a memory leak issue for a while. I found

  • 0

I have been looking into a memory leak issue for a while.

I found a cover flow on the internet from http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html

Now I was under the impression this app was causing my outofmemory issues, and its still possible that it has something to do with it. However, I have deleted everything from my application except the splash screen. There are no other activities. and it does Nothing……

The initial intent loads the Splash Screen activity.

My application is using between 79 and 83 percent of my available heap. The phone has given me 2.816M and i have apparently allocated 2.278M this last run.

First off, 3M of available space to run an app seems like not a lot. However 2.2M loaded into memory at initial boot seems like a ton of memory consumed when the only thing I am doing is loading a single activity with an imageview pointed to an icon resource measured at around 4k……

How/Why is my app using so much memory for nothing, and how can I alleviate my 80% memory consumption at boot.

I am developing on a T-Mobile G2 and I have nothing running except this app and the default services that run on a droid.

here is some of my memory dump info

suspect 1

2,239 instances of "java.lang.Class", loaded by "<system class loader>" occupy 673,760 (35.83%) bytes.

Biggest instances:

class com.ibm.icu4jni.util.Resources$DefaultTimeZones @ 0x401dc878 - 166,600 (8.86%) bytes.
class android.text.Html$HtmlParser @ 0x4010de58 - 126,592 (6.73%) bytes.
class org.apache.harmony.security.fortress.Services @ 0x4007fd98 - 51,456 (2.74%) bytes.
class android.content.res.Resources @ 0x4004bb78 - 38,768 (2.06%) bytes.
class com.abc.AppData @ 0x44d1e040 - 26,872 (1.43%) bytes.


Keywords
java.lang.Class

suspect 2

7,072 instances of "java.lang.String", loaded by "<system class loader>" occupy 435,560 (23.16%) bytes. 

Keywords
java.lang.String

suspect 3

58 instances of "org.bouncycastle.jce.provider.X509CertificateObject", loaded by "<system class loader>" occupy 289,288 (15.38%) bytes. These instances are referenced from one instance of "java.util.Hashtable$HashtableEntry[]", loaded by "<system class loader>"

Keywords
org.bouncycastle.jce.provider.X509CertificateObject
java.util.Hashtable$HashtableEntry[]

as you can see the system appears to be loading up and using all of the memory I have been given. How can I get it to give me more memory. 3 megs is not very much to work with. and I am trying to show an image gallery.

  • 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-21T08:44:06+00:00Added an answer on May 21, 2026 at 8:44 am

    I have run into memory leaks in the past but not with android. In the past I used the eclipse memory analyzer tool (second link) which I found very useful. To use it you need to generate a heap dump file (or memory snapshot), the blog post tells you how to do this (first link).

    http://www.andorfi.net/2011/03/memory-analysis-for-android-applications/

    http://www.eclipse.org/mat/

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

Sidebar

Related Questions

I've been looking into memory management a lot recently and have been looking at
I have been looking into IKVMing Apache's FOP project to use with our .NET
I have been looking into the Castle project and specifically Windsor. I have been
I use Tortoise SVN usuallly, but I have been looking into Mercurial since it
Have been looking at the MVC storefront and see that IQueryable is returned from
I have been looking for documentation related to interacting with MSPaint from the command
I have been looking into using Boost.Interprocess to create a disk-backed data structure. The
I have been looking into different systems for creating a fast cache in a
I have been looking into game development recently and my first programming language is
We have been running into an issue where we get this error message when

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.