[R] Possible memory leak in loop.

2010-11-01 Thread Jonathan P Daily
I was trying to use memory.size() to determine whether a code loop I am executing created a memory leak, since one replicate of the simulation takes 670.98 seconds according to proc.time(), while 5 replicates takes 170762 seconds. So I set it up as: memA - memory.size() looping code... memB

Re: [R] Possible memory leak in loop.

2010-11-01 Thread jim holtman
If you are running on Windows, you might want to use 'perfmon' to look at the memory usage of the process over time. You might also want to put calls to memory.size in your looping code to see if there are things you are doing in the code that might temporarily use a lot of space and maybe

Re: [R] Possible memory leak in loop.

2010-11-01 Thread Jonathan P Daily
the word... imbue it. - Jubal Early, Firefly From: jim holtman jholt...@gmail.com To: Jonathan P Daily jda...@usgs.gov Cc: r-help@r-project.org Date: 11/01/2010 09:48 AM Subject: Re: [R] Possible memory leak in loop. If you are running on Windows, you might want to use 'perfmon' to look