I have some data-vis sketches running via processing-java on an Ubuntu AWS instance that are throwing Out Of Memory errors, or more often, simply hanging and maxing-out the server CPU when they run.
Here’s an example of the error:
There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 50667520 bytes for committing reserved memory.
Sketches are running headless with XVFB (command line called from a php script), then pulling in some data, rendering and saving several images.
All sketches run as intended on my mac from the same Processing release (3.5.3)
And the simpler ones run reliably on the server. But more complex images seem to kill it.
I’m guessing I need to increase the memory available to processing-java, but I’m unclear on how to do that, or if there’s something else.
Any wisdom much appreciated.