1. Error Log
2. How to add some command for Linux system
1. Error Log
I’m facing this kind problem when there are many Traccar client for androids has been keep sending the data to the server. It caused the Linux system to print this error log like below:
2. How to add some command for Linux system
In Traccar Server Web, I had configured some configurations but it still caused the same problem but after I read the document in Traccar’s Site I found the Solution.
In Traccar Server Web, I had configured some configurations but it still caused the same problem but after I read the document in Traccar’s Site I found the Solution.
By default Traccar runs from root user account as a daemon (service), so you have to check limits for the root user. On most systems by default, the limit is around 1024 connections.
To increase the limit add following lines to "/etc/security/limits.conf":
root soft nofile 50000
root hard nofile 50000
Make sure you use number higher than your number of devices because when device reconnects it might consume two or even more connection for some period of time.
You type these comment to check your default value, it so small:
Command for Hard Limit
ulimit -Hn
Command for Soft Limit
ulimit -Sn
Below is the output from my server, it is the default value so you have to change it in order avoid open file limit on your server.
Use this command: vi /etc/security/limits.conf to open the file and add these lines:
root soft nofile 50000
root hard nofile 50000
To check if it is effective or not, you have to log out from your remote and remote to it again and then type the old command :
ulimit -Hn
ulimit -Sn
result:
Hi,
ReplyDeleteThanks for sharing above info. Please how can it be done in windows installation. Assistance will be appreciated.
Many thanks.