Skip to content

Too many open files #552

@crystalin

Description

@crystalin

Trying to use the kvdb on Moonbeam rocksdb fails:

ERROR polkadot_kvdb] FATAL: cannot start kvdb tool: IO error: While open a file for random read: /var/lib/moonbeam-rocksdb-data/chains/moonbeam/db/full/169392.sst: Too many open files

I'm using default ulimit for Ubuntu 22:

>ulimit -a
real-time non-blocking time  (microseconds, -R) unlimited
core file size              (blocks, -c) 0
data seg size               (kbytes, -d) unlimited
scheduling priority                 (-e) 0
file size                   (blocks, -f) unlimited
pending signals                     (-i) 254990
max locked memory           (kbytes, -l) 8174176
max memory size             (kbytes, -m) unlimited
open files                          (-n) 2048
pipe size                (512 bytes, -p) 8
POSIX message queues         (bytes, -q) 819200
real-time priority                  (-r) 0
stack size                  (kbytes, -s) 8192
cpu time                   (seconds, -t) unlimited
max user processes                  (-u) 254990
virtual memory              (kbytes, -v) unlimited
file locks                          (-x) unlimited

There are 20k files in the db/full folder

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions