Main Page | Report Page

 

  Computers Forum Index » Computer Languages (IDL-PVWAVE) » ide vs command line: unable to allocate memory...

Author Message
lbusoni...
Posted: Sun Oct 24, 2010 1:06 pm
 
Hi all,

on IDLDE 8.0 on my Vaio running WinXP with 4GB

IDL> arr = fltarr(320,256,400)
IDL> arr = fltarr(320,256,500)
IDL> arr = fltarr(320,256,600)
% Unable to allocate memory: to make array.
Not enough space
% Execution halted at: $MAIN$
IDL> help, /mem
heap memory used: 164641979, max: 295714092, gets: 1120,
frees: 273


on IDL8.0 CommandLine on my Vaio running WinXP with 4GB

IDL> arr = fltarr(320,256,1500)
IDL> arr = fltarr(320,256,2000)
IDL> help, /mem
heap memory used: 656083764, max: 1147603857, gets: 1109,
frees: 273

What a hungry IDE! That's really bad!!!
Is there a way of tuning the memory compsumption of the eclipse?
Lorenzo
 
Heinz Stege...
Posted: Sun Oct 24, 2010 6:21 pm
 
Hi Lorenzo,

Scott had a tip in another thread (see
0257d0d4-22dc-4193-a7bc-1b9dd47c377e at (no spam) h7g2000yqn.googlegroups.com) in
this group some time before.

On Tue, 7 Sep 2010 09:57:56 -0700 (PDT), Scott E wrote:

Quote:
Assuming you are on a 32-bit platform, the issue here is there is too
much RAM allocated to the JVM to run the workbench and not enough for
IDL. To increase the memory available to IDL, navigate to the
idlde.ini file in the bin/bin.<arch> folder (a peer to the idlde
executable). That file should look like this:

-vm
{VM_DIR}
-vmargs
-Xms256M
-Xmx768M
-XX:MaxPermSize=128m

Change it to look like this and restart the workbench:

-vm
{VM_DIR}
-vmargs
-Xms128M
-Xmx128M

where {VM_DIR} is the path to the JVM (should not change). This issue
is fixed in 8.0.1.

Cheers,
Scott

It worked for me.

Heinz
 
lbusoni...
Posted: Mon Oct 25, 2010 3:14 am
 
On Oct 24, 2:21 pm, Heinz Stege <public.215.967 at (no spam) arcor.de> wrote:
Quote:
Hi Lorenzo,

Scott had a tip in another thread (see
0257d0d4-22dc-4193-a7bc-1b9dd47c377e at (no spam) h7g2000yqn.googlegroups.com) in
this group some time before.



On Tue, 7 Sep 2010 09:57:56 -0700 (PDT), Scott E wrote:
Assuming you are on a 32-bit platform, the issue here is there is too
much RAM allocated to the JVM to run the workbench and not enough for
IDL. To increase the memory available to IDL, navigate to the
idlde.ini file in the bin/bin.<arch> folder (a peer to the idlde
executable). That file should look like this:

-vm
{VM_DIR}
-vmargs
-Xms256M
-Xmx768M
-XX:MaxPermSize=128m

Change it to look like this and restart the workbench:

-vm
{VM_DIR}
-vmargs
-Xms128M
-Xmx128M

where {VM_DIR} is the path to the JVM (should not change). This issue
is fixed in 8.0.1.

Cheers,
Scott

It worked for me.

Heinz

Thanks!
 
 
Page 1 of 1    
All times are GMT
The time now is Sun Aug 31, 2014 8:36 am