Java heap space.....java.lang.OutOfMemoryError

Hi having a question again… maybe to CM6.5 H102 … regular

Is it possible to restart the openhab system like:
“systemd Auto-restart a crashed service in systemd”
as discripted here: http://kb.ictbanking.net/article.php?id=654&oid=2

and how must/should the " openhab2.service " be modify to do that?

This could be - in my eyes - a work arround until socket error caused by amazon binding is fixed.

Thanks for help
Cheers Stef