cancel
Showing results for 
Search instead for 
Did you mean: 

Out of Memory Error- While doing ant clean all

Former Member
0 Kudos

Hi all,

I have included some of the sap related extensions. in localextensions.xml, after that I tried to do an antcleanall, I am getting OutOfMemory Error. I tried to change the Heap size, but no use. Could you please suggest me what needs to be done.

Thanks, .K

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What size did you set?
Adding something like this in the setantenv script should do the job, as every time you need to use ant you should set the size:

export -p ANT_OPTS="-Xmx2048m -XX:MaxPermSize=512M"

Former Member
0 Kudos

This is the way to go. Adjust xmx for ant process in setentanv.bat/sh.

Answers (2)

Answers (2)

Former Member
0 Kudos

Please could you post detailed stack trace here, maybe it's not heap size issue, it could also be permanent size issue.

Former Member
0 Kudos

Please reference the system requirements document to ensure that the system you are attempting to install on has sufficient resources. Below is the document for the most recent release.

https://wiki.hybris.com/display/general/System+Requirements+-+Release+5.5