[ncl-talk] possible addfile memory leak

Andy Penny andybpenny at gmail.com
Fri Jul 14 09:48:36 MDT 2017


Okay, thanks for the link Dave, I'll try the bug fix. It definitely sounds like the same issue. 

Take care,
Andy

> On Jul 13, 2017, at 6:45 PM, Dave Allured - NOAA Affiliate <dave.allured at noaa.gov> wrote:
> 
> Andy,
> 
> This is probably the same grib2 memory leak that was reported and fixed last month.  You can download an NCL development version that includes this bug fix.  Please see this conversation for download instructions and other details:
> 
> http://mailman.ucar.edu/pipermail/ncl-talk/2017-June/009360.html
> 
> --Dave
> 
> 
>> On Thu, Jul 13, 2017 at 4:14 PM, Andy Penny <andybpenny at gmail.com> wrote:
>> Hi all,
>> 
>> I've encountered a memory issue when opening grib files in a loop using NCL's "addfile" function. Memory usage increases over time, even when I delete the file. I've copied a sample script below to demonstrate this. Is this normal behavior for the "addfile" function? And if so, does anyone know of a way to avoid this issue? I'm using NCL v6.4, binaries from: ncl_ncarg-6.4.0-RHEL6.4_64bit_nodap_gnu447.tar.gz
>> 
>> Thanks,
>> Andy
>> 
>> ---------------------------------------------------------
>> gribfile= "/data2/gfs/2017/20170710/gfs.20170710t12z.pgrb2f120.grib2"
>> 
>> do j = 0, 1000000
>>     do i = 0, 1000000
>> 
>> a = addfile(gribfile, "r")
>> 
>> delete(a)
>> 
>>   end do
>> end do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170714/03aea328/attachment.html 


More information about the ncl-talk mailing list