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
Please sign in to leave a comment.
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.
I am using a 64 bit jvm, i was using 32 bit before i switched to this and was expecting to solve this
Suresh
How do you start TeamCity server, as a Windows service or via teamcity-server.bat file?
I run it using runAll.sh -start in linux
NOw everytime i have to restart teamcity to get it working for a few days and after that it start throwing the error again
can some please give some pointers on this?
Thanks,
Suresh
Sorry for delay. You say the server works for some time, but then you see errors. Could you please provide teamcity-server.log?
attaching the logs
Attachment(s):
teamcitylog.zip
Hi, I am getting this error too - while its try to do the exec git, checkout.
Was it solved in the end?
Thanks,
Chris
Oops - this might be the solution, at least in my case:
http://stackoverflow.com/questions/1124771/how-to-solve-java-io-ioexception-error12-cannot-allocate-memory-calling-runt