Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
IDE: node is leaking file descriptors? #550
btw: I also noticed when Ive been working on something for a while (or perhaps its just when IDE is running for a long time?) , I start getting the following messages in the console of the IDE
Failed to get journal fd: Too many open files
but doesn't seem to be journald, seems to be node, as its got 387 file descriptors?
EDIT: yeah restarting ide, and after a few minutes (to let it fully get started) , its back down to ~20...
I seem to get it when I’ve been editing for a while ( = a few hours) , when I’m actively developing - so lots of edit/compile/run cycles - I don’t think I’m likely switching projects much ( unless checking out how a demo uses the Bela api perhaps) Some of my projects do have multiple files (~8), so I switch between them - but can’t say if it’s more likely with those or not. I’ve realized recently it’s a bit easier for me to use Vi and compile on the board - so I’ll see if this means I don’t get it. Not had it so much recently with Salt , but that’s probably because I’ve been quite often power cycling the rack for various reasons. I’ll try to keep an eye on it, and see if I can find a patterns - as I recognizing just saying it’s in long edit periods is possibly not that helpful. Perhaps what I could do is run a background process that logging node usage - that way we could see if it’s a gradual leak ( my current assumption) or if some events triggers it ( eg network issues?)…
On Sat, 17 Aug 2019 at 15:04, giuliomoro ***@***.***> wrote: I cannot reproduce this. @TheTechnobear <https://github.com/TheTechnobear> could you describe a bit more of what you were doing? E.g.: opening several projects, editing several files ... ?? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#550?email_source=notifications&email_token=AA6VLUHKQY5R3PL5RQDYIILQE7ZOLA5CNFSM4HHQ2U7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QKYOY#issuecomment-522234939>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA6VLUHWWFWYI6EARISKU4LQE7ZOLANCNFSM4HHQ2U7A> .
I got this, just seconds after starting the IDE (note this was after several hours of IDE development, although this should be pretty much irrelevant, because the
However, when I ran this I got ("only") 260 open files:
I think I found out what the issues is. In
gives lines such as :
so it seems that