How can traccar use 200% CPU?

Andreas K 5 years ago

I was just check my server and started top and was a little bit wondering how it ist possible that traccar use 200% CPU.
How can it be?

Here a text capture from the console:

top - 18:49:16 up 267 days, 0 min,  1 user,  load average: 2.00, 2.11, 2.14
Tasks: 165 total,   1 running,  99 sleeping,   0 stopped,   0 zombie
%Cpu(s): 25.1 us,  0.0 sy,  0.0 ni, 74.9 id,  0.0 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem : 32799196 total, 22546596 free,  3990856 used,  6261744 buff/cache
KiB Swap: 16759804 total, 16759804 free,        0 used. 28342824 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
30519 traccar   20   0 13.888g 1.254g  22028 S 200.3  4.0 243426:23 java
  424 www-data  20   0  575760  21304  10984 S   0.3  0.1   0:02.70 apache2
  819 mysql     20   0 26.039g 2.266g  18620 S   0.3  7.2   6011:44 mysqld
 1384 wichtel   20   0   44720   3980   3252 R   0.3  0.0   0:00.11 top
Anton Tananaev 5 years ago

What version are you using?

Andreas K 5 years ago

Version is 4.10

Anton Tananaev 5 years ago

You should upgrade first. If it still happens, please provide jstack output.

Andreas K 5 years ago

Update is done to 4.12 and in moment it take 0.3%.
I will follow it in the next days and give feedback here.