Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

Re: netcdf file cache



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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690