OutOfMemoryError

I am getting out of memory errors when checking out my projects code from perforce:

Could not get project sources: java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

I have increased the JVM in the Agent process to 512MB, any suggestions as to why it needs to be so large?

Also is it possible to stop it deleting all the code and re-checking it out again. I've seen mentions of "checkout sources automatically" and 'clean all files before build'. Where are these options and how do I set them?

Thankks,
Theo

4 comments
Comment actions Permalink

The problem should be fixed in the next eap

"Theo Harper" <theo_harper@systemsunion.com> wrote in message
news:9096933.1153406510821.JavaMail.itn@is.intellij.net...
>I am getting out of memory errors when checking out my projects code from
>perforce:
>

Could not get project sources: java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

>

I have increased the JVM in the Agent process to 512MB, any suggestions as
to why it needs to be so large?

>

Also is it possible to stop it deleting all the code and re-checking it
out again. I've seen mentions of "checkout sources automatically" and
'clean all files before build'. Where are these options and how do I set
them?

>

Thankks,
Theo



0
Comment actions Permalink

Thanks for the reply Olesya, is there a work around and/or when is the next EAP due?

Theo

0
Comment actions Permalink

The only workaroud is to increase mx. Next eap will be ASAP, we're working
on it

"Theo Harper" <theo_harper@systemsunion.com> wrote in message
news:29615151.1153421948245.JavaMail.itn@is.intellij.net...

Thanks for the reply Olesya, is there a work around and/or when is the
next EAP due?

>

Theo



0
Comment actions Permalink

Can you tell me which file i need to edit?

I have changed C:\TeamCity\buildAgent\bin\buildAgent.bat to:

"%JAVA_HOME%\bin\java" -cp ..\lib\launcher.jar jetbrains.buildServer.agent.Launcher -ea -Xmx1024m jetbrains.buildServer.agent.AgentMain -file %CONFIG_FILE%

But it still seems to be stuck at 200mb.

Thanks,
Theo

0

Please sign in to leave a comment.