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.
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 cleanupWARNING: FileCache NetcdfFileCache cleanup couldnt remove enough to keep under the maximum= 10 due to locked files; currently at = 11Oct 7, 2009 4:31:26 PM ucar.nc2.util.cache.FileCache cleanupWARNING: FileCache NetcdfFileCache cleanup couldnt remove enough to keep under the maximum= 10 due to locked files; currently at = 12I 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