s-news
[Top] [All Lists]

memory accumulation

To: "S-PLUS Newsgroup" <s-news@lists.biostat.wustl.edu>
Subject: memory accumulation
From: "Crawford.Winnie" <crawford.winnie@ensco.com>
Date: Fri, 20 Feb 2009 17:00:26 -0500
Thread-index: AcmTpqHOsHnhvenwQLKIPGA1nR0bMw==
Thread-topic: memory accumulation

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

*****************************************************************

 

 
The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.
<Prev in Thread] Current Thread [Next in Thread>