Slow server

jamel 3 years ago

Hey,
I have been using Traccar server more than a year now I had notice that is using more resources than ever. i have a ubuntu server 20.04 with SSD and 8GB ram including 150 devices and 20 users the server is getting slower i'm not a java expert but it looks there is something wrong .
https://i.imgur.com/Jtdl6q1.png
anyone can help!

Anton Tananaev 3 years ago

What version are you using?

jamel 3 years ago

I'm using version 5.4

Anton Tananaev 3 years ago

You should upgrade first.

By the way, why do you have so many server instances?

jamel 3 years ago

OK i will upgrade .
I have no idea i installed it with the traccar.run script with this configuration
https://www.transferfile.io/#/bafybeiaxp7qwnkj2nqhjm7ibhnnvkket7laddeyeh6l4gdybrboq7mxree
please check it out

Richard Acosta 3 years ago

Hello, sorry for the intromission but about server instances...
I tought it was normal....

https://i.imgur.com/RgF6WJ7.png

Richard Acosta 3 years ago

Jamel, CPU load seems too high.. My cpu usage in a monocore is mostly 0.00... (it increased as I started ssh session)

https://i.imgur.com/Cy3uRFv.png

Anton Tananaev 3 years ago

It is not normal to have multiple instances of the service.

jamel 3 years ago

Hey Richard,
yes i know this is weird the pid is using 32% of the cpu .
https://i.imgur.com/UA70cOV.png

jamel 3 years ago

And it looks like it's not a multiple instances its just threads
checkout this :
https://stackoverflow.com/questions/16078883/htop-and-top-showing-multiple-instances-of-process

Anton Tananaev 3 years ago

OK. Weird that it shows different PID for each though. That what confused me.

jamel 3 years ago

Hey
is it normal that my traccar server uses a lot of cache memory ?
https://i.imgur.com/IQhwuxr.png

              total        used        free      shared  buff/cache   available
Mem:              7           0           0           0           6           6
Richard Acosta 3 years ago

0.7 the main pid.... 0.0 the rest.
You have a serious issue..... ¿how often (what freq.) your devices report location?

https://imgur.com/k1MBYkv