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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:56:39+00:00 2026-06-05T17:56:39+00:00

I know the default Java heap memory is 128 MB. Since it is the

  • 0

I know the default Java heap memory is 128 MB. Since it is the default, I want to know whether this memory get automatically changed according to the RAM size. For an example, for a machine with 128 MB RAM, heap memory 128 is too much and it should be automatically changed. Because if an application use all of 128 heap, PC will end up in a trouble.

please help.

  • 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-05T17:56:40+00:00Added an answer on June 5, 2026 at 5:56 pm

    In Java 1.6 update 18 (and later), if unspecified, the default heap-size in a client JVM follows these rules:

    The default maximum heap size is half of the physical memory up to a
    physical memory size of 192 megabytes and otherwise one fourth of the
    physical memory up to a physical memory size of 1 gigabyte.

    For
    example, if your machine has 128 megabytes of physical memory, then
    the maximum heap size is 64 megabytes, and greater than or equal to 1
    gigabyte of physical memory results in a maximum heap size of 256
    megabytes.

    Taken from the 1.6.0_18 update notes

    In previous releases of Java heap size was NOT variable by default.

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

Sidebar

Related Questions

I want to fetch default gateway for local machine using java. I know how
I want to know how to get the location of the user's default Internet
For any given type i want to know its default value. In C#, there
This is probably obvious, so bear with me. YES, I KNOW THAT java.io.File has
Possible Duplicate: What does “String[] args” contain in java? I want to know the
i just want to know: Is there any way to get a SharePoint user
I was playing around with the Java memory heap allocation and I think I
I want to know where I can get access to the NinePatch images specifically
I have set the default memory limit of Java Virtual Machine while running Java
Does anyone know how to get the Oracle performance tuner (referred to in this

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.