Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: JLink OutOfMemoryError

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70207] Re: JLink OutOfMemoryError
  • From: "Peter" <pjcrosbie at gmail.com>
  • Date: Sat, 7 Oct 2006 07:08:07 -0400 (EDT)
  • References: <eg4ria$f8s$1@smc.vnet.net>

It is possible that the command line string you are sending is
incorrect.  The single \ are probably being interpreted as escape
chars, you need \\.  Try:

> InstallJava[CommandLine->"C:\\Program Files\\Wolfram
> Research\\Mathematica\\5.2\\SystemFiles\\Java\\Windows\\bin\\java.exe -Xms32m
> -Xmx128m"]

Alternatively, given that you are simply using the default JVM for Mathematica
try:
Needs["JLink`"];
InstallJava[JVMArguments -> "-Xmx1G -Xms32m"]


Allen, Matthew wrote:
> Hello,
>
> I'm trying to do large array crunching in Mathematica/Jlink.  The code
> works fine for small 2D arrays, but when I try to use large arrays (i.e.
> 400000x64) I get a
>
> java.lang.OutOfMemoryError
>
> I've tried to increase the memeory supply by using:
>
> InstallJava[CommandLine->"C:\Program Files\Wolfram
> Research\Mathematica\5.2\SystemFiles\Java\Windows\bin\java.exe -Xms32m
> -Xmx128m"]
>
> but it crashes or asks me to "Select the MathLink file to run."  Does
> anybody have any advice.  I really need to crunch big arrays and I don't
> want to use another system.  Thanks for any advice.
>
> matthew allen
>
> ************************************************
> Matthew Allen
> Senior Member of Technical Staff
> Rad/Nuc Detection Systems
> Sandia National Laboratories/California
> mallen at sandia.gov
> (925)294-6662
> ************************************************


  • Prev by Date: Re: FoourierTransform of a function defined in sections
  • Next by Date: Show results of Runge-Kutta Solution
  • Previous by thread: Re: JLink OutOfMemoryError
  • Next by thread: Re: JLink OutOfMemoryError