Our server installation has crashed twice so far in the past week due to this:
ERROR 2017-08-01T15:52:21,362 (com.serotonin.m2m2.rt.maint.BackgroundProcessing$RejectableWorkItemRunnable.run:559) - Error in work item java.lang.OutOfMemoryError: Java heap space
Version: core 3.1.1+20170620163725 (Build number: 20170620163725) - Enterprise
We used to run it with 2GB without any problems, but since we have the available memory I've increased it to 4GB from now on.
What's the permanent way to increase java memory size?
Is this the method I should?