You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Martins Balodis (JIRA)" <ji...@apache.org> on 2015/03/31 22:56:54 UTC

[jira] [Commented] (COUCHDB-1652) CouchDB does not release disk space from .deleted files

    [ https://issues.apache.org/jira/browse/COUCHDB-1652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14389397#comment-14389397 ] 

Martins Balodis commented on COUCHDB-1652:
------------------------------------------

I am also having the same issue with couchdb 1.5.0-0ubuntu1 (ubuntu 14.04). The CouchDB process is not releasing deleted files. I have configured compaction like this:
[compaction_daemon]
check_interval = 600
min_file_size = 131072
[compactions]
_default = [{db_fragmentation, "70%"}, {view_fragmentation, "60%"}, {from, "00:01"}, {to, "23:59"}]

"lsof | grep "/var" | grep deleted" returns something like this (all of the files look like uuid):

beam       2197          couchdb   10u      REG              253,1  12353800     262606 /var/lib/couchdb/.delete/73e327a88bae8d099ae6ec3e4760a3aa (deleted)
beam       2197          couchdb   13u      REG              253,1  22823198     262662 /var/lib/couchdb/.delete/8e12d686809f4fa13046de351bd83fb8 (deleted)
beam       2197          couchdb   15u      REG              253,1   7485649     262657 /var/lib/couchdb/.delete/7ae650ed196bceb36902ab93d4db949c (deleted)



> CouchDB does not release disk space from .deleted files
> -------------------------------------------------------
>
>                 Key: COUCHDB-1652
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1652
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.2
>         Environment: Ubuntu 8.04, 10.04, 12.04 , CouchDB 1.2.0, CouchDB 1.2.1, Erlang 14b4 64bit platform
>            Reporter: Simon Eisenmann
>            Assignee: Randall Leeds
>
> I noticed on long running servers a disk space increase over time. Though the database in itself did not grow. After investigation i found that there are lots of files still open which have already been deleted.
> I see this on all installations on Ubuntu 8.04, 10.04 and 12.04 all 64bit with CouchDB 1.2.0 and 1.2.1 with Erlang 14b4.
> lsof |grep deleted
> beam.smp   4845  couchdb   24u      REG              254,1   5890159     171082
> /var/lib/couchdb/.delete/582878aeee568e3c06dc3262fdac494b (deleted)
> beam.smp   4845  couchdb   25u      REG              254,1   5890159     171080
> /var/lib/couchdb/.delete/95b92c25e3d7ea2f2045a2ee37afd8fe (deleted)
> beam.smp   4845  couchdb   26u      REG              254,1   5890183     171081
> /var/lib/couchdb/.delete/bb616c2baae507b7ec890451650e40c9 (deleted)
> beam.smp   4845  couchdb   27u      REG              254,1   5890159     244324
> /var/lib/couchdb/.delete/f7a4ba016d098c34f1ff97ca61a824f8 (deleted)
> beam.smp   4845  couchdb   28u      REG              254,1   5890159     171196
> CouchDB should release the file pointer on those files, to release the disk space to tools like df.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)