cancel
Showing results for 
Search instead for 
Did you mean: 

Out of Memory Exception

Former Member
0 Kudos

Hi,

I am creating SDA(Software Deployable Archive) where I simply need to add a file to zip along with a small xml file. The implementation is as follows:

1. User browses the file which he wants to add to the sda.

2. File is uploaded into memory.

3. The uploaded file is added to a new zip file ( using a write statement).

The problem here is in case of huge files, it throws Out of memory exception at step 3 because already one copy is in memory eating up a lot of space. JVM memory settings enhancements does not help here as we cannot predict how much we need to enhance it and everytime user wants to create sda for a bigger file we cannot go and change JVM settings.

I have considered the option of uploading the file in chunks add that to zip file, delete that chunk and upload next chunk but somehow it does not seem to be a realistic solution.

Please suggest a solution for this. It is really urgent.

Regards,

Parminder

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Please refer to this link on Development Infrastructure of Netweaver:

http://help.sap.com/saphelp_nw04s/helpdata/en/45/68d64260752a78e10000000a155106/frameset.htm

Regards,

Harish

Message was edited by: HARISH SUBRAMANIAN

Former Member
0 Kudos

Hi,

You can change the XMX and thread parameter in the Visual Administrator and solve this issue.

Please refer to the link below:

http://help.sap.com/saphelp_erp2005/helpdata/en/42/c98d6b11886babe10000000a1553f6/frameset.

In any case I have answered the same problem in the thread shown below:

Regards,

Harish

(Please award points,for helpful answers)

Former Member
0 Kudos

Hi Harish,

It talks about CBS. I am not using CBS. How will changing the settings for CBS help me.

Regards,

Parminder