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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:34:24+00:00 2026-06-12T12:34:24+00:00

Sorry for asking the question, should have searched a bit more. Im running weka

  • 0

Sorry for asking the question, should have searched a bit more.

Im running weka with a rather large dataset and a memory intesive algoithm. I need all the heap space I cant get!

This works:

java -jar -Xmx2048m weka.jar &

But this does not

java -jar -Xmx4096m weka.jar &

I get:

Error occurred during initialization of VM Could not reserve enough 
space for object heap Could not create the Java virtual machine.

By some quick searching I found that this is the upper limit

java -jar -Xmx2594m weka.jar &

I have 4GB ram but a 32 bit machine. Why can’t I use 2^32 bytes = 4096MB of memory?

For the future I am wondering if I can run java with e.g. hundreds of GB of heap space if I have the correct hardware and OS?

I have both 1.6 and 1.7 JVM installed:

$java -showversion
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)
OpenJDK Server VM (build 20.0-b12, mixed mode)
  • 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-12T12:34:25+00:00Added an answer on June 12, 2026 at 12:34 pm

    I have 4GB ram but a 32 bit machine. Why can’t I use 2^32 bytes = 4096MB of memory?
    For the future I am wondering if I can run java with e.g. hundreds of GB of heap space if I have the correct hardware and OS?

    For 4 GB I suggest you use a 64-bit OS and possibly a 64-bit JVM as the limit for the heap size can be as small as 1.2 GB (on Windows XP)

    If you want larger JVMs I suggest making sure you have 64-bit OS and JVM and you have more memory than the size of the JVM. e.g. if you want a 40 GB heap you need something like 48 GB or 64 GB of memory.

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

Sidebar

Related Questions

Sorry for asking a totally basic question, but if I have a synthesized property
Sorry for asking a rather n00b question, I am rather new to ASP.NET MVC.
Sorry for asking this question, but I searched all Java-related questions, but I got
sorry to asking basic question.In my viewcontroller memory is going up when i rotate
Really sorry to be asking a bit of an off topic question, but we've
Sorry for asking silly question.. I have an array with class objects like: Class
Yeah, sorry about asking a stupid n00b question. So I have a C# program.
I am sorry if I am asking the question poorly. I have a Rails
I am new to Cstring, sorry for asking dumb question, please help. char string[10];
sorry for asking this dumb question i will try to explain as good as

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.