Heap Space Error for Big Attachment File

81 views
Skip to first unread message

Niraj Joshi

unread,
Nov 15, 2021, 2:18:11 AM11/15/21
to iDempiere
Hello,
I am facing the java heap space error while uploading a big size attachment (> 500MB).
I tried changing the storage provider from database to file system (as mentioned in https://groups.google.com/g/idempiere/c/C68XtsGstmY/m/qN_hCqPxAwAJ) but the error still persists.
 also I tried changing my docker myEnvironment.sh file to:  IDEMPIERE_JAVA_OPTIONS="-Xms64M -Xmx2048M -DIDEMPIERE_HOME=$IDEMPIERE_HOME"
and idempiereEnv.properties file as well.
Do I need to change any values in my docker?
is there any limitation where it restricts the big file from being uploaded?
is there any way to check how much file size can be uploaded?
The "ZK_MAX_UPLOAD_SIZE" is set to 512000, I tried changing it to a greater value but it does not solve it.

Carlos Antonio Ruiz Gomez

unread,
Nov 15, 2021, 5:33:16 AM11/15/21
to idem...@googlegroups.com
Hi,

Which version are you running?

Did you migrate the attachments from DB to file system?

Regards,

Carlos Ruiz


El 15/11/21 a las 8:18, Niraj Joshi escribió:
> Hello,
> I am facing the java heap space error while uploading a big size
> attachment (> 500MB).
> I tried changing the storage provider from database to file system (as
> mentioned in
> https://groups.google.com/g/idempiere/c/C68XtsGstmY/m/qN_hCqPxAwAJ
> <https://groups.google.com/g/idempiere/c/C68XtsGstmY/m/qN_hCqPxAwAJ>)
> but the error still persists.
>  also I tried changing my docker myEnvironment.sh file to:
> IDEMPIERE_JAVA_OPTIONS="-Xms64M -Xmx2048M
> -DIDEMPIERE_HOME=$IDEMPIERE_HOME"
> and idempiereEnv.properties file as well.
> Do I need to change any values in my docker?
> is there any limitation where it restricts the big file from being
> uploaded?
> is there any way to check how much file size can be uploaded?
> The "ZK_MAX_UPLOAD_SIZE" is set to 512000, I tried changing it to a
> greater value but it does not solve it.
> --

Niraj Joshi

unread,
Nov 15, 2021, 5:35:11 AM11/15/21
to iDempiere
I am currently using 8.2 version and I did upgraded to file system.

Carlos Antonio Ruiz Gomez

unread,
Nov 15, 2021, 5:50:30 AM11/15/21
to idem...@googlegroups.com
Which 8.2 version?

The performance improvement was added in 2021-07-28




El 15/11/21 a las 11:35, Niraj Joshi escribió:

Niraj Joshi

unread,
Nov 21, 2021, 5:35:27 AM11/21/21
to iDempiere
I just had the latest version of 8.2 but the problem is still there . Then I added some VMOPTS added; the heap space error was solved but the server closes down unexpectedly when a large no of big files are uploaded.
Reply all
Reply to author
Forward
0 new messages