on 02 Nov 2022 07:45 AM - edited on 02 Nov 2022 10:18 AM by MaciejNeumann
OneAgent consists of different processes that communicate via a TCP port with a watchdog. At startup, OneAgent watchdog attempts to open the first available port between port 50000 and 50100. In some cases you may need this port for your own applications that are started after OneAgent. In such cases, you can change the port range that the OneAgent watchdog uses by calling OneAgent command-line interface.
You can change the watchdog listening port by using
set-watchdog-portrange
via oneagentctl command-line tool:
./oneagentctl --set-watchdog-portrange 50005:50105
.\oneagentctl.exe --set-watchdog-portrange 50005:50105Restart OneAgent service to apply changes.
See Which network ports does Dynatrace Server use? for information on the ports used by Dynatrace.
Change the port range that the OneAgent watchdog uses by modifying the file watchdoguserconfig.conf.
-portrange=50000:50100
To:-portrange=50005:50105
Managing the watchdog port range is easy, but when it comes to the other OneAgent processes like oneagentos, things get more tricky. Some discussion on that topic can be found here: