help-octave
[Top][All Lists]
Advanced

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

Re: "out of memory or dimension too large for Octave's index type"


From: PhilipNienhuis
Subject: Re: "out of memory or dimension too large for Octave's index type"
Date: Mon, 15 Jan 2018 12:43:23 -0700 (MST)

Francesco Potortì wrote
>>I got this "out of memory or dimension too large for Octave's index
>>type" issue when I was trying to create a matrix of size 5184 by 3904
> ...
>>The only thing is that the octave program has been running for a
>>while. But I've cleared all the variables by running 'clear all'
>>command and results of 'whos' command show no variable exists in local
>>workspace. 
>>
>>The version of octave is 4.2.1 32 bit, OS is Windows 7 64bit. I
>>understand that switching to octave 64bit might solve this issue, but
>>it is not a viable solution for my current situation.
> 
> The size of the matrix is 160MB, nothing to do with 64 bit indexing.
> 
> As far as I can remember, this may have to do with memory fragmentation
> under Windows.  I am sure Windows users can be more specific, and that
> if you look for that keyword you should find earlier explanations, but I
> suspect that rebooting the system will help at least for a while.

I think Francesco summed it up quite nicely.

A thing you might check is the size of the JVM (Java virtual machine), in
far-fetched cases it may hold quite a bit of data. The octave function
javamem is your friend. But to be honest I don't expect much gain there.

Other options would be checking Windows' Task Manager for resource hogs
(usually there are ample of those around) and -if you are administrator-
disabling unneeded Windows services (also occupying resources).
Browser windows & tabs can also claim amazing amounts of RAM, as do Office
programs.

Indeed, 64-bit Octave would help a lot. 32-bit programs are getting outdated
these days.

Other than that, restarting Octave and in the end even restarting your
system is the only way to get further.

Philip




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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