tnemrap
(Michael Parment)
May 9, 2018, 8:01am
1
Can i increase Max Heap Size that JAVA uses on my Raspberry Pi 3 B+ that i use just for OpenHAB.
Now when i add additional Bindings i get java.lang.OutOfMemoryError: Java heap space
/Mike
rlkoshak
(Rich Koshak)
May 9, 2018, 12:28pm
2
The short answer is yes, there is a -X option you can pass to the JVM. However, I don’t know if that option exists for Zulu.
However, I’m more concerned there is something wrong. There are people running massive systems and not running it of heap.
How many bindings and Iten’s do you have? How much memory is there OHb process using? Does the memory used grow over time?
tnemrap
(Michael Parment)
May 9, 2018, 9:45pm
3
It is the ipcamera binding that cause this for me.
/Mike
zacofunny
(Bogumil J.)
August 28, 2018, 5:32pm
4
Hi @tnemrap have you found solution for the issue? I also started to get out of memory errors for Java heap space with installed ipcamera binding. I guess @matt1 is required to solve the issue. Perhaps there is some bug causing memory leak.
matt1
(Skinah)
August 29, 2018, 12:36am
5
I have done a reply here
See this post here on how I fixed this in my setup…
This binding uses the image item in a more aggressive way than other bindings, as well as the amount of RAM that is used and requires garbage clean up is also very high. Possibly there are settings for garbage collection that could be tweaked, have not looked into this yet as I do not see the error since the post above. Recently I have been setting up a new Odroid C2 server because it has more RAM than a PI2 so I have been rebooting daily wh…
In addition I will need help narrowing down how to reproduce this and also what the cause is.
Is it a bug in my binding?
Is it a conflict with another binding?
Is it only happening with certain java version or type? Does Oracle java fix it?
Is the binding using the ITEM framework too often in a way that causes a bug in the framework to appear?
Is there something on the system that stops the garbage cleanup/collectors from running?
Is it only a particular brand/model of camera causing it?
Things like this need to be looked at until the cause is found, only after the cause is found can a fix be looked at.