There is a Problem with the ENV-Variable Java_extra_opts:
One time its described to set it like this:
EXTRA_JAVA_OPTS: "-Duser.timezone=Europe/Berlin"
the other time like this:
"EXTRA_JAVA_OPTS=-Duser.timezone=Europe/Berlin"
There is also no way described how to figure out if the setting is working, or where to put it in the openhab docker files if you don’t want to put it as variable…
Did someone set extra java_opts to running docker? I need some settings here and didn’t get it to work…
Well, one time it’s showing how to pass that environment variable on a docker run command and the other is how to pass it as part of a docker compose YAML file. Both are correct in their specific contexts.
To tell if it’s working, once the container is up simply issue the command
Of course but I use yet another option, Ansible, to manage my docker containers.
If there is an out of memory issue expanding the heap isn’t going to fix things for you. You need to figure out which addon is causing the problem which likely will require trial and error.
My current suspect is the amzon echo control binding as this is known for this kind of error…the other one is the gardena binding but I don’t know how to properly figure that out yet…
Uninstall one and see if the memory leak goes away. If not uninstall the other one.
No, upgrading will help the Amazon binding. I think the problem has been fixed since at least 2.5.7, maybe earlier. Expanding the heap only adds a just a little bit of more time before it runs out of memory. It doesn’t solve the problem.
The Amazon Control binding problem should be fixed, and when it was broken it would run out of memory within a couple of days at the most. Any binding that is throwing a lot of errors needs to be looked at anyway.
In my case, it seems that I don’t had a memory-leak, I was simply running out of ram… It’s working now since you helped me here together with others What to do on Java out of heap memory - #18 by bf8392. Paperui nevertheless became very slow over time, but since paperui is deprecated in OpenHab 3.0, this is not a problem . As I should mention, I think I run almost a third of the available bindings at once, and keep a lots of rules and conditions as far as over 1000 items and over 100 things…so on a “normal” installation, this running out of memory shouldn’t really occur…
Nevertheless, a slight increase (about 100mb) in standard-setting would be nice if this is happening more often .