Mathematica & J/Link: Memory Constraints?

Posted by D-Bug on Stack Overflow See other posts from Stack Overflow or by D-Bug
Published on 2009-06-14T14:26:02Z Indexed on 2012/07/11 15:16 UTC
Read the original article Hit count: 180

Filed under:
|
|

I am doing a computing-intensive benchmark using Mathematica and its J/Link Java interface.

The benchmark grinds to a halt if a memory footprint of about 320 MB is reached, since this seems to be the limit and the garbage collector needs more and more time and will eventually fail.

The Mathematica function ReinstallJava takes the argument command line. I tried to do

ReinstallJava[CommandLine -> "java -Xmx2000m ..."]

but Mathematica seems to ignore the -Xmx option completely.

How can I set the -Xmx memory option for my java program? Where does the limit of 320 MB come from? Any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about java

Related posts about mathematica