Openhab dies after a few hours

  • Platform information:
    • Hardware: VM
    • OS: OpenSuSe Leap 15.1
    • Java Runtime Environment:openjdk version “1.8.0_212”
    • openHAB version: 2.4 Stable
  • Issue of the topic: Openhab dies after a few hours

My OpenHAB setup is running in an Vm with OpenSuSe Leap 15.0 pretty well for a long time. Lately I upgraded on Leap 15.1 ( succesfull don on serveral physical machines) Openhab dies after a few hours.
On the console following error message appears:

/opt/openhab2/runtime/bin/karaf: Zeile 164:  6226 Getötet                ${KARAF_EXEC} "${JAVA}" ${JAVA_OPTS} -Djava.endorsed.dirs="${JAVA_ENDORSED_DIRS}" -Djava.ext.dirs="${JAVA_EXT_DIRS}" -Dkaraf.instances="${KARAF_DATA}/tmp/instances" -Dkaraf.home="${KARAF_HOME}" -Dkaraf.base="${KARAF_BASE}" -Dkaraf.data="${KARAF_DATA}" -Dkaraf.etc="${KARAF_ETC}" -Dkaraf.logs="${OPENHAB_LOGDIR}" -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir="${KARAF_DATA}/tmp" -Djava.util.logging.config.file="${KARAF_BASE}/etc/java.util.logging.properties" ${KARAF_SYSTEM_OPTS} ${KARAF_OPTS} ${OPTS} -classpath "${CLASSPATH}" ${MAIN} "$@"

Can anyone tell me what the reason could be?

No not without you giving substantially more input. openHAB log debug output, install method, info on what exactly you changed etc etc. You mustn’t expect us to know that (especially since your setup is no standard one like openHABian image on RPi is).
A thing worth trying is to add -Xmx option to java. Usually set in EXTRA_JAVA_OPTS in /etc/defaults/openhab2, search the forum for details.