Couchdb leaving deleted file descriptor turds?


#1

hi. i’m running couchdb 1.0.1, chef-server 0.10.8-1 on ubuntu 11.04.
upon seeing my file system get a bit full, i sniffed around lsof, and
see a bunch of couchdb open file descriptors in a deleted state. to
bring my file system usage down, i bounce couchdb.

is this known? a bug? a misconfig on my part?

root@chef:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 7.5G 1.9G 81% /

root@chef:~# lsof | grep deleted
couchdb 11249 couchdb 2u CHR 136,11 0t0 14 /dev/pts/11 (deleted)
couchdb 11256 couchdb 11u CHR 136,11 0t0 14 /dev/pts/11 (deleted)
beam.smp 11257 couchdb 13u REG 202,1 43831394 288649 /var/lib/couchdb/1.0.1/.delete/6465595cac049ad9c04da01e14fa8d52
deleted)
beam.smp 11257 couchdb 14u REG 202,1 47362146 289828 /var/lib/couchdb/1.0.1/.delete/9df04fbb0baf4c1d49c6dcdd4e8039c1
deleted)
beam.smp 11257 couchdb 16u REG 202,1 44003426 289857 /var/lib/couchdb/1.0.1/.delete/510caf00ad6ee38e06f7d58eb609d8e7
deleted)
beam.smp 11257 couchdb 17u REG 202,1 48873570 289830 /var/lib/couchdb/1.0.1/.delete/3fc13e1b05fb2e30a630582fc7266f7f
deleted)
[snip many]

after restarting couchdb (and chef-server), lsof is clean and got disk
space back

root@chef:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 2.7G 6.7G 29% /

thanks!
kallen


#2

I suffer this issue as well, I’ve just resigned myself to bouncing couchdb nightly via cron.

Sent from a phone

On Mar 30, 2012, at 1:52 PM, kallen@groknaut.net wrote:

hi. i’m running couchdb 1.0.1, chef-server 0.10.8-1 on ubuntu 11.04.
upon seeing my file system get a bit full, i sniffed around lsof, and
see a bunch of couchdb open file descriptors in a deleted state. to
bring my file system usage down, i bounce couchdb.

is this known? a bug? a misconfig on my part?

root@chef:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 7.5G 1.9G 81% /

root@chef:~# lsof | grep deleted
couchdb 11249 couchdb 2u CHR 136,11 0t0 14 /dev/pts/11 (deleted)
couchdb 11256 couchdb 11u CHR 136,11 0t0 14 /dev/pts/11 (deleted)
beam.smp 11257 couchdb 13u REG 202,1 43831394 288649 /var/lib/couchdb/1.0.1/.delete/6465595cac049ad9c04da01e14fa8d52
deleted)
beam.smp 11257 couchdb 14u REG 202,1 47362146 289828 /var/lib/couchdb/1.0.1/.delete/9df04fbb0baf4c1d49c6dcdd4e8039c1
deleted)
beam.smp 11257 couchdb 16u REG 202,1 44003426 289857 /var/lib/couchdb/1.0.1/.delete/510caf00ad6ee38e06f7d58eb609d8e7
deleted)
beam.smp 11257 couchdb 17u REG 202,1 48873570 289830 /var/lib/couchdb/1.0.1/.delete/3fc13e1b05fb2e30a630582fc7266f7f
deleted)
[snip many]

after restarting couchdb (and chef-server), lsof is clean and got disk
space back

root@chef:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 2.7G 6.7G 29% /

thanks!
kallen