OH2 from OpenHABian crashing regularly

Here’s some basics:

Release = Ubuntu 16.04.4 LTS

Kernel = Linux 3.10.105-0-pine64-longsleep

Platform = Pine A64+ 2GB Rev C Board

Uptime = 1 day(s). 9:18:44

CPU Usage = 26.25 % avg over 4 cpu(s) (1 core(s) x 4 socket(s))

CPU Load = 1m: 1.23, 5m: 1.15, 15m: 1.14

Memory = Free: 1.03GB (53%), Used: 0.90GB (47%), Total: 1.94GB

Swap = Free: 0.97GB (100%), Used: 0.00GB (0%), Total: 0.97GB

Root = Free: 111.58GB (98%), Used: 1.89GB (2%), Total: 118.29GB

Updates = 0 apt updates available.

Sessions = 2 sessions

Processes = 102 running processes of 32768 maximum processes

Pretty basic OH2 install via OpenHABian on a Pine64 board. Runs for about a day and then I see this in syslog:

Mar 12 19:55:31 pine64 karaf[683]: Exception in thread “JmDNS(JmDNS-IP-1).State.Timer” java.lang.OutOfMemoryError: Java heap space
Mar 12 19:55:48 pine64 karaf[683]: Exception in thread “upnp-async-5612” Exception in thread “upnp-main-1” java.lang.OutOfMemoryError: Java heap space
Mar 12 19:56:13 pine64 karaf[683]: Exception in thread “upnp-async-5614” java.lang.OutOfMemoryError: Java heap space
Mar 12 19:56:22 pine64 karaf[683]: java.lang.OutOfMemoryError: Java heap space
Mar 12 19:56:26 pine64 karaf[683]: Exception in thread “upnp-main-2” java.lang.OutOfMemoryError: Java heap space
Mar 12 19:58:38 pine64 karaf[683]: Exception in thread “upnp-async-5590” java.lang.OutOfMemoryError: Java heap space
Mar 12 19:58:42 pine64 karaf[683]: Exception in thread “upnp-async-5616” java.lang.OutOfMemoryError: Java heap space

This install is configured to control one device via TCP. It gets triggered once or twice a day and otherwise does NOTHING. But it’s dying anyway. What should I be looking at next? Completely new to OH2.

–Donnie

Anyone got any time to help debug this? For some reason my system seems to be running out of memory and OH locks up. So far the only way I actually seem to be able to get it back is with a full reboot. Trying a ‘sudo service openhab2 stop’ just hangs, as does a ‘start.’

Looks like a massive memory problem as Java is running out of memory. But my OH2 config is so simple I can’t imagine it’s my fault. It works fine until it seems like some kind of leak just kills it.

–Donnie