...
If the agent runs with a console attached, you may also press Ctrl+C in the console to stop the agent (if a build is running, it will be canceled).
Configuring Java
A TeamCity build agent is a Java application and it requires JDK version 6 or later to work. Oracle Java SE JDK OpenJDK 8 (e.g. by AdoptOpenJDK) 1.8.0_161 or later, 32-bit is recommended. Java download page Oracle Java 8 is also supported.
A build agent contains two processes:
...