Ever since I changed my build to run by using ant calls rather than shell scripts, I have constant memory problems when running the build through TeamCity. I am using the latest TeamCity build (1712). The TC server and agent are both running on a Linux box. The full build takes about an hour to run through TeamCity (when it worked). I have changed the memory settings a number of times. Each time I get a bit further. It now gets very close to finishing but I have set the "JVM Command Line Parameters" in the build configuration through the TeamCity UI to "-Xmx1792m" which seems excessively high. But, it still runs out of memory.
Here are other settings that I have changed:
Does the "LAUNCHER_OPTS" in buildAgent/bin/agent.sh need to be changed?