help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual Memory too low, windows 8.1


From: Philip Nienhuis
Subject: Re: Virtual Memory too low, windows 8.1
Date: Wed, 7 Jan 2015 14:43:44 -0800 (PST)

Brian Terbush wrote
> Hello,
> 
> I am a recent convert to Octave from Matlab (Thank you!!!!).  I am trying
> to use a series of scripts that I used in Matlab, but have run into the
> "memory is too low" error, when attempting to run several calculations.
> I'll be attempting to process waveforms over long periods of time, so,
> this
> could turn out to be quite an issue over time.
> 
> I have installed Octave 3.6.4. on a machine with Windows 8.1.
> 
> With some searching, I found that there are options to change the java
> virtual machine memory limits, but I was unable to locate where I could
> find this option in either any of the octave files (no "java" folder), or
> by entering "'which" java.
> 
> Are there any tips/suggestions on how to make this work?  I haven't seen
> viable resources on forums or anything since before 2008.

Is your Java heap memory too low, or Octave's RAM assignment? Makes a bit of
difference...

Octave-3.6.4 is old, better use Octave-3.8.2 (see
http://mxeoctave.osuv.de/). There's also a 64-bit indexing version
available.
FYI, here's what I have on my box (8 GB RAM, Win7 64b, Octave-3.9.0+ w.
64-bit indexing development version):
====================================
>> javamem

Java virtual machine (JVM) memory info:
Maximum available memory:         1811 MiB;
   (...running garbage collector...)
OK, current status:
Total memory in virtual machine:   122 MiB;
Free memory in virtual machine:    119 MiB;
4 CPUs available.
>>
====================================
which says that Java's heap can expand to almost 2GB.

But if you insist on 3.6.4 (which is a 32-bit application), and I suppose
you have the Java package installed and loaded there, you might need to
change options in file java.opts (if JVM heap memory is the issue).
Again, see the wiki (Java package section) for details:
http://wiki.octave.org/Java_package#How_can_I_handle_memory_limitations.3F
IIRC you'd simply find the folder in which you'd put java.opts by issuing:

which javaclasspath

As to memory availability, here are some pointers that perhaps temper your
expectations of how much memory is available anyway for 32-bit applications
(32-bit or 64-bit OS doesn't matter, and Matlab or Octave doesn't matter
much either):

http://savannah.gnu.org/bugs/?func=detailitem&item_id=43495#comment13

http://octave.1599824.n4.nabble.com/out-of-memory-or-dimension-too-large-for-Octave-s-index-type-tt4664823.html

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Virtual-Memory-too-low-windows-8-1-tp4668020p4668024.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]