OH3 freezes after several hours

First, thank you very much for the good work to build OH3. My OH3.0.1-2 is running in a Buster Proxmox VM with 2 cpu and 2GB memory. Java ist last zulu11. My problem is, some hours after activating the following thing freezes OH. Using the main UI rises the cpu to 100%. Only systemctl restart openhab helps.

UID: http:url:a98cd708a8
label: Volkszaehler
thingTypeUID: http:url
configuration:
  authMode: BASIC
  ignoreSSLErrors: false
  baseURL: http://192.168.1.99/middleware.php/data.json?from=-1Minute&uuid[]=12345678-5920-11e9-881d-031ca74e42e6&uuid[]=12345678-5920-11e9-ad65-85fad433e8c1&uuid[]=12345678-58a4-11e9-ac23-d33643e95667
  refresh: 60
  commandMethod: GET
  timeout: 3000
  bufferSize: 2048
channels:
  - id: vzgripout
    channelTypeUID: http:number
    label: Netzbezug
    description: ""
    configuration:
      stateTransformation: JSONPATH:$.data[?(@.uuid=='12345678-5920-11e9-881d-031ca74e42e6')].average
  - id: vzgripin
    channelTypeUID: http:number
    label: Netzeinspeisung
    description: null
    configuration:
      stateTransformation: JSONPATH:$.data[?(@.uuid=='12345678-5920-11e9-ad65-85fad433e8c1')].average
  - id: vzsolar
    channelTypeUID: http:number
    label: Erzeugung
    description: null
    configuration:
      stateTransformation: JSONPATH:$.data[?(@.uuid=='12345678-58a4-11e9-ac23-d33643e95667')].average

This is the moment in syslog:

2021-01-31 22:11:47.767 [WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.1.99/middleware.php/data.json?from=-1Minute&uuid[]=12345678-5920-11e9-881d-031ca74e42e6&uuid[]=12345678-5920-11e9-ad65-85fad433e8c1&uuid[]=12345678-58a4-11e9-ac23-d33643e95667' (method='GET', content='null') failed: Total timeout 3000 ms elapsed
2021-01-31 22:30:05.518 [ERROR] [org.apache.felix.fileinstall        ] - In main loop, we have serious trouble
java.lang.OutOfMemoryError: Java heap space
2021-01-31 22:30:43.524 [ERROR] [fornium.elements.util.SerialExecutor] - unexpected error occurred:
java.lang.OutOfMemoryError: Java heap space

What shall I do to repair the mistake.
bye,
Ralf

Correction, OH freezes always after some hours.

I have a simular issue. after some days (2-3) openhab is not reachable anymore. CPU load is 100% and java is using it. I use the latest OH3 after an migration of OH 2.5 on a raspi 4

I checked the openhab log openhab.log (70.7 KB) but I didnt saw anything “bad”. The only thing what I can verify via event log is that the cpu temp is increasing after some time events.log (3.4 KB) .

Workaround for me would be to restart OH every night, but that is not really a solution :)…

If any more infos/logs are needed please let me know. Be aware that I’m quite a noob regarding linux, but I’m eager to learn. So it could take a bit longer until I have those informations

Similar problems here. I don’t have Java heap space on my log, but openhab freeze anyway after some time =(

after 12 / 24 h free RAM drops down to 56% to 20% gradually 'till blocking

My configuration:

runtimeInfo:
  version: 3.0.1
  buildString: Release Build
locale: it_IT
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.9
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.43+88-CA
  osName: Linux
  osVersion: 4.9.35-v7+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 40478264
  totalMemory: 153206784

My last 24h logs shows some cloud errors but nothing about the system itself or some hint about the strange behaviour!!!

021-02-03 10:18:17.334 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:18:32.488 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:18:34.808 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:18:35.616 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:18:37.834 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:18:39.821 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:18:53.121 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:19:00.118 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 10:20:00.147 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 11:18:01.290 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 11:19:01.305 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-03 18:00:06.066 [ERROR] [.openhab.core.model.script.Speedtest] - --> speedtest failed. Output:
[2021-02-03 18:00:06.045] [error] Configuration - Cannot retrieve configuration document (503)
[2021-02-03 18:00:06.047] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
{"type":"log","timestamp":"2021-02-03T17:00:06Z","message":"Configuration - Could not retrieve or read configuration (ConfigurationError)","level":"error"}



2021-02-03 20:51:48.129 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8145374 failed: null
2021-02-03 20:51:48.136 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:52:07.815 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8145558 failed: null
2021-02-03 20:52:07.821 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:52:10.026 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8145925 failed: null
2021-02-03 20:52:10.031 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:52:18.707 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8146039 failed: null
2021-02-03 20:52:18.712 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:52:50.338 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8146644 failed: null
2021-02-03 20:52:50.360 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:52:52.252 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8146704 failed: null
2021-02-03 20:52:52.255 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:52:54.287 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8146584 failed: null
2021-02-03 20:52:54.289 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:53:22.814 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8146934 failed: null
2021-02-03 20:53:22.822 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:53:37.813 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8147373 failed: null
2021-02-03 20:53:37.821 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:54:30.575 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8148185 failed: null
2021-02-03 20:54:30.584 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:56:57.086 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8150553 failed: null
2021-02-03 20:56:57.093 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:57:07.606 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8150636 failed: null
2021-02-03 20:57:07.613 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 20:57:33.650 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8150876 failed: null
2021-02-03 20:57:33.657 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 21:20:40.034 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8174669 failed: null
2021-02-03 21:20:40.037 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-03 22:00:07.855 [ERROR] [.openhab.core.model.script.Speedtest] - --> speedtest failed. Output:
[2021-02-03 22:00:07.772] [error] Configuration - Cannot retrieve configuration document (503)
[2021-02-03 22:00:07.773] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
{"type":"log","timestamp":"2021-02-03T21:00:07Z","message":"Configuration - Could not retrieve or read configuration (ConfigurationError)","level":"error"}



2021-02-03 23:00:07.081 [ERROR] [.openhab.core.model.script.Speedtest] - --> speedtest failed. Output:
[2021-02-03 23:00:07.011] [error] Configuration - Cannot retrieve configuration document (503)
[2021-02-03 23:00:07.012] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
{"type":"log","timestamp":"2021-02-03T22:00:07Z","message":"Configuration - Could not retrieve or read configuration (ConfigurationError)","level":"error"}



2021-02-04 07:03:14.353 [ERROR] [io.openhabcloud.internal.CloudClient] - Error connecting to the openHAB Cloud instance
2021-02-04 07:03:14.370 [INFO ] [io.openhabcloud.internal.CloudClient] - Disconnected from the openHAB Cloud service (UUID = 17f53be5-ef28-4a3d-a047-82486b7c6baa, base URL = http://localhost:8080)
2021-02-04 07:03:16.632 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 17f53be5-ef28-4a3d-a047-82486b7c6baa, base URL = http://localhost:8080)
2021-02-04 07:03:23.697 [INFO ] [control.internal.WebSocketConnection] - Web Socket close 1006. Reason: Disconnected
2021-02-04 08:11:07.909 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-04 08:11:43.333 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8562233 failed: null
2021-02-04 08:11:43.339 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-04 08:12:07.919 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-04 08:12:43.345 [WARN ] [io.openhabcloud.internal.CloudClient] - Jetty request 8562844 failed: null
2021-02-04 08:12:43.361 [WARN ] [io.openhabcloud.internal.CloudClient] - Response Failure: null
2021-02-04 09:10:09.052 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD
2021-02-04 09:11:09.054 [WARN ] [io.openhabcloud.internal.CloudClient] - Unsupported request method HEAD