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

  • Home
  • SEARCH
  • 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 8898857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:43:03+00:00 2026-06-15T00:43:03+00:00

on Linux and Windows I call options( java.parameters=-Xmx512m ) before loading any R libraries

  • 0

on Linux and Windows I call

options( java.parameters="-Xmx512m" )

before loading any R libraries which rely on rJava. Especially when reading and writing large Excel files using XLConnect (which uses Apache POI) this becomes necessary. However, on my Mac (OSX 10.8) this seams to have no effect:

options( java.parameters="-Xmx512M" )
library("XLConnect")
> Loading required packages: XLConnectJars
> Loading required packages: rJava
> XLConnect 0.2-1 by Mirai Solutions GmbH
> http://www.mirai-solutions.com ,
> http://miraisolutions.wordpress.com
xlcMemoryReport()
> Amount of free memory in the Java Virtual Machine (JVM):  60.72328 MB

My Java version is:

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

Any hints what I could have missed?

  • 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-15T00:43:04+00:00Added an answer on June 15, 2026 at 12:43 am

    Do you actually get OutOfMemory errors?

    The heap may not grow to its max size until it needs to, so the “free memory” reported will just be the memory available within the current allocation (which may be allowed to be extended if necessary until that maximum is finally reached).

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

Sidebar

Related Questions

I have composite project which contains: C++ library for Linux/Windows, C++/CLI library based on
Is there a way in Windows/Linux or any other operating system to know at
If my java app is running under Windows I can call Runtime.getRuntime().exec (rundll32 SHELL32.DLL,ShellExec_RunDLL
I have a project which compiles in multiple platforms... Windows, Unix, Linux, SCO, name
Anyone know application like network location(mac) for linux,windows.If not i am thinking of developing
I searching for and IDE that gives me a (mostly) uniform experience on Linux/Windows
I'm porting some (working) code from Linux to Windows 8. I'm using DDK. typedef
In the process of porting a C project from Linux to Windows Have installed
I use exec() to execute command, either linux or windows. How do you execute
I actually use a combination of OS X, Linux and Windows, but Windows is

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.