Memory usage is 99%

walent1n3 years ago

Hi everyone

I got the basic VPS on DigitalOcean with 1GBRam. I have connected around 30 devices with reports of intervals of 7 seconds. Everything is working good but I see that the server reports Memory usage is 99%. What does mean this? Do I need to change anything?

https://prnt.sc/17ocuti

Anton Tananaev3 years ago

It probably means you need a bigger server. Don't wait till it fails.

walent1n3 years ago

This is the pic
https://prnt.sc/17ocuti

walent1n3 years ago

What server can i take for example for 35 units with 7 seconds intervals?

Anton Tananaev3 years ago

I would recommend increasing to the next available option and see how it works. Just try it out. You can scale it up and down as needed. That's the benefit of a VPS.

Adsakis3 years ago

MySQL is notorious for consuming much memory and the Traccar Java is a bit too high on your instance, my Traccar Java runs at around 25% with Ubuntu 20.04 server. If you do not want to upgrade your server, just use traccar with its native database h2.

Anton Tananaev3 years ago

Never use H2 for production. You can search for many stories on our forum when people lost all the data when it randomly got corrupted.

Adsakis3 years ago

Never use H2 for production. You can search for many stories on our forum when people lost all the data when it randomly got corrupted.

Not sure if he uses a VPS server with 1 GB RAM for production, but an alternative is MariaDB which is a drop-in alternative to MySQL. I have read online that is also uses less resources than MySQL.

CharlesMcR3 years ago

Had the same myself DigitalOcean Basic, Shared CPU, 1 vCPU, Memory: 1 GB, Disk: 25 GB, transfer: 1 TB, Traccar droplet install, default settings with three devices. CPU sat at 100% for four hours regularly. Console messages about being out of memory. Have just bumped it to 2GB memory to see if that resolves.