From 2153b20e260eaac690c5149fa38240a6d8d851b5 Mon Sep 17 00:00:00 2001 From: Patrick Fink Date: Tue, 18 May 2021 22:16:51 +0200 Subject: [PATCH] Add hint how to increase heap size when debugging (#1576) Signed-off-by: Patrick Fink --- developers/ide/eclipse.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/developers/ide/eclipse.md b/developers/ide/eclipse.md index f87a0342a..2d5bfb60c 100644 --- a/developers/ide/eclipse.md +++ b/developers/ide/eclipse.md @@ -146,6 +146,14 @@ The following files are of interest for the execution environment: 1. Start openHAB from the IDE by clicking "Run OSGi" (upper right of the `app.bndrun` window). + ::: tip + Depending on the amount of code you want to debug, especially when you're debugging not only add-ons, but also openHAB Core and UI's, + start-up procces may gets very slow and/or you get a `java.lang.OutOfMemoryError: Java heap space` exception. + In case this happens, you could increase the maximum heap space by adding e.g. `-Xmx8G` (for a maximum of 8 gigabyte) to + `Runtime Properties > JVM arguments` (bottem left of the `app.bndrun` window). + Afterwards, you have to save `app.bndrun` file again. + ::: + 1. You can check that openHAB is running with your browser by going to: `http://localhost:8080/` (the last `/` is important!) 1. You can check log output in the `Console` tab at the bottom.