java.lang.OutOfMemoryError: Java heap space

Hello everyone,

I have been running my openhab server for about 3 weeks now and recently it doesn’t seems to work anymore. I’m not able to connect to my server neither through smartphone nor through https://my.openhab.org/. In my server console I can see that some rules seems to work and I sometimes receive external data. Also I get the Java heap space error. I tried removing all of the add-ons with no results. But here are they:
org.openhab.action.mqtt-1.8.1
org.openhab.binding.http-1.8.1
org.openhab.binding.mqtt-1.8.1
org.openhab.binding.ntp-1.8.1
org.openhab.binding.souliss-1.8.1
org.openhab.binding.tcp-1.8.1
org.openhab.io.myopenhab-1.7.0
org.openhab.io.myopenhab-1.8.0
org.openhab.persistence.db4o-1.8.1
org.openhab.persistence.logging-1.8.1

Some of these might not be needed but I don’t think it’s the problem.

Hope you can help :slight_smile:

  1. Make sure you are running with the latest Oracle Java. OpenJDK has some known problems running OH
  2. Upgrade to OH 1.8.2
  3. Make sure you don’t have any other duplicate bindings (in your list of removed bindings you have two versions of the my.openhab binding
  4. Install via apt-get if on Debian Linux

A restart of OH should have cleared the OutOfMemoryError, at least for awhile.

Thanks for replying, Rich,

since my.openHAB servers were moved to letsencrypt.org certificates I had some issues with my setup last week and I installed new JAVA (1.8U101) along with needed certificates. I have also recently installed 1.8.3 OH thinking that it could solve this issue. It still didn’t help. I get this error in one minute time and I don’t think the server starts correctly since it now has fewer lines during start-up in the command prompt than it used to.