near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.32k stars 622 forks source link

Initial near run use too many open files #1942

Closed ailisp closed 4 years ago

ailisp commented 4 years ago

it uses more than 1024, linux system default, recently and we have to raise ulimit. It shouldn't this many

mfornet commented 4 years ago

I can't run several tests at the same time in clion because of this problem. I should run them separately.

ailisp commented 4 years ago

before i fix it, you can update system ulimit in /etc/security/limits.conf. I cannot even run single test :)

On Fri, Jan 10, 2020 at 7:34 PM Marcelo Fornet notifications@github.com wrote:

I can't run several tests at the same time in clion because of this problem. I should run them separately.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/nearprotocol/nearcore/issues/1942?email_source=notifications&email_token=ADFFFCFPNA4TPINU5CQPV7DQ5E45PA5CNFSM4KFPPZE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIVYDAY#issuecomment-573276547, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFFFCC7EJXNZSJQ3GFDFQDQ5E45PANCNFSM4KFPPZEQ .

ailisp commented 4 years ago

It has 1802 open files, of them 1647 are something like:

near    6237   bo 1783r      REG                0,4         0  217208 /proc/6237/task/6796/stat

by print lsof on each step i found ClientActor::new opens ~1700 files. will further break down investigate tomorrow

ailisp commented 4 years ago

caused by a "bug" in sysinfo crate: https://github.com/GuillaumeGomez/sysinfo/issues/242