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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:22:16+00:00 2026-05-13T14:22:16+00:00

I am getting a bitmap size exceeds VM budget error. I have read that

  • 0

I am getting a “bitmap size exceeds VM budget” error. I have read that there is a 16MB memory limit. In this thread Romain Guy says that “you can only allocate 16 MB
of memory for your entire application”.

However, my app must be running out of memory long before it reaches that limit. So my question is: how do I allocate memory to my application … how can I get the allocation to my app increased (within the 16MB maximum)?

  • 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-13T14:22:16+00:00Added an answer on May 13, 2026 at 2:22 pm

    As with any Java VM, the heap memory will automatically grow to the max size. But, bitmaps are allocated outside the VM, so you don’t “see” them easily in the stats. The best thing you can do is make sure you don’t use large bitmaps, or scale them down using
    http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html

    From Eclipse you can generate a heap dump when you are on Android 1.6 or up and you can analyze the dump with Eclipse MAT.

    Generally you can’t control the max heap size on a real device, unless you are working with custom hardware or firmware.

    There should be an article at developer.android.com on dumping the heap on 1.6, but I’m unable to find it. 🙁

    Edit
    Also, I have to mention that you can request more memory for applications by using

    android:largeHeap=”true”

    in the manifest. But this is highly ill-adviced as most applications do not need this.

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

Sidebar

Related Questions

I am getting the error java.lang.OutOfMemoryError: bitmap size exceeds VM budget . This occurs
Android bitmap size exceeds VM budget. My app is getting this error frequently. I
I am getting the 'java.lang.OutOfMemoryError: bitmap size exceeds VM budget' error... What I am
I'm getting the error: java.lang.OutOfMemoryError: bitmap size exceeds VM budget(Heap Size=12295KB, Allocated=3007KB, Bitmap Size=15621KB)
Getting this weird LINQ error. title = System.Linq.Enumerable+WhereSelectEnumerableIterator`2[System.Xml.Linq.XElement,System.String Here is the code I have:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget. i am updating images to a gridview from
I'm getting a lot of these exceptions from users: java.lang.OutOfMemoryError: bitmap size exceeds VM
Getting red warning message that expected identifier for this statement CALayer = ImageView.layer; Using
I'm having a problem getting a bitmap to rotate properly. I have a SurfaceView
I am getting out of Memory error. I am working on live chat application.

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.