[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netcdf file cache

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: netcdf file cache
  • Date: Thu, 08 Oct 2009 08:11:30 -0600

Don Murray wrote:
John-

In testing the GEMPAK stuff, I started using the NetcdfDataset file cache:

 NetcdfDataset.initNetcdfFileCache(1,10,20*60);

During one of my IDV sessions, I got the following error:

Oct 7, 2009 4:31:18 PM ucar.nc2.util.cache.FileCache cleanup
WARNING: FileCache NetcdfFileCache cleanup couldnt remove enough to keep under the maximum= 10 due to locked files; currently at = 11
Oct 7, 2009 4:31:26 PM ucar.nc2.util.cache.FileCache cleanup
WARNING: FileCache NetcdfFileCache cleanup couldnt remove enough to keep under the maximum= 10 due to locked files; currently at = 12

I didn't have 10 files open at the time and wondering what needs to be done to unlock the files? Thoughts?

it means that some files are not getting closed. you can call one of the 
FileCache.showCache() methods to see whats stuck in the cache