[collectd] Too many open files
Mariusz Gronczewski
xani666 at gmail.com
Wed Aug 19 15:25:56 CEST 2009
2009/8/19 Domagoj Mikac <domagoj.mikac at metronet.hr>:
> Hi,
>
> I have created a <Plugin snmp> section with appropriately 2300 devices.
> Configuration for each device looks as follows (Device name and ip address
> is set for each device differently).
>
> <Host "DEVICE_NAME">
> Address "DEVICE_IP_ADDRESS"
> Version 2
> Community "COMMUNITY_STRING"
> Collect "unicast_traffic64" "nonunicast_packets"
> "discarded_packets" "errored_packets"
> </Host>
>
> 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)
>
> At the same time I get the following error in log file:
>
> [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
First thing, with so many files do u have set CacheTimeout and WritesPerSecond ?
Then try doin ulimit -n 4096 before firing collectd, should help.
Regards
Mariusz
More information about the collectd
mailing list