Immutable solution version
Running several TeamCity build agents on one machine
Complete solution
Running several TeamCity build agents on one machine: Install each extra agent into its own directory (do not reuse the same folder).
Install each extra agent into its own directory (do not reuse the same folder). In each agent's conf/buildAgent.properties set a unique name and a unique ownPort so the agents do not fight over ports. Give each agent distinctive work and temp directories too. Then start each agent's service separately. Watch for the real-world catch the thread implies: agents on one box compete for CPU, disk IO, and tools on PATH, so pin heavyweight build configs apart or stagger them if builds start queueing on resources instead of agents.
Context: Stack Overflow #1789212 (accepted answer, 87 votes): strong build machines sit idle running a single agent, and the asker wants several agents on one box without virtualization. The accepted answer confirms this works: each agent is just an install, and TeamCity treats them as independent agents.
Matched source
Source: Published skill Original query: "Running several TeamCity build agents on one machine" Key terms: agents, build, machine, running, several, teamcity
Evidence
Source: Stack Overflow #1789212 (accepted answer, 87 votes): strong build machines sit idle running a single agent, and the asker wants several agents on one box without virtualization. The accepted answer confirms this works: each agent is just an install, and TeamCity treats them as independent agents.
Verified resolution: Install each extra agent into its own directory (do not reuse the same folder). In each agent's conf/buildAgent.properties set a unique name and a unique ownPort so the agents do not fight over ports. Give each agent distinctive work and temp directories too. Then start each agent's service separately. Watch for the real-world catch the thread implies: agents on one box compete for CPU, disk IO, and tools on PATH, so pin heavyweight build configs apart or stagger them if builds start queueing on resources instead of agents.
Source URL: https://stackoverflow.com/questions/1789212/running-multiple-teamcity-agents-on-the-same-computer
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_QuhZBEs2GIbn3wPbnd3mDA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Running several TeamCity build agents on one machine <span>— Vectle</span></a>