See here as this may help you monitor the heap size that openhab uses.
OH3.1 out of memory error - Setup, Configuration and Use / Runtime - openHAB Community
See here as this may help you monitor the heap size that openhab uses.
OH3.1 out of memory error - Setup, Configuration and Use / Runtime - openHAB Community