Traccar using 292 ports

Umbreon2 years ago

Hiya, While migrating my server today I noticed that traccar is taking up a large number of ports.
I have attached a link to the results of lsof -i -P -n | grep traccar https://ghostbin.me/63fb8cb27072c
All of these are from the java executable and from the user traccar which just runs the traccar service.

I am wondering if there is potentially misconfigured my side or if this is intended behavior

Anton Tananaev2 years ago

Sounds close the correct number:

https://www.traccar.org/devices/

Umbreon2 years ago

Ah so every device requires a different port? That would explain the large amount of open ports.
Okay I found this configuration option, I will add this and see if the amount of ports reduces: https://github.com/traccar/traccar/issues/3991

Umbreon2 years ago

Okay I have disabled everything but the 1 protocol I use, I am now down to 12 ports. Thank you for your help.

Anton Tananaev2 years ago

Not every device obviously, but every different protocol has its own port.