Hallo zusammen,
Ich habe ein Problem mit dem RAM-Verbrauch, das mir ungewöhnlich erscheint. Der Gladys-Container verwendet allein 4 GB RAM.
Wie ich befürchtet habe, ist ffmpeg die Ursache des Problems. Ich habe zwar eine Aktualisierungsrate von 10 Sekunden für meine beiden Kameras (die eigentlich nur eine sind, aber in HLS und RTSP) eingestellt.
Ich frage mich, ob das nicht mit einem Verbindungsfehler zur Kamera zusammenhängt, bei dem ffmpeg-Prozesse « Zombie » werden.
Die Gladys-Logs zeigen hauptsächlich Warnungen zu MQTT-Nachrichten an, und manchmal gibt es ein Problem mit dem Zugriff auf meine Kamera:
guim31
7. Juni 2023 um 18:03
3
Kleiner Ausreißer: @lmilcent was ist denn dieses Tool, das im ersten Screenshot verwendet wird?
@lmilcent Okay, danke für das Feedback, es sind tatsächlich Zombie-Prozesse von ffmpeg, die im Hintergrund bleiben, wenn das Polling blockiert ist.
Ich hatte vor, die Vorgehensweise bei dieser Integration beim Bild-Polling zu ändern, ich habe ein GitHub-Issue erstellt:
ouvert 01:52AM - 08 Jun 23 UTC
fermé 08:08AM - 30 Jun 23 UTC
https://community.gladysassistant.com/t/4go-de-ram-utilise-par-gladys/8204
In der Zwischenzeit starte Gladys von Zeit zu Zeit neu, um den RAM zu befreien.
ctop zum Verwalten von Containern (erste Aufnahme) und btop, eine deutlich bessere Alternative zu htop
Perfekt, danke für die Information!
Ich hatte den Container tatsächlich neu gestartet.
@lmilcent Ich habe heute an dem Thema gearbeitet, ich habe einen Fix in einem PR:
master ← add-timeout-fluent-ffmpeg
ouvert 05:33PM - 26 Jun 23 UTC
### Pull Request check-list
To ensure your Pull Request can be accepted as fa… st as possible, make sure to review and check all of these items:
- [x] If your changes affects code, did your write the tests?
- [x] Are tests passing? (`npm test` on both front/server)
- [x] Is the linter passing? (`npm run eslint` on both front/server)
- [x] Did you run prettier? (`npm run prettier` on both front/server)
- [x] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [x] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to [the community](https://community.gladysassistant.com/) for testing before merging.
### Description of change
Fix #1808
Ich halte dich auf dem Laufenden, wenn es in der Produktion verfügbar ist.
@lmilcent Der Fix ist live in Gladys Assistant v4.25.1!
Salut à tous !
Un petit post pour vous présenter Gladys Assistant v4.25.1, sorti vendredi dernier et qui devrait déjà être déployé sur vos instances
Améliorations Tasmota autour du suivi de consommation
Il y avait plusieurs problèmes d’unités avec l’intégration Tasmota sur les fonctionnalités de suivi de consommation, et c’est maintenant corrigé dans Gladys :
[image]
Merci @Terdious pour la PR, et @GBoulvin pour les tests
Correction d’un bug lié aux caméras (ffmpeg)
Ch…