Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

scheduled builds get out of memory (java heap space)

For our scheduled builds, we have been encountering out of memory errors. I have specified -Xmx values in the build definition but it still fails. I have tried running the build at different times in case something else is happening on the build machine. It always fails during the same step.

But, if I submit a build (instead of a scheduled build), it always works. It does not get the out of memory error. This is on the same machine without even restarting the jbe right after it scheduled build failed.

I am running RTC 1011. The build machine is on Windows.

1

0 votes



One answer

Permanent link
We had a similar problem on AIX. Setting:

export ANT_OPTS=-Xmx1024m

Prior to running ANT seemed to fix it.

Brian

1 vote

Comments

Where in the build definition exactly did you enter "export ANT_OPTS=-Xmx1024m"?  I have tried serveral places and have not been successful.

Brian was my "partner in crime" when he wrote his answer.   Our RTC builds were done using the ANT toolkit and the "export" was likely either in the login profile or the shell script that initiated the ant process.  

Perhaps JAVA_OPTS might be "automagically" interpreted by any java process so an export similar to above for ANT_OPTS might work.
If you're running via JBE there's likely a java command that launches the process just add the -Xmx  to the java command, I'd think.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 343

Question asked: May 14 '09, 8:26 a.m.

Question was seen: 4,278 times

Last updated: Feb 19 '14, 11:18 a.m.

Related questions
Confirmation Cancel Confirm