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

Earl runs out of threads is a tty does not connect #23

Open
hzeller opened this issue Feb 28, 2017 · 0 comments
Open

Earl runs out of threads is a tty does not connect #23

hzeller opened this issue Feb 28, 2017 · 0 comments

Comments

@hzeller
Copy link
Collaborator

hzeller commented Feb 28, 2017

We had the case that the elevator gate was disconnected for a couple of days after which earl started to act up (it didn't run the external doorbell wav-player anymore). Also the downstairs gate was randomly disconnecting and reconnecting (initially thought to be a cabling problem, but in retrospect could've had the same reason - it didn't happen after a manual fix).

Turns out that it ran out of threads (earl was using > 1500 idling threads at that point). I suspect that the connect attempt/disconnect of the unused serial interface was causing the issues (I didn't check if we also ran out of file-descriptors which would be a strong lead). I remember there was some thing that I wanted to check with the serial terminal implementation we are using (because I had seen issues like that during development), but never did.

So might worthwhile investigating.

Manual fix for now: don't list the non-used tty in the /etc/init.d/earl until we re-connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant