Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many open files #552

Open
crystalin opened this issue Sep 23, 2023 · 1 comment
Open

Too many open files #552

crystalin opened this issue Sep 23, 2023 · 1 comment
Assignees

Comments

@crystalin
Copy link

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

@vstakhov
Copy link
Contributor

It seems your limit of open files (-n = 2048) is not enough to read that database. I'm not quite sure what is the underlying reason for that large amount of files (I'd check pruning of RocksDB in that case).

@AndreiEres AndreiEres moved this from Inbox to In Progress in Polkadot Introspection Feb 29, 2024
@AndreiEres AndreiEres self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

3 participants