[collectd] Too many open files

Florian Forster octo at verplant.org
Thu Aug 20 12:22:37 CEST 2009

Hi Domagoj,

On Wed, Aug 19, 2009 at 01:25:46PM +0200, Domagoj Mikac wrote:
> [2009-08-19 12:15:56] rrdtool plugin: rrd_update_r (/opt/collectd/rrd/test.rrd) failed: opening '/opt/collectd/rrd/test.rrd': Too many open files
> [2009-08-19 12:19:20] rrdtool plugin: rrd_update_r (/opt/collectd/rrd/test.rrd) failed: mmaping file '/opt/collectd/rrd/test2.rrd': Invalid argument

weird. Why could collectd think it updates “test.rrd” while librrd
thinks it's supposed to update “test2.rrd”? And, why aren't there a host
and plugin directory? Did you edit those messages?

> After starting collectd process it creats RRD files for only 1257
> devices (RRDs for more than 1000 devices are not created, even though
> I have enough free space on disk)

Can you please use ‘lsof’ or a similar tool to check *which* files are
opened by collectd? Just because the ‘rrdtool’ plugin complains doesn't
mean the fault really is there. In any case, it opens one RRD file at a
time, so the ‘rrdtool’ plugin should be responsible for one open file
descriptor only.

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090820/4f615ca4/attachment.pgp 

More information about the collectd mailing list