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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:23:57+00:00 2026-06-03T14:23:57+00:00

I am using eclipse in windows 7. When I set the -Xmx argument larger

  • 0

I am using eclipse in windows 7. When I set the -Xmx argument larger than 1500m, the following error occurs:

Error occurred during initialization of VM
Could not reserve enough space for object heap

Both eclipse and jdk are 64 bit version. The physical memory of my machine is 4g. Here is eclipse.ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms400m
-Xmx3840m

I thought under 64 bit java I could use more than 1.5g memory, but eclipse keeps throw the above error. Any ideas?

cheng

  • 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-03T14:24:00+00:00Added an answer on June 3, 2026 at 2:24 pm

    If your machine has 4G of RAM it does not mean that all of it is available to for the usage. The available RAM will always be less than 4 GB as the native OS and other applications running your machine will use some of the RAM. Quick way to find out the available RAM is

    1. Open Notepad (you mentioned you are on windows 7.)
    2. Click on Help -> About
    3. It shows the physical memory available at the bottom.

    There are no straight forward rules for choosing the heap size. It always involves tuning. An optimum value is arrived after some iterations. Check this post on the same forum.

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

Sidebar

Related Questions

I am using Android SDK 16.1 with Eclipse on Windows. I've set ANDROID_LINT_COMPLETE_REGIONS as
I'm using JDK7 and Eclipse Indiago in Windows 7 64-bit. I set environment variable
I'm using Eclipse on Windows to program C++ using Cygwin's toolchain. I would like
When using Eclipse over X-Windows on a remote shell (X port forwarding), is there
I'm using Eclipse and the Subversive for SVN control, in Windows. I've also installed
I'm coding a Rails project in a Windows environment and using Eclipse (with the
I'm using Java 1.6 , Eclipse , Windows 7. I'm trying to run commands
When starting the update, the following error is displayed: Network connection problems encountered during
I have set up debugging in Eclipse for native code using the Android NDK
I have the following boxes: a) A Windows box with Eclipse CDT, b) A

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.