I have this peculiar problem with running a Processing application in IntelliJ IDEA. I want to save a large image and to do this I run in to the following exception:
IntelliJ shows you the amount used and the current size of the heap. You are trying to set the maximum which it does not show.
You can attach VisualVM to IntellIJ to see the maximum by running jvisualvm
jvisualvm