Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IOBroker auf RasPi 4 wird immer lahmer

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IOBroker auf RasPi 4 wird immer lahmer

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 @bernd33-1 last edited by apollon77

      @bernd33-1 Leg doch mal ein Simple API issue mit einem Debug log mit aktueller GitHub/Beta Version von simple-api an.

      EDIT:
      Ich hab reingeschaut ... Naja simple-api arbeitet da sehr ... sagen wir mal ... suboptimal ... und generiert bei sich und in der Objects-DB (und damit dem js.controller) unnötig viel Last ... Debug Log brauch ich keins. Nur issue anlegen bitte. Kann ich mir ansehen

      1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 last edited by

        @bernd33-1 Sag mal ... wie genau sieht denn der setBulk Call aus? Nutzt du da die Object IDs oder Namen ?

        1 Reply Last reply Reply Quote 0
        • B
          bernd33-1 last edited by

          Ich nutz die Namen. Das ist der Teil, in dem der ESP8266 die Daten an dein IOB überträgt:

            String htmlcontent;
            htmlcontent = String ("http://192.168.0.177:8087/setBulk?Ampere=") + cur + String ("&Energy=") + ener + String ("&Frequenz=") + freq + String ("&Volt=") + volt + String ("&Watt=") + powe + String ("&CollectorTemp=") + temp;
            HTTPClient http;  
            http.begin(htmlcontent);
            http.addHeader("Content-Type", "text/plain");  
            int httpCode = http.GET();   //Send the request
            String payload = http.getString();
            http.end();  //Close connection
          
          apollon77 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @bernd33-1 last edited by

            @bernd33-1 Jupp, wie vermutet ... Du nutzt "Namen" und die werden jeeeeeeedes mal aufgelöst ... Fixe es

            B 1 Reply Last reply Reply Quote 0
            • B
              bernd33-1 @apollon77 last edited by

              @apollon77

              Du meinst im MC Code soll statt :

              ....String("&Energy=").... 
              

              sowas :

              .... String (&"javascript.0.Photovoltaik.Energy=")...
              

              stehen? So sieht die Objekteigenschaft aus:

              {
                "_id": "javascript.0.Photovoltaik.Ampere",
                "type": "state",
                "common": {
                  "name": "Ampere",
                  "role": "",
                  "type": "mixed",
                  "desc": "Manuell erzeugt",
                  "unit": "A",
                  "min": 0,
                  "max": 3500,
                  "def": 0,
                  "read": true,
                  "write": true,
                  "custom": {
                    "history.0": {
                      "enabled": true,
                      "changesOnly": true,
                      "debounce": "1000",
                      "maxLength": "960",
                      "retention": "31536000",
                      "changesRelogInterval": 0,
                      "changesMinDelta": 0,
                      "aliasId": ""
                    }
                  }
                },
                "native": {},
                "from": "system.adapter.admin.0",
                "ts": 1568399468812,
                "acl": {
                  "object": 1636,
                  "owner": "system.user.admin",
                  "ownerGroup": "system.group.administrator",
                  "state": 1636
                },
                "user": "system.user.admin"
              }
              
              apollon77 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @bernd33-1 last edited by

                @bernd33-1 Also ja, wenn du anstelle "Energy" das "javascript.0.Photovoltaik.Energy"nutzen würdest dann hättest du diese performance issues nicht. Aber lass jetzt mal so, sonst kann ja keiner meinen Fix testen 🙂

                B 1 Reply Last reply Reply Quote 0
                • B
                  bernd33-1 @apollon77 last edited by

                  @apollon77 said in IOBroker auf RasPi 4 wird immer lahmer:

                  @bernd33-1 Also ja, wenn du anstelle "Energy" das "javascript.0.Photovoltaik.Energy"nutzen würdest dann hättest du diese performance issues nicht. Aber lass jetzt mal so, sonst kann ja keiner meinen Fix testen 🙂

                  Alles gut 🙂 Ich hab eine Powerwall, die per Simple-API liefert und eine PV, die per Simple-API liefert. Wir können testen 👍

                  Du meldest Dich, wenn ich testen soll?

                  apollon77 1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 @bernd33-1 last edited by

                    @bernd33-1 Wir spät heute abend bzw morgen, bin noch über was anderes gestolpert ... Jetzt erstmal Sport :-))

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bernd33-1 @apollon77 last edited by

                      @apollon77 said in IOBroker auf RasPi 4 wird immer lahmer:

                      @bernd33-1 Wir spät heute abend bzw morgen, bin noch über was anderes gestolpert ... Jetzt erstmal Sport :-))

                      Kein Stress. Soweit läuft ja alles 🙂 Have fun 🙂

                      1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 last edited by

                        Ok, Simple-API GitHub version bitte testen!

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          bernd33-1 @apollon77 last edited by

                          @apollon77 said in IOBroker auf RasPi 4 wird immer lahmer:

                          Ok, Simple-API GitHub version bitte testen!

                          Ähm....wie mach ich das?

                          1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 last edited by

                            Ich habs schon released, also:

                            Admin - Expertenmodus - GitHub icon - tab "Install von npm" ... dort simple-api wählen ... dann installiert er es

                            oder, falls Du Beta Repo nimmst, dann sollte es schon als Update angeboten werden

                            1 Reply Last reply Reply Quote 0
                            • B
                              bernd33-1 last edited by

                              Ok, ich muss aber erst noch ein Backup machen 🙂 . Dann leg ich los.

                              1 Reply Last reply Reply Quote 0
                              • B
                                bernd33-1 last edited by bernd33-1

                                ok, jetzt ist die Simple-API 2.6.4 installiert und in den ersten 10 Minuten schaut es gut aus 🙂 Die Performance ist gefühlt raketengleich 🙂

                                f48d2165-7695-42f7-9f0b-71ae5c90bdd5-image.png

                                cf596fd4-909e-41ab-99a4-03648a99a9e3-image.png

                                apollon77 1 Reply Last reply Reply Quote 1
                                • apollon77
                                  apollon77 @bernd33-1 last edited by

                                  @bernd33-1 Hochinteressant das das seit zig Jahren keinem vorher mal aufgefallen ist 🙂 Aber ja ... passiert auch nur wenn man mit Namen und nicht mit State-IDs arbeitet. Aber gut das es jetzt gelöst ist

                                  O 1 Reply Last reply Reply Quote 2
                                  • B
                                    bernd33-1 last edited by

                                    Läuft jetzt seit gut 3 Sunden und es gibt nichts auffälliges. Ich denke das "Problem" ist behoben.

                                    Vielen lieben Dank für den super Support und die rasche Problemlösung 👍 😊 👏

                                    1 Reply Last reply Reply Quote 1
                                    • O
                                      oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by oFbEQnpoLKKl6mbY5e13

                                      @apollon77

                                      Ich hatte am Montagvormittag diverse Adapter aktualisiert. Die Größe der Objects-DB (Redis) hat sich von Montagmorgen auf Dienstagmorgen um ca. 8MB verringert. Ist das auf die simple-api zurückzuführen?


                                      Backup

                                      apollon77 1 Reply Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 @oFbEQnpoLKKl6mbY5e13 last edited by

                                        @ofbeqnpolkkl6mby5e13 Ne, denke liegt eher daran das einige Adapter jetzt nicht mehr "alte Konfig JavaScript Files" zusätzlich speichern sondern beim update aufgeräumt wird

                                        O 1 Reply Last reply Reply Quote 0
                                        • O
                                          oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by

                                          @apollon77

                                          Okay, danke. Ich finde, dass 8MB bei ~80MB schon erheblich sind...

                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • apollon77
                                            apollon77 @oFbEQnpoLKKl6mbY5e13 last edited by

                                            @ofbeqnpolkkl6mby5e13 Ich finde 80MB Objects-Redis db sehr klein ... eigentlich zu klein ...

                                            O 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            933
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            63
                                            3234
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo