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

[bug]: During adapter update routine (upload) very high RAM consumption #2538

Closed
1 task done
Feuer-sturm opened this issue Nov 17, 2023 · 17 comments · Fixed by #2589
Closed
1 task done

[bug]: During adapter update routine (upload) very high RAM consumption #2538

Feuer-sturm opened this issue Nov 17, 2023 · 17 comments · Fixed by #2589
Labels

Comments

@Feuer-sturm
Copy link

Feuer-sturm commented Nov 17, 2023

No existing issues.

  • There is no existing issue for my problem.

Description

During some adapter update routine (upload phase) a very high RAM consumption is detected on the system which causes that the system crashes because it was out of memory.
On my system I saw this issue during the update of the following adapters fullcalender, web, vis2, echart

On my system it is necessary to spend >= 8 GByte of RAM to minimize the problem during adapter update.
From my point of view it is not a normal behavior that an adapter update routine uses this much RAM.

Discussion in forum: https://forum.iobroker.net/topic/68462/erledigt-echarts-installiationsprobleme/8
Reference to issues where this problem was detected as well: ioBroker/ioBroker.vis#801, ioBroker/ioBroker.fullcalendar#73

Reproduction instruction

System status befor adapter update
grafik

Update echart Adapter to version 1.7.1
grafik

update log of echart adapter

$ iobroker upgrade [email protected] --debug
Update echarts from @1.7.1 to @1.7.1
Installing [email protected]... (System call)
179 packages are looking for funding run `npm fund` for details
upload [17] echarts /opt/iobroker/node_modules/iobroker.echarts/www/asset-manifest.json asset-manifest.json application/json
upload [16] echarts /opt/iobroker/node_modules/iobroker.echarts/www/favicon.ico favicon.ico image/vnd.microsoft.icon
upload [15] echarts /opt/iobroker/node_modules/iobroker.echarts/www/index.html index.html text/html
upload [14] echarts /opt/iobroker/node_modules/iobroker.echarts/www/manifest.json manifest.json application/json
upload [13] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/asset-manifest.json preview/asset-manifest.json application/json
upload [12] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/favicon.ico preview/favicon.ico image/vnd.microsoft.icon
upload [11] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/index.html preview/index.html text/html
upload [10] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/manifest.json preview/manifest.json application/json
upload [9] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/static/css/main.e631bfb5.css preview/static/css/main.e631bfb5.css text/css
upload [8] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/static/css/main.e631bfb5.css.map preview/static/css/main.e631bfb5.css.map application/json
upload [7] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/static/js/main.782bf02b.js preview/static/js/main.782bf02b.js application/javascript
upload [6] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/static/js/main.782bf02b.js.LICENSE.txt preview/static/js/main.782bf02b.js.LICENSE.txt text/plain
upload [5] echarts /opt/iobroker/node_modules/iobroker.echarts/www/preview/static/js/main.782bf02b.js.map preview/static/js/main.782bf02b.js.map application/json
upload [4] echarts /opt/iobroker/node_modules/iobroker.echarts/www/static/css/main.e631bfb5.css static/css/main.e631bfb5.css text/css
upload [3] echarts /opt/iobroker/node_modules/iobroker.echarts/www/static/css/main.e631bfb5.css.map static/css/main.e631bfb5.css.map application/json
upload [2] echarts /opt/iobroker/node_modules/iobroker.echarts/www/static/js/main.6841ce54.js static/js/main.6841ce54.js application/javascript
upload [1] echarts /opt/iobroker/node_modules/iobroker.echarts/www/static/js/main.6841ce54.js.LICENSE.txt static/js/main.6841ce54.js.LICENSE.txt text/plain
upload [0] echarts /opt/iobroker/node_modules/iobroker.echarts/www/static/js/main.6841ce54.js.map static/js/main.6841ce54.js.map application/json
upload [28] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/asset-manifest.json asset-manifest.json application/json
upload [20] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/chart/static/js/main.6841ce54.js.LICENSE.txt chart/static/js/main.6841ce54.js.LICENSE.txt text/plain
upload [19] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/chart/static/js/main.6841ce54.js.map chart/static/js/main.6841ce54.js.map application/json
upload [18] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/echarts.png echarts.png image/png
upload [17] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/favicon.ico favicon.ico image/vnd.microsoft.icon
upload [16] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/manifest.json manifest.json application/json
upload [15] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/asset-manifest.json preview/asset-manifest.json application/json
upload [14] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/favicon.ico preview/favicon.ico image/vnd.microsoft.icon
upload [13] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/index.html preview/index.html text/html
upload [12] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/manifest.json preview/manifest.json application/json
upload [11] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/static/css/main.e631bfb5.css preview/static/css/main.e631bfb5.css text/css
upload [10] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/static/css/main.e631bfb5.css.map preview/static/css/main.e631bfb5.css.map application/json
upload [9] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/static/js/main.782bf02b.js preview/static/js/main.782bf02b.js application/javascript
upload [8] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/static/js/main.782bf02b.js.LICENSE.txt preview/static/js/main.782bf02b.js.LICENSE.txt text/plain
upload [7] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/preview/static/js/main.782bf02b.js.map preview/static/js/main.782bf02b.js.map application/json
upload [6] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/static/css/main.610065eb.css static/css/main.610065eb.css text/css
upload [5] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/static/css/main.610065eb.css.map static/css/main.610065eb.css.map application/json
upload [4] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/static/js/main.ca161470.js static/js/main.ca161470.js application/javascript
upload [3] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/static/js/main.ca161470.js.LICENSE.txt static/js/main.ca161470.js.LICENSE.txt text/plain
upload [2] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/static/js/main.ca161470.js.map static/js/main.ca161470.js.map application/json
upload [1] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/tab.html tab.html text/html
upload [0] echarts.admin /opt/iobroker/node_modules/iobroker.echarts/admin/vendor/socket.io.js vendor/socket.io.js application/javascript
Process exited with code 0

iob diag

Skript v.2023-10-10

*** BASE SYSTEM ***
 Static hostname: ioBrokerTestsystem
       Icon name: computer-container
         Chassis: container
  Virtualization: lxc
Operating System: Ubuntu 22.04.3 LTS
          Kernel: Linux 6.2.16-14-pve
    Architecture: x86-64

model name      : Intel(R) Celeron(R) CPU  N3150  @ 1.60GHz
Docker          : false
Virtualization  : lxc
Kernel          : x86_64
Userland        : amd64

Systemuptime and Load:
 23:37:36 up 1 day, 20:20,  2 users,  load average: 7.29, 4.40, 2.82
CPU threads: 4


*** Time and Time Zones ***
               Local time: Fri 2023-11-17 23:37:36 CET
           Universal time: Fri 2023-11-17 22:37:36 UTC
                 RTC time: n/a
                Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: yes
              NTP service: inactive
          RTC in local TZ: no

*** User and Groups ***
proxmox
/home/proxmox
proxmox sudo iobroker

*** X-Server-Setup ***
X-Server:       false
Desktop:
Terminal:       tty
Boot Target:    graphical.target

*** MEMORY ***
               total        used        free      shared  buff/cache   available
Mem:            6.0G        2.1G        2.9G        0.0K        959M        3.9G
Swap:           1.5G        0.0K        1.5G
Total:          7.5G        2.1G        4.5G

         6000 M total memory
         2097 M used memory
          640 M active memory
         2219 M inactive memory
         2943 M free memory
            0 M buffer memory
          959 M swap cache
         1512 M total swap
            0 M used swap
         1511 M free swap

*** FAILED SERVICES ***

  UNIT                   LOAD   ACTIVE SUB    DESCRIPTION
* run-rpc_pipefs.mount   loaded failed failed RPC Pipe File System
* sys-kernel-debug.mount loaded failed failed Kernel Debug File System

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
2 loaded units listed.

*** FILESYSTEM ***
Filesystem                          Type   Size  Used Avail Use% Mounted on
/dev/mapper/data2-vm--3108--disk--1 ext4    20G   16G  3.5G  82% /
none                                tmpfs  492K  4.0K  488K   1% /dev
tmpfs                               tmpfs  7.7G     0  7.7G   0% /dev/shm
tmpfs                               tmpfs  3.1G  164K  3.1G   1% /run
tmpfs                               tmpfs  5.0M     0  5.0M   0% /run/lock
tmpfs                               tmpfs  1.0M     0  1.0M   0% /run/credentials/systemd-sysusers.service
tmpfs                               tmpfs  1.6G     0  1.6G   0% /run/user/1001

Messages concerning ext4 filesystem in dmesg:
dmesg: read kernel buffer failed: Operation not permitted

Show mounted filesystems \(real ones only\):
TARGET SOURCE                              FSTYPE OPTIONS
/      /dev/mapper/data2-vm--3108--disk--1 ext4   rw,relatime,stripe=16

Files in neuralgic directories:

/var:
1.5G    /var/
614M    /var/log
585M    /var/log/journal/db91a8d9813048b3b0d9627361bf92a2
585M    /var/log/journal
483M    /var/lib

Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
Archived and active journals take up 48.0M in the file system.

/opt/iobroker/backups:
107M    /opt/iobroker/backups/

/opt/iobroker/iobroker-data:
1.1G    /opt/iobroker/iobroker-data/
858M    /opt/iobroker/iobroker-data/files
178M    /opt/iobroker/iobroker-data/files/vis-2
166M    /opt/iobroker/iobroker-data/backup-objects
162M    /opt/iobroker/iobroker-data/files/vis

The five largest files in iobroker-data are:
35M     /opt/iobroker/iobroker-data/files/devices.admin/static/js/main.24f2bb56.js.map
35M     /opt/iobroker/iobroker-data/files/device-manager.admin/build/tab.js.map
26M     /opt/iobroker/iobroker-data/objects.jsonl
24M     /opt/iobroker/iobroker-data/files/echarts/static/js/main.6841ce54.js.map
24M     /opt/iobroker/iobroker-data/files/echarts.admin/chart/static/js/main.6841ce54.js.map

USB-Devices by-id:
USB-Sticks -  Avoid direct links to /dev/* in your adapter setups, please always prefer the links 'by-id':

find: '/dev/serial/by-id/': No such file or directory

*** NodeJS-Installation ***

/usr/bin/nodejs         v18.18.2
/usr/bin/node           v18.18.2
/usr/bin/npm            9.8.1
/usr/bin/npx            9.8.1
/usr/bin/corepack       0.19.0


nodejs:
  Installed: 18.18.2-1nodesource1
  Candidate: 18.18.2-1nodesource1
  Version table:
 *** 18.18.2-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
        100 /var/lib/dpkg/status
     18.18.1-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.18.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.17.1-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.17.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.16.1-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.16.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.15.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.14.2-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.14.1-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.14.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.13.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.12.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.11.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.10.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.9.1-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.9.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.8.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.7.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.6.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.5.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.4.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.3.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.2.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.1.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     18.0.0-1nodesource1 1001
        500 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages
     12.22.9~dfsg-1ubuntu3.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
     12.22.9~dfsg-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

Temp directories causing npm8 problem: 0
No problems detected

Errors in npm tree:

*** ioBroker-Installation ***

ioBroker Status
iobroker is running on this host.


Objects type: jsonl
States  type: jsonl

Core adapters versions
js-controller:  5.0.16
admin:          6.12.4
javascript:     7.1.6

Adapters from github:   4

Adapter State
+ system.adapter.admin.0                  : admin                 : ioBrokerTestsystem                       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
+ system.adapter.backitup.0               : backitup              : ioBrokerTestsystem                       -  enabled
  system.adapter.benchmark.0              : benchmark             : ioBrokerTestsystem                       - disabled
  system.adapter.daswetter.0              : daswetter             : ioBrokerTestsystem                       -  enabled
+ system.adapter.device-manager.0         : device-manager        : ioBrokerTestsystem                       -  enabled
  system.adapter.device-watcher.0         : device-watcher        : ioBrokerTestsystem                       - disabled
  system.adapter.devices.0                : devices               : ioBrokerTestsystem                       - disabled
+ system.adapter.discovery.0              : discovery             : ioBrokerNew                              -  enabled
+ system.adapter.discovery.1              : discovery             : ioBrokerTestsystem                       -  enabled
  system.adapter.dwd.0                    : dwd                   : ioBrokerTestsystem                       -  enabled
+ system.adapter.echarts.0                : echarts               : ioBrokerTestsystem                       -  enabled
+ system.adapter.fritzbox.0               : fritzbox              : ioBrokerTestsystem                       -  enabled
+ system.adapter.fully-tablet-control.0   : fully-tablet-control  : ioBrokerTestsystem                       -  enabled
  system.adapter.history.1                : history               : ioBrokerNew                              - disabled
+ system.adapter.hm-rega.0                : hm-rega               : ioBrokerTestsystem                       -  enabled
+ system.adapter.hm-rpc.0                 : hm-rpc                : ioBrokerTestsystem                       -  enabled, port: 0
  system.adapter.hue.0                    : hue                   : ioBrokerTestsystem                       - disabled, port: 443
  system.adapter.ical.0                   : ical                  : ioBrokerTestsystem                       - disabled
  system.adapter.ical.1                   : ical                  : ioBrokerTestsystem                       - disabled
  system.adapter.ical.2                   : ical                  : ioBrokerTestsystem                       - disabled
  system.adapter.ical.3                   : ical                  : ioBrokerTestsystem                       - disabled
  system.adapter.ical.4                   : ical                  : ioBrokerTestsystem                       - disabled
  system.adapter.ical.5                   : ical                  : ioBrokerTestsystem                       - disabled
  system.adapter.icons-material-png.0     : icons-material-png    : ioBrokerTestsystem                       - disabled
  system.adapter.icons-mfd-svg.0          : icons-mfd-svg         : ioBrokerTestsystem                       - disabled
  system.adapter.icons-ultimate-png.0     : icons-ultimate-png    : ioBrokerTestsystem                       - disabled
+ system.adapter.influxdb.0               : influxdb              : ioBrokerTestsystem                       -  enabled, port: 8086
+ system.adapter.info.0                   : info                  : ioBrokerTestsystem                       -  enabled
+ system.adapter.javascript.0             : javascript            : ioBrokerTestsystem                       -  enabled
  system.adapter.mqtt.0                   : mqtt                  : ioBrokerTestsystem                       - disabled, port: 1883, bind: 0.0.0.0
+ system.adapter.net-tools.0              : net-tools             : ioBrokerTestsystem                       -  enabled
+ system.adapter.nina.0                   : nina                  : ioBrokerTestsystem                       -  enabled
  system.adapter.openweathermap.0         : openweathermap        : ioBrokerTestsystem                       -  enabled
+ system.adapter.proxmox.0                : proxmox               : ioBrokerTestsystem                       -  enabled, port: 8006
  system.adapter.rainbird.0               : rainbird              : ioBrokerTestsystem                       - disabled
  system.adapter.samsung-community.0      : samsung-community     : ioBrokerTestsystem                       - disabled
  system.adapter.sayit.0                  : sayit                 : ioBrokerTestsystem                       - disabled, port: 0
+ system.adapter.scenes.0                 : scenes                : ioBrokerTestsystem                       -  enabled
  system.adapter.scheduler.0              : scheduler             : ioBrokerTestsystem                       - disabled
  system.adapter.simple-api.0             : simple-api            : ioBrokerTestsystem                       - disabled, port: 8087, bind: 0.0.0.0, run as: admin
  system.adapter.socketio.0               : socketio              : ioBrokerTestsystem                       - disabled, port: 8084, bind: 192.168.178.77, run as: admin
  system.adapter.spotify-premium.0        : spotify-premium       : ioBrokerTestsystem                       - disabled
  system.adapter.sql.0                    : sql                   : ioBrokerNew                              - disabled, port: 3306
+ system.adapter.tankerkoenig.0           : tankerkoenig          : ioBrokerTestsystem                       -  enabled
  system.adapter.telegram.0               : telegram              : ioBrokerTestsystem                       - disabled, port: 8443, bind: 0.0.0.0
+ system.adapter.tr-064.0                 : tr-064                : ioBrokerTestsystem                       -  enabled
+ system.adapter.trashschedule.0          : trashschedule         : ioBrokerTestsystem                       -  enabled
+ system.adapter.unifi.0                  : unifi                 : ioBrokerTestsystem                       -  enabled
+ system.adapter.valloxmv.0               : valloxmv              : ioBrokerTestsystem                       -  enabled, port: 80
  system.adapter.vis-2-widgets-energy.0   : vis-2-widgets-energy  : ioBrokerTestsystem                       - disabled
  system.adapter.vis-2-widgets-gauges.0   : vis-2-widgets-gauges  : ioBrokerTestsystem                       - disabled
  system.adapter.vis-2-widgets-jaeger-design.0: vis-2-widgets-jaeger-design: ioBrokerTestsystem                       - disabled
  system.adapter.vis-2-widgets-material.0 : vis-2-widgets-material: ioBrokerTestsystem                       - disabled
+ system.adapter.vis-2.0                  : vis-2                 : ioBrokerTestsystem                       -  enabled
  system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : ioBrokerTestsystem                       - disabled
  system.adapter.vis-google-fonts.0       : vis-google-fonts      : ioBrokerTestsystem                       -  enabled
  system.adapter.vis-history.0            : vis-history           : ioBrokerTestsystem                       - disabled
+ system.adapter.vis-inventwo.0           : vis-inventwo          : ioBrokerTestsystem                       -  enabled
  system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : ioBrokerTestsystem                       - disabled
  system.adapter.vis-justgage.0           : vis-justgage          : ioBrokerTestsystem                       - disabled
  system.adapter.vis-map.0                : vis-map               : ioBrokerTestsystem                       - disabled
  system.adapter.vis-materialdesign.0     : vis-materialdesign    : ioBrokerTestsystem                       - disabled
  system.adapter.vis-timeandweather.0     : vis-timeandweather    : ioBrokerTestsystem                       - disabled
  system.adapter.vis.0                    : vis                   : ioBrokerTestsystem                       - disabled
+ system.adapter.web.0                    : web                   : ioBrokerTestsystem                       -  enabled, port: 8082, bind: 192.168.178.77, run as: admin
  system.adapter.worx.0                   : worx                  : ioBrokerTestsystem                       - disabled

+ instance is alive

Enabled adapters with bindings
+ system.adapter.admin.0                  : admin                 : ioBrokerTestsystem                       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
+ system.adapter.hm-rpc.0                 : hm-rpc                : ioBrokerTestsystem                       -  enabled, port: 0
+ system.adapter.influxdb.0               : influxdb              : ioBrokerTestsystem                       -  enabled, port: 8086
+ system.adapter.proxmox.0                : proxmox               : ioBrokerTestsystem                       -  enabled, port: 8006
+ system.adapter.valloxmv.0               : valloxmv              : ioBrokerTestsystem                       -  enabled, port: 80
+ system.adapter.web.0                    : web                   : ioBrokerTestsystem                       -  enabled, port: 8082, bind: 192.168.178.77, run as: admin

ioBroker-Repositories
stable        : http://download.iobroker.net/sources-dist.json
beta          : http://download.iobroker.net/sources-dist-latest.json

Active repo(s): beta

Installed ioBroker-Instances
Used repository: beta
Adapter    "admin"        : 6.12.4   , installed 6.12.4
Adapter    "backitup"     : 2.9.3    , installed 2.9.3
Adapter    "benchmark"    : 1.1.4    , installed 1.1.4
Adapter    "daswetter"    : 3.1.10   , installed 3.1.10
Adapter    "device-watcher": 2.9.6   , installed 2.9.6
Adapter    "devices"      : 1.1.5    , installed 1.1.5
Adapter    "discovery"    : 4.2.0    , installed 4.2.0
Adapter    "dwd"          : 2.8.5    , installed 2.8.5
Adapter    "echarts"      : 1.7.1    , installed 1.7.1
Adapter    "fritzbox"     : 0.5.0    , installed 0.5.0
Adapter    "hm-rega"      : 4.0.0    , installed 4.0.0
Adapter    "hm-rpc"       : 1.15.19  , installed 1.15.19
Adapter    "hue"          : 3.10.1   , installed 3.10.1
Adapter    "ical"         : 1.13.3   , installed 1.13.3
Adapter    "icons-material-png": 0.1.0, installed 0.1.0
Adapter    "icons-mfd-svg": 1.1.0    , installed 1.1.0
Adapter    "icons-ultimate-png": 1.0.1, installed 1.0.1
Adapter    "influxdb"     : 3.2.0    , installed 3.2.0
Adapter    "info"         : 2.0.0    , installed 2.0.0
Adapter    "javascript"   : 7.1.6    , installed 7.1.6
Controller "js-controller": 5.0.16   , installed 5.0.16
Adapter    "mqtt"         : 5.1.0    , installed 5.1.0
Adapter    "net-tools"    : 0.2.0    , installed 1.0.0-alpha
Adapter    "nina"         : 0.0.26   , installed 0.0.26
Adapter    "openweathermap": 0.4.5   , installed 0.4.5
Adapter    "proxmox"      : 2.2.2    , installed 2.2.2
Adapter    "rainbird"     : 0.2.2    , installed 0.2.3
Adapter    "sayit"        : 3.0.5    , installed 3.0.5
Adapter    "scenes"       : 2.3.9    , installed 2.3.9
Adapter    "scheduler"    : 1.1.9    , installed 1.1.9
Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
Adapter    "socketio"     : 6.6.0    , installed 6.6.0
Adapter    "spotify-premium": 1.3.1  , installed 1.3.1
Adapter    "tankerkoenig" : 3.3.7    , installed 3.3.7
Adapter    "telegram"     : 3.0.0    , installed 3.0.0
Adapter    "tr-064"       : 4.2.18   , installed 4.2.18
Adapter    "trashschedule": 2.3.0    , installed 2.3.0
Adapter    "unifi"        : 0.6.6    , installed 0.6.6
Adapter    "valloxmv"     : 1.2.0    , installed 1.2.0
Adapter    "vis"          : 1.5.1    , installed 1.4.16 [Updatable]
Adapter    "vis-2"        : 2.6.1    , installed 2.6.1
Adapter    "vis-2-widgets-energy": 0.3.9, installed 0.3.9
Adapter    "vis-2-widgets-gauges": 0.2.2, installed 0.2.2
Adapter    "vis-2-widgets-jaeger-design": 1.0.11, installed 1.0.11
Adapter    "vis-2-widgets-material": 1.3.11, installed 1.3.11
Adapter    "vis-fancyswitch": 1.1.0  , installed 1.1.0
Adapter    "vis-google-fonts": 1.0.4 , installed 1.0.4
Adapter    "vis-history"  : 1.0.0    , installed 1.0.0
Adapter    "vis-inventwo" : 3.3.3    , installed 3.3.3
Adapter    "vis-jqui-mfd" : 1.0.12   , installed 1.0.12
Adapter    "vis-justgage" : 2.0.0    , installed 2.0.0
Adapter    "vis-map"      : 1.0.4    , installed 1.0.4
Adapter    "vis-materialdesign": 0.5.9, installed 0.5.9
Adapter    "vis-timeandweather": 1.2.2, installed 1.2.2
Adapter    "web"          : 6.1.10   , installed 6.1.10
Adapter    "worx"         : 2.3.4    , installed 2.3.4
Adapter    "ws"           : 2.5.8    , installed 2.5.8

Objects and States
Please stand by - This may take a while
Objects:        13370
States:         11907

*** OS-Repositories and Updates ***
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
Reading package lists...
Pending Updates: 4

*** Listening Ports ***
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      102        380060621  95/systemd-resolved
tcp        0      0 192.168.178.77:8082     0.0.0.0:*               LISTEN      1000       391869847  15221/io.web.0
tcp        2      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          380061969  300/master
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          380058619  124/sshd: /usr/sbin
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          380059292  1/init
tcp        0      0 0.0.0.0:9000            0.0.0.0:*               LISTEN      1000       391858950  14773/iobroker.js-c
tcp        0      0 0.0.0.0:9001            0.0.0.0:*               LISTEN      1000       391858906  14773/iobroker.js-c
tcp        0      0 192.168.178.77:2010     0.0.0.0:*               LISTEN      1000       391863354  14901/io.hm-rpc.0
tcp6       0      0 ::1:25                  :::*                    LISTEN      0          380061970  300/master
tcp6       0      0 :::8081                 :::*                    LISTEN      1000       391859878  14791/io.admin.0
tcp6       0      0 :::22                   :::*                    LISTEN      0          380062726  124/sshd: /usr/sbin
tcp6       0      0 :::111                  :::*                    LISTEN      0          380059294  1/init
tcp6       0      0 :::3000                 :::*                    LISTEN      108        380062237  106/grafana-server
udp        0      0 127.0.0.53:53           0.0.0.0:*                           102        380060620  95/systemd-resolved
udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          380059293  1/init
udp6       0      0 :::111                  :::*                                0          380059295  1/init

*** Log File - Last 25 Lines ***


@sjfm-design
Copy link

bei mir lässt sich der adapter mit 6GB (proxmox VM) nichtmal installieren. erst nach erhöhen auf 10GB läuft die installation durch.

@foxriver76
Copy link
Collaborator

Is the host part of a multihost system?

I am currently unable to reproduce, but only tried with a redis db until now. @sjfm-design you also use jsonl?

@Horgul123
Copy link

@foxriver76 : I had the issue with a single host system (see liked issue)

@Feuer-sturm
Copy link
Author

@foxriver76 I have this issue on my master-slave system and on my single-host system. Both are using jsonl.

@foxriver76
Copy link
Collaborator

Please retest with 5.0.17

@Feuer-sturm
Copy link
Author

@foxriver76
js-controller 5.0.17 (master slave system)
installed e-chart adapter on master
proxmox@ioBrokerTestsystem:~$ nodejs -v && npm -v
v18.19.0
10.2.3

From my point of view no difference with jsc 5.0.17. RAM was fully consumed and SWAP was used.

grafik

@raschy
Copy link

raschy commented Dec 12, 2023

I have also noticed this 'memory hunger' when installing another adapter. Current system nodejs 18.18.2, Admin 6.12.8, JS-Controller 5.0.17 on proxmox lxc. For installation I have to increase to at least 6GB, for runtime about 2GB is enough

@Seqway
Copy link

Seqway commented Jan 18, 2024

@foxriver76
Can you give me / us an update of this issue ?

Its very frustrating when updating (other) adapters and the RAM usage causes a lot of trouble ! My system uses normally 3,5Gb Ram but needs up to 12GB Ram when e.g. updating other adapters especially in my case when zigbee or infludb is updated. It happens by the way also when new datapoints needed to written in the database influx.

@foxriver76
Copy link
Collaborator

Currently we have no idea why this happens and it seems to only affect a few installations. We had a few looks into the code and we found nothing, so we would need a installation where we can reproduce this issue.

@Seqway
Copy link

Seqway commented Jan 18, 2024

Whatever you mean with "a few" installations :-)
Sounds strange for me but tell me what i can do and i will provide the neccessary information ! Please have in mind that this is my productive system.
It was said in the forum that obviously several commands were set while updating which seems to be not correct

@foxriver76
Copy link
Collaborator

Is it also Proxmox for you? This is maybe the only thing which is common between the cases where it occurs.

Sounds strange for me but tell me what i can do and i will provide the neccessary information !

If someone with this issue could provide a backup (preferably without sensible information) + details on which adapter update it occurs on his installation, we could try to reproduce it. If I am able to reproduce it than I am most likely able to identify the issue, without this is close to impossible.

It was said in the forum that obviously several commands were set while updating which seems to be not correct

I don't really understand, could you clarify maybe by an example

@Seqway
Copy link

Seqway commented Jan 18, 2024

Is it also Proxmox for you? This is maybe the only thing which is common between the cases where it occurs.

Yes it is (VM). Soon or later i will switch to a LXC Container

If someone with this issue could provide a backup (preferably without sensible information) + details on which adapter update it occurs on his installation, we could try to reproduce it. If I am able to reproduce it than I am most likely able to identify the issue, without this is close to impossible.

How can i delete sensitive information out of a backup ? Its just a file for me ?

I don't really understand, could you clarify maybe by an example

See here the link to the forum and the discussion - it is still oopen if it is a problem to admin adapter or influx HERE

@foxriver76
Copy link
Collaborator

See here the link to the forum and the discussion - it is still oopen if it is a problem to admin adapter or influx HERE

But this is about displaying history data in admin

The issue here is about adapter updates.. I don't really get the correlation currently

How can i delete sensitive information out of a backup ? Its just a file for me ?

Yes, the backup.json inside the zip will have objects and states db, probably it is not straightforward to edit it directly, so maybe a better approach would be clone the VM, in the clone get rid of all sensitive credentials, ensure, that the bug is still reproduceable and then create a backup.

But is it happening at updates for you or when accessing history data? When accessing history data and the influx is running on the same host, it could also come from influx, which is not really related to this topic here.

Also recently we had a problem but it was with CPU usage and it was due to the device-watcher adapter just in case it is installed and running at your installation, this would maybe be worth a look.

@Seqway
Copy link

Seqway commented Jan 18, 2024

But this is about displaying history data in admin

The issue here is about adapter updates.. I don't really get the correlation currently

Sorry was the wrong LINK - here the new one

Yes, the backup.json inside the zip will have objects and states db, probably it is not straightforward to edit it directly, so maybe a better approach would be clone the VM, in the clone get rid of all sensitive credentials, ensure, that the bug is still reproduceable and then create a backup.

Thats really not OOTB. i will check when i have more time for this.

Also recently we had a problem but it was with CPU usage and it was due to the device-watcher adapter just in case it is installed and running at your installation, this would maybe be worth a look.

device watcher is installed but not running. That should not be the issue i think

@foxriver76
Copy link
Collaborator

has to be likely somwhere in here

@Apollon77 could reproduce it with ioBroker.iot and ioBroker.devices

foxriver76 added a commit that referenced this issue Jan 25, 2024
foxriver76 added a commit that referenced this issue Jan 25, 2024
foxriver76 added a commit that referenced this issue Jan 25, 2024
foxriver76 added a commit that referenced this issue Jan 28, 2024
foxriver76 added a commit that referenced this issue Jan 29, 2024
* optimize the upload procedure (#2589)

- closes #2538

* fixed problem that cb is never called on mh enable/disable (#2557)

* fixed problem that cb is never called on mh enable/disable

* fix type

* added enhanced adapter license info to schema and types (#2591)

* added license info

* fix update license script

* format

* deprecate common.license and introduce common.licenseInformation

* rm local schema from controller iopack

* bring back license for adapter tests

* WIP placeholder added

* prevent issue when values with stateNs.null exist in the database (#2580)

* prevent issue when values with stateNs.null exist in the database

- closes #2579

* rm log

* rm anoither log

* allow path aliases in adapter package

* rm types from validator again

* move tsc-alias to postbuild

* use lerna to build project again as npm workspaces does not use the correct build script when building dependency packages

- and using normal workspace flag works but is ineffective and can lead to errors due to still open npm/rfcs#548

* update jsonl

* ts back to v4, accidentaly chosen by resolving merge conflict

* build local

* clean install to try to solve install module not found

* another pack-lock update

* fix linter
@Feuer-sturm
Copy link
Author

@foxriver76 I just updated my system to js-controller 5.0.19 and installed and updated the adapters which I had problems in the past. With the new js-controller I have currently no RAM issue :-)
Thank you

@Feuer-sturm
Copy link
Author

@foxriver76
@Apollon77 asked me to test the behavior of js-controller 5.0.19 after executing iob upload all
In this case the RAM consumption increased from 2,4 GByte to 5,1 Gbyte (the container has maximum 5,8 GByte RAM). The upload was at the end successfull and the container did not crash but the RAM consumption increased in this case again.

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

Successfully merging a pull request may close this issue.

6 participants