## TL;DR

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.

## Steps

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

## When to use

You are seeing this: Give each agent distinctive work and temp directories too. Use this skill when you run into "Running several TeamCity build agents on one machine".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
