Accept Failure - Too many open files - IOException

Niraj Singh 3 years ago

I am getting this warning in logs.

2023-05-16 06:33:23  WARN: An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. - Too many open files - IOException (...)

we have setup connection setting as per recommended on traccar site https://www.traccar.org/optimization but still getting this.

Track-trace 3 years ago

I wonder how many devices you have online.

Niraj Singh 3 years ago

I have around 1000 devices online.

Track-trace 3 years ago

You did disable all protocol ports that are not used.

Anton Tananaev 3 years ago

Have you checked the process limit and how many connection you have?

Niraj Singh 3 years ago

I have checked process limit.

SyslogIdentifier=traccar
SuccessExitStatus=143
#WatchdogSec=600
Restart=on-failure
RestartSec=10
LimitNOFILE=50000
[Install]
WantedBy=multi-user.target

I have around total 1000 devices out of them 900 would be on gt06 port and currently open connections are 11424 on gt06 port.

Anton Tananaev 3 years ago

How did you check the actual process limit?

Anton Tananaev 3 years ago

And also why do you have so many connections? Have you configured the connection timeout?

Niraj Singh 3 years ago

Hi Anton,

I have checked this limit
LimitNOFILE=50000

Please let me know how to check process limit also.I have checked my traccar.config I have not set any timeout.how much timeout I should set ideally pls suggest.

Anton Tananaev 3 years ago

It sounds like you haven't really read the documentation:

https://www.traccar.org/optimization/

Niraj Singh 3 years ago

Hi Anton,

I have gone through document and i have setup timeout now. is it fine for device interval 10 secs while moving.

<entry key = 'gt06.timeout'>60</entry>