EXTRA_JAVA_OPTS -Xmx settings ie Grafana crashes openhab 2.4

@rlkoshak
I´ll answer your questions/points regarding Grafana from the New Docs Discussion thead, in here, as it´s more suitable.

Lets me start from the beginning:
I had openhab 2.3 running with Grafana 5.1.4 on an Rpi 3B. This setup has been running for several months without problems. (Actually since June 2018). This version of Grafana does not use the PhantomJS.
I could render at least 4 Grafana charts from a sitemap just fine. It took some seconds to show, but it worked, and openhab 2.3 has never crashed on this setup.
You´re correct in assuming, I did manually installed Grafana without the use of openhabian-config. (Important note, read later why).

I then updated openhab 2.3 to 2.4 release, still using the same Grafana 5.1.4. And then I discovered this problem with Grafana. I could no longer render more than 1 (sometimes 2) charts, otherweise openhab crashed, serious crashed, nothing in the log.

I then updated Grafana to the latest release, 5.4.2. This version requires the PhantomJS, which I ofcouse had to download and install as well.
The result is exactly the same. Openhab crashes when trying to rendering more than 1 (sometimes 2) charts…

After that, I started to ask around about Grafana problems. Markus @mstormi was kind enough to answering, Yet his answer may seem correct, (the Rpi is not good for Grafana charting), I kinda refused to acknowledged this answer, and I started a new test. This time on my second Rpi, which is a Rpi 3B+ (more CPU power but same RAM).
This Rpi 3B+ got a clean openhab 2.4 hassle-free install, on an SSD connected to the USB port, (just as my first Rpi have). It has only 3 bindings running. The latest IHC binding, the System binding and the WMbus binding (which doesn´t work, but thats another issue).

I created a few items from the IHC binding, installed Influxdb and Grafana from (IMPORTANT answer to important note) openhabian-config. I´d setup the persisting file, which is basicly a copy from my main system, created 6 charts in Grafana, made an sitemap and started adding charts to this sitemap.

I managed to add 5 charts and it worked fine. Adding the 6. chart, it will crash openhab 2.4, exactly like it does on my main Rpi. After trying to more I discovered openhab would crash with 5 charts as well. But I have not managed to get openhab to crash with 4 charts, yet, on this clean install test system.

Conclusion:
This tells me, something is seriously wrong with openhab 2.4 or Grafana (no matter what version), or a combination of both. It has nothing to do with my main system beeing pushed to its limits, since this new test system which is very far for beeing pushed to its limits will crash as well.

And notice, the test system was a clean installation, Influxdb and Grafana was setup from the use of openhabian-config.

I sure would like to find the reason for this. I have to admit, I refuse to accept the Rpi beeing to short on resources, unless it´s something in the openhab 2.4 which has changed to be using alot of resources openhab 2.3 didnt do.
But this problem is way beyound my knowlegde of openhab, Grafana, Java or Linux… I have no idea what to do or where to look or even search. Markus has been kind enough to suggest a few tings. Thats basicly where I am this minute.

Hopefully you better understand my concern with Rpi recommendation and Grafana from the openhabian-config.