NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [thredds] THREDDS prevents freeing disk space

Hi Nicolas :

Its likely that the file is in the TDS object cache. You can clear the cache 
without having to restart, from the admin/debug page. You have to set up 
"Remote Management" : 

  
http://www.unidata.ucar.edu/projects/THREDDS/tech/tds4.3/reference/RemoteManagement.html

John

On 1/9/2013 5:27 AM, Nicolas Baldeck wrote:
> Dear
> 
> I'm keeping several days archive on my server.
> Every time a new run is issued, I delete an older one.
> 
> When I do "rm" on the older files, it's no longer shows up with "ls".
> However TDS is keeping the file busy, and disk space is not freed.
> 
> I can see this thanks to "lsof"
> 
> $ lsof
> 
>     java       3436    tomcat7   44r      REG                8,1
>     403204480     393349
>     /home/upload/data/france/2013/01/03/06/rasp-france_2013-01-04_16:00:00.nc
>     <http://00.nc/> (deleted)
>     java       3436    tomcat7   45r      REG                8,1
>     403204480     393313
>     /home/upload/data/france/2013/01/02/06/rasp-france_2013-01-03_11:00:00.nc
>     <http://00.nc/> (deleted)
>     java       3436    tomcat7   46r      REG                8,1
>     403204480     393288
>     /home/upload/data/france/2013/01/01/06/rasp-france_2013-01-02_06:00:00.nc
>     <http://00.nc/> (deleted)
>     java       3436    tomcat7   47r      REG                8,1 40
> 
> 
> 
> To free disk space, I need to restart tomcat.
> 
> So, is there a way to notify THREDDS a dataset will be deleted, so it 
> closes the files before deletion ?
> 
> 
> 
> I'm using TDS 4.3, with tomcat 7, openjdk, over ubuntu 12.04 x64.
> Dataset configuration :
> 
>     <datasetScan name="RASP" ID="rasp" path="rasp"
>     location="/home/upload/data/">
>          <metadata inherited="true">
>            <serviceName>all</serviceName>
>            <dataType>Grid</dataType>
>          </metadata>
>          <filter>
>            <include wildcard="*.nc"/>
>          </filter>
>        </datasetScan>
> 
> can be seen there : http://data2.rasp-france.org/thredds/
> 
> 
> Regards
> 
> 
> -- 
> Nicolas BALDECK
> Prévisions Météo libres et gratuites pour le Vol Libre et le Vol à Voile.
> http://rasp-france.org/
> 
> 
> _______________________________________________
> thredds mailing list
> thredds@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit: 
> http://www.unidata.ucar.edu/mailing_lists/
> 



  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: