Upgrade a build agent to use 64 bit java
Hi
I have tried to update our build agent to use the 64 bit version and the 64 bit java installation as some of our builds keep suffering from Java out of memory exceptions. However updating does not appear to be straightforward. The things I have tried include:
- modifying service.install.bat and service.start.bat to point to the provided 64 bit service exe;
- modifying the wrapper.java.command setting in the wrapper.conf file to point to the installed 64bit version of java.exe
- replace the teamcity\jre folder with the 64 bit version (from java install)
However, when doing this, the agent refuses to run with a pretty unhelpful error along the lines of "agent cannot run" or "stdout pipe creation failed". The wrapper.log does not seem to offer any additional help.
Has anyone does this and able to provide detailed help?
Thanks
Please sign in to leave a comment.
Hi,
we have specific instructions for this process on our documentation: https://confluence.jetbrains.com/display/TCD18/Setting+up+and+Running+Additional+Build+Agents#SettingupandRunningAdditionalBuildAgents-ConfiguringJava
Make sure you followed them properly. If not, please mention which version of teamcity you are running.
Please note that linux subsystem for windows is running only with 64-bit binaries, so wsl.exe and bash.exe are not available / seen by teamcity agent 32-bit.
C:\Users\user>dir /b c:\windows\system32\bash.exe
bash.exe
C:\Users\user>C:\Windows\SysWow64\cmd.exe
Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\user>dir /b c:\windows\system32\bash.exe
File Not Found