appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: Out of Memory error when trying to upload files larger than 6MB

Open LagunaElectric opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

When a user tried to upload a 7MB file to their API they got an Out of Memory error.

For them to get files larger than 6MB to work, they had to greatly increase the heap size for Java. They were running into out of memory errors around 7MB when we confirmed that -xmx was set to 512MB. Bumping that up to 2GB only allowed us to import 25-35MB files.

Steps To Reproduce

  1. Create a new API query to a datasource that expects a file as multipart form data.
  2. Drag a Filepicker widget onto the canvas.
  3. Use the Filepicker to select a file larger than 6MB.
  4. Try to upload the selected file using the query.
  5. Observe the Out of Memory error.

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Self Hosted 1.9.61

LagunaElectric avatar Feb 15 '24 03:02 LagunaElectric