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

**URL:** <https://community.openhab.org/t/java-heap-space-java-lang-outofmemoryerror/100585>\
**Category:** Off-Topic\
**Created:** [June 12, 2020, 9:08pm UTC](https://community.openhab.org/t/java-heap-space-java-lang-outofmemoryerror/100585 "2020-06-12T21:08:31Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sjheinz](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@sjheinz](https://community.openhab.org/u/sjheinz)\
**Post date:** [June 14, 2020, 1:41pm UTC](https://community.openhab.org/t/java-heap-space-java-lang-outofmemoryerror/100585/9 "2020-06-14T13:41:25Z")

</div>

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: [systemd Auto-restart a crashed service in systemd -](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

---

_[View the full topic](https://community.openhab.org/t/java-heap-space-java-lang-outofmemoryerror/100585)._
