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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:23:29+00:00 2026-05-28T20:23:29+00:00

This is frustrating. I’m trying to run a program which loads into memory a

  • 0

This is frustrating. I’m trying to run a program which loads into memory a 4000×3000 image. It runs fine in Ubuntu but not in Mac, throwing an OutOfMemoryError: Java heap space. Here’s my eclipse.ini in Ubuntu

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms128m
-Xmx512m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins

As for Mac

-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.100.v20110502
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
-vmargs
-Xms128m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Note that I’ve tried increasing the PermSize memory Xmx and Xmx of Mac to around 1024m but Mac still throws OutOfMemoryErrors. I only tried making them similar because, well, it runs in Ubuntu just fine.

Any suggestions?

Thanks!

  • 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-28T20:23:30+00:00Added an answer on May 28, 2026 at 8:23 pm

    These are your settings for eclipse, not for your program (I’m assuming you’re not building it as an Eclipse component). Your program will run with the default settings unless you specify differently in your Run configuration.

    The defaults java starts with depend on multile factors, like architecture, OS, and available RAM. So it’s entirely possible that it would start with a lower memory limit on your mac.

    To fix this, set Xmx to be the same on both systems (Also make sure they’re on the same architecture, 64 bit apps might require more memory to do the same thing).

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

Sidebar

Related Questions

I'm just diving into WPF and find this a little odd and frustrating to
This has been frustrating me for days now. I am trying to use Sharepoint
this is frustrating... I keep getting an error with my ftp_put: This the error:
I've been having this rather frustrating problem, and having failed so many times, I'm
Well this is incredibly frustrating. After being nagged by Rails that I need to
I need help finishing this statement. It is frustrating that two of the PHP
First of all thanks in advance, this has been very frustrating and I'm hoping
This is driving me wild with frustration. I am just trying to create a
Boy, is this frustrating... I installed the httplib2 by downloading the .tar.gz package from
This is frustrating me. It should be something really simple but I can't get

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.