Can not start the agen after changing application parameters
After I changed following values in wrapper.config file I can not start the agent. Our build needs a heap size of upto 2.5 GB and this seems achievable only after changing following values. If we leave the default values on then we get the heap out of memory error in the build log.
Current values-
# Initial Java Heap Size (in MB)
wrapper.java.initmemory.2=100
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory.3=3072
wrapper.app.parameter.3=-Xmx3072m
Default Values-
# Initial Java Heap Size (in MB)
wrapper.java.initmemory.2=3
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory.3=512
wrapper.app.parameter.3=-Xmx512m
The error that we are getting in launcher.log is as follows:
The error in wrapper.log is ad follows:
2018-10-31 20:43:54,352] INFO - dServer.agent.run.AgentProcess - Agent process finished
[2018-10-31 20:43:54,352] INFO - ldServer.agent.run.AgentRunner - Agent has exited with code: 1
[2018-10-31 20:43:54,352] ERROR - ldServer.agent.run.AgentRunner - Too short run time, most likely there is some installation problem: 0.015 sec.
[2018-10-31 20:43:54,352] INFO - ldServer.agent.run.AgentRunner - Launcher is exiting
Error occurred during initialization of VM
INFO | jvm 1 | 2018/10/31 20:43:54 | Could not reserve enough space for 3145728KB object heap
INFO | jvm 1 | 2018/10/31 20:43:54 | Agent process finished
INFO | jvm 1 | 2018/10/31 20:43:54 | Agent has exited with code: 1
INFO | jvm 1 | 2018/10/31 20:43:54 | Too short run time, most likely there is some installation problem: 0.015 sec.
INFO | jvm 1 | 2018/10/31 20:43:54 | Launcher is exiting
STATUS | wrapper | 2018/10/31 20:43:56 | <-- Wrapper Stopped
Server configuration is :
Windows server 2012 R2 Standard
RAM 8 GB
System-64 bit
Please advice on the same. Huge thanks in advance.
Please sign in to leave a comment.
Hi,
by default, the agent is shipped with 32 bit java, which cannot allocate that much memory. Please upgrade to 64 bit java as described here: https://confluence.jetbrains.com/display/TCD18/Setting+up+and+Running+Additional+Build+Agents#SettingupandRunningAdditionalBuildAgents-ConfiguringJava