An exceptionCaught() event was fired... Too many open files

Peter Flower5 years ago

So? The solution is to change the limit but for the user "root"?

Best Regards

Ernesto Vallejo5 years ago
Anton Tananaev5 years ago

Invalid link.

Peter Flower5 years ago

I don't know what is happening but it is a mess :-)
I don't why, but the process which run Traccar not change his limits.
PD. I'm using an AWS EC2 with Debian.

Limits set for the system
Description text
Description text

Limit for user root
Description text
Limits for process which is executed by root
Description text

Peter Flower5 years ago
Ernesto Vallejo5 years ago
Anton Tananaev5 years ago
Peter Flower5 years ago

WOW!! It works!!!

Peter Flower5 years ago

I did this change!
Modify /etc/systemd/user.conf and /etc/systemd/system.conf with the following line:
DefaultLimitNOFILE=100000

I think this is the correct way.
At the end, what matters is that the process that Traccar executes is the one that increases the limits.
Description text

Ernesto Vallejo5 years ago

Excellent! Good to know this. Regards

Peter Flower5 years ago

I think it is a matter of PAM and systemd, according the system is the configuration, please check this URL:

https://ro-che.info/articles/2017-03-26-increase-open-files-limit

Peter Flower5 years ago

Thanks Anton and Ernesto for your time!