All,
S-Plus 8 on Windows XP
I am running into a memory problem with a script. After running
it 3 or 4 times, I get an error that there is not enough dynamic memory. I
checked the help and found the memory.size() function, so I ran it at the
beginning of the S-Plus session and after every script run. Upon opening
S-Plus, I get a value of 7541984. After each run, I got the following:
8936128
9173952
9569904
9867680
The last value was after the script crashed. When I tried to
open the Language Reference, S-Plus crashed. I opened it again and looked up
options(). Under memory, it says:
memory
the maximum size (in bytes) for all in-memory
data. If this limit is exceeded, the session is terminated to avoid runaway
computations that may slow down or crash the computing system. You may want to
check for memory growth by calling the function memory.size
; if things get out of hand, quit and re-invoke S-PLUS.
The last sentence surprised me. I thought there would be a
function to clean up the memory. It seems like quitting and re-invoking S-Plus
is a little harsh. Has anyone figured out a way to scrub the memory
accumulation? Thanks for any help you can provide.
Win
*****************************************************************
Winifred
C. Crawford Staff Scientist/Senior Meteorologist
ENSCO,
Inc.
Aerospace
Sciences and Engineering Division
1980
N. Atlantic Ave., Suite 830
Cocoa
Beach, FL 32931
VOICE:
321.853.8130 FAX: 321.853.8415
EMAIL:
crawford.winnie@ensco.com
AMU
Quarterly Reports are available online:
http://science.ksc.nasa.gov/amu
*****************************************************************