traccar / traccar-docker

Traccar Docker
301 stars 148 forks source link

How to increase java RAM limit in existing Traccar docker container #95

Closed alexsahka closed 2 years ago

alexsahka commented 2 years ago

I can see this command in the Portainer interface: java -Xms512m -Xmx512m -Djava.net.preferIPv4Stack=true -jar tracker-server.jar conf/traccar.xml

My question is how to increase the 512m command to 1Gig for example?

Thanks.

tananaev commented 2 years ago

@magna-z also should we increase default values? It seems like quite a few reports that the latest version of Traccar uses more memory.

alexsahka commented 2 years ago

Changing from java,-Xms512m,-Xmx512m,-Djava.net.preferIPv4Stack=true to java,-Xms1024m,-Xmx1024m,-Djava.net.preferIPv4Stack=true or java,-Xms1g,-Xmx1g,-Djava.net.preferIPv4Stack=true

ending in error image