OutOfMemoryError: Java heap space error

Hello Team,

I am working in an application in which i need to upload number of images. But unfortunately, after uploading 60 around images i find an error
like ‘OutOfMemoryError: Java heap space’ while viewing the images. So to resolve this i am trying to flush the objects which i created for viewing the image but it did not work in cuba platform.

So please help me in proceeding to resolve the issue.



please share a the code you created as well as an example project that has shows the error.
What memory settings do you use for your JVM?