Migration from 32bit OH3 to 64bit OH4 - OpenHAB Java mem config recomendation?

Hi,
I’ve just migrated from a 32bit OH3 instalation to a 64bit OH4 and everything is working fine. My Javascript rules on the old setup (same RPi 4 4GB) took almost 20 seconds to compile each time I changed something on a file but now it´s immediate. So much better…
On my old setup my JVM for OpenHAB (/etc/feault/openhab) was configured with -Xms192m -Xmx768m and for the 64bit setup I kept the same values. I was wondering if I should change/increase? I do not run anything else on this RPi. Any recomandation for the 64bit environment?

1 Like

In that case using available memory is better then leaving it available. Although Linux will always use it for files caching anyways.

More available memory will reduce the number of times Java pauses the JVM to do garbage collection. Especially during startup this might help.

You can increase the memory and see what difference it makes. Probably not a lot. It will also depend on how many add-ons, rules, items you have etc.

I have a 64-bit system and 4 Gigabytes of RAM. I set these values Xms1024m -Xmx2048m.