Build Failing with 64-Bit JRE
Hello,
I'm having trouble getting my build agents to run using the 64-bit JRE. I currently have 64-bit JRE (version 1.8.0_162) installed on my TeamCity server and on 3 build agents that are running as Windows services (I installed JRE on the computer running the server and then copied the JRE files to C:\TeamCity\jre and C:\Program Files\TeamCity\<AgentDirectory>\jre (for all three agents). In each build agent's wrapper.conf file,
wrapper.java.command=../jre/bin/java and wrapper.app.parameter.3=-Xmx1g. I also have the TEAMCITY_SERVER_MEM_OPTS environment variable set to -Xmx4g -XX:ReservedCodeCacheSize=350m. Furthermore, I have the JAVA_HOME environment variable set to C:\Program Files\Java\jre1.8.0_162 and my PATH variable contains %JAVA_HOME%\bin.
This is the error I'm getting from the build agents:
[2018-02-01 11:46:21,191] WARN - The JDK_HOME environment variable does not [2018-02-01 11:46:21,191] WARN - point to a working 32-bit JDK or JRE. [2018-02-01 11:46:21,192] WARN - The JVM found at JDK_HOME is damaged. [2018-02-01 11:46:21,192] WARN - Please reinstall or define EXE4J_JAVA_HOME [2018-02-01 11:46:21,192] WARN - to point to an installed 32-bit JDK or JRE. [2018-02-01 11:46:21,192] WARN - The JVM could not be started. The maximum heap size (-Xmx) might be too large or an antivirus or firewall tool could block the execution. [2018-02-01 11:46:21,194] INFO - Process exited with code 0
I tried setting EXE4J_JAVA_HOME to %JAVA_HOME% but this did not fix the issue. I'm pretty sure I have all the right configuration settings to make the 64-bit JRE work on the server and agents so I'm not sure what's going wrong here. Any help or advice would be greatly appreciated!
Thanks,
Jack
Please sign in to leave a comment.
Hi Jack,
it would be useful to have the full teamcity-agent.log. Could you send it to us via the "Submit a request" button on top?
Hi Denis,
Thanks for your quick reply! I just submitted the log files from one of my build agents using the "Submit a request" button like you requested.
Jack