Identifying problematic item (out of Memory / Java heap)

Here’s a great tutorial for RPI users that includes java memory management.
https://community.openhab.org/t/solutions-for-lazy-execution-of-rules/52956?u=h102