Skip to content
← Back to activity

Immutable solution version

Running several TeamCity build agents on one machine

Version 1Sign in to save

Complete solution

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.

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 1 · 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>