I run openhab 1.8.2 on a raspberry PI 3. The main problem is that the device is swapping after two days.
Is there a way to make openhab more stable on the raspberry pi, and prevent it from swapping.
The simple answer is use less memory. Determine what is requiring so much memory in your system. I run OH 1.8.2 on an RPi 3 and have no swapping issues with a relatively large config (400+ items, many rules). However, OH memory usage will depend greatly on the addons you are using and your specific config.