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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:50:29+00:00 2026-06-08T09:50:29+00:00

I want to increase the default virtual memory heap size of my avd .

  • 0

I want to increase the default virtual memory heap size of my avd. I am using Eclipse 3.7.2 for development and when I create (or edit) a avd I set the “Max VM application heap” to 64MB. If I select Details it confirms this and if I inspect the config.ini file i see that “vm.heapSize=64” which is correct. The problem is that this is not actually true when running the avd.

In my application I run “Runtime.getRuntime().maxMemory();” which shows 24MB!!!!

Likewise,

ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
int memoryClass = am.getMemoryClass();

Shows 24MB

UPDATE: I noticed that in hardware-qemu.ini the “vm.heapSize=24” ? I changed the value to 64, but when I launch the avd it gets changed back to 24?

UPDATE: totalMemory() returns ~15MB

UPDATE: ADT version is 20.0.1

UPDATE: I have tested this a bunch, making many different AVDs with many different settings and all I can conclude is that the AVD or Eclipse is a bit buggy and often does not reflect the settings values you enter for the AVD. Note that I have made AVD devices that do reflect vm.heapSize=64.

  • 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-08T09:50:32+00:00Added an answer on June 8, 2026 at 9:50 am

    Based on this Google Groups question and my interpretation of the documentation sounds like those values would be fore your application only and not the entire emulator.

    I would be curious to see if totalMemory() would return 64m. Here is the documentation.

    Edit: getMemoryClass() according to the documentation:

    Return the approximate per-application memory class of the current
    device.

    Which boils down to there is no programmatic way that I can find to get the heap size of the emulator (device).

    Edit 2: I think you may be able to find your answer here as well. – Android How do you get total memory RAM in the device?

    Good luck.

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

Sidebar

Related Questions

I want to increase the size of cell image which I have set like
My problem is that I want to increase the default stack size when running
I am using jgraph v 5.9.2.0 with JDK7. I want to increase the size
For each click I want to increase the font size. $('#fontplus').each(function('click') { var fs
In my application i am using video player in which i dont want default
I need to slow down ViewPager, and I want increase MIN_DISTANCE_FOR_FLING. How can I
I want to increase the clickable area of my button (ImageView). But I don't
I want to increase my CPU usage through a java program, albeit in a
I am creating a Google Maps Mashup and want to increase the z-index of
I'm a PHP programmer and I really want to increase the quality of my

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.