Cannot run program "env": java.io.IOException: error=12, Cannot allocate memory

I keep getting this error with teamcity 5.1

"Error reading assemblies: Error reading descriptor at: jar-with-dependencies:Cannot run program "env": java.io.IOException: error=12, Cannot allocate memory"

I have this TEAMCITY_SERVER_MEM_OPTS="-Xms1512m -Xmx1512m -XX:MaxPermSize=512m" set


any help is appreciated

Suresh

10 comments

Do you use 32-bit or 64-bit JVM? With 32bit JVM there is a limit for maximum available memory. For example, on Windows, you can't start Java with -Xmx > 1100Mb.

0

I am using a 64 bit jvm, i was using 32 bit before i switched to this and was expecting to solve this

Suresh

0

How do you start TeamCity server, as a Windows service or via teamcity-server.bat file?

0

I run it using runAll.sh -start in linux


0

NOw everytime i have to restart teamcity to get it working for a few days and after that it start throwing the error again

0

can some please give some pointers on this?

Thanks,
Suresh

0

Sorry for delay. You say the server works for some time, but then you see errors. Could you please provide teamcity-server.log?

0

Hi,  I am getting this error too - while its try to do the exec git, checkout.

Was it solved in the end?

Thanks,
Chris

0

Please sign in to leave a comment.