How can I optimize the performance of Traccar's server for handling a large number of devices with frequent location updates while ensuring scalability and reliability?

boundlesstrader21 hours ago

I've been using Traccar for a fleet management system and I'm experiencing performance bottlenecks as the number of devices increases (currently around 1,000 devices, but scaling to 10,000+). The devices send frequent location updates, and I'm noticing latency in data processing and occasional downtime when the server load spikes.
I have already:
Configured the server with adequate CPU and memory resources.
Used a dedicated server with a PostgreSQL database.
Set up the server to use TCP protocol for device communication.
What are some advanced optimizations I can apply to ensure smooth performance and reliability at scale?
Additionally, are there any known issues or limitations in Traccar when scaling to such large fleets, and if so, what workarounds or solutions would you recommend?

Track-trace20 hours ago

I always wonder about such topics when the user post his first topic on the forum.

Did you check and tested https://www.traccar.org/optimization/ ?

Track-trace20 hours ago

And you might wonder why i think so.

Well the topic is to general.

-Not discribing the traccar server version he uses.

-Not giving details about server specs like cpu, memory and type of storage used

Not showing if there are any modifications done or config setting changes that might be of any influence

-Not stating which brand and model trackers are used

  • You cant expect a detailed answer when writing with such general conclusions.

-First topic on the forum

Hope the optimization guide helped you? Mysql is recommended as database server.

Track-trace20 hours ago

And logicly you would have looked at server load and write about it. And allocate more memory to traccar java.

And tell about what the update frequency of the trackers are set to (which might impact server performance).

I Hope you find enough clues in the remarks to optimize your server. But if you do then write how you did it so others can find it helpfull.

Anton Tananaev13 hours ago

Used a dedicated server with a PostgreSQL database.

This is against our recommendations.

  1. PostgreSQL is slower than MySQL in our experience, by something like 5x.
  2. We recommend having database on the same machine to better handle unique workload from Traccar. Specifically very frequent small writes.