Processing-java on Ubuntu Linux - Out of Memory issue

Some post that are relevant but nothing conclusive:


I am curious, are you running on BeamStalk or directly on a EC2?

From what I understand, the sketch runs fine with simple images. Can you describe what is a complex case? I am referring to:

Here are some other ideas:

  1. You need to confirm the issue is memory by using AWS monitoring. I believe you can use CloudWatch.
  2. Try the image optimization on some of those links I shared above.
  3. You are using processing-java --run. Have you consider exporting your application and calling the exported version?

I am not sure if you can pass memory flags to the jvm using processing-java. If option 3 above does not work, you can use the source code generated during the export application and build + run your application manually via java making sure you setup proper resource’s paths. I think I did this a while ago. If you get it to work locally, then you should be able to run the same command in your instance.

Kf

1 Like