500 - Server Error

Tracking Faso8 months ago

Hello,
I have just noticed a problem on my server, when I try to display the report of a day or several days which contains several data my server spits out and takes time to return and it shows me this error (500 - Server Error) in the end without show me the report and at the same time the device goes offline and comes back online

error screenshot

Here is the information it displays in the log:

2024-03-18 03:00:38  WARN: /api/positions - Java heap space - OutOfMemoryError
2024-03-18 03:00:38  WARN: unhandled due to prior sendError - Java heap space - OutOfMemoryError

My server config is Ubuntu 20.04.6 LTS ,1 GB RAM, 2 vCPUs and traccar version 5.12.

How can fix?

Anton Tananaev8 months ago

The error message in the log is pretty clear - you ran out of memory.

Tracking Faso8 months ago

@Anton Tananaev So this means that I have to increase the RAM memory of my server?

Anton Tananaev8 months ago

Probably yes, but it also probably suggests that you're trying to extract a massive amount of data.

Tracking Faso8 months ago

I don't understand when you say try to extract a massive amount of data.

Anton Tananaev8 months ago

I mean the number of location records.