TCP connections and memory problem

diagnoz a year ago

Ver: 6.3 - 6.4

I think the server have a problems with memory leak.
Im watching connections to server and they always growing.

For monitoring I use command: netstat -ant | grep ESTABLISHED | wc -l

Additional info: i have additioanl 5 devices not registered, but they try connect to server (its normal) i looked them in log.

And after two months of work server eats all memory.

Anton Tananaev a year ago

Do you have a timeout configured?

diagnoz a year ago

Yes sir, 60 sec

Anton Tananaev a year ago

So you're saying that connections are not timing out?

diagnoz a year ago

Yes

diagnoz a year ago

My settings:

 <entry key='filter.invalid'>true</entry>
 <entry key='filter.zero'>true</entry>
 <entry key='filter.maxSpeed'>150</entry>
 <entry key='protocol.timeout'>60</entry>

TCP.png

When restart server the connections reset to 1 (my ssh client)

Anton Tananaev a year ago

And you don't see timeouts in Traccar logs?

diagnoz a year ago

I see "disconnected" events, but Linux core shows connections growing.

Anton Tananaev a year ago

How many connections are you expecting to see? How many devices do you have?

diagnoz a year ago

I have 15 registered devices and 5 unregisterd.

And expect 20 connections.

Anton Tananaev a year ago

Have you checked if those connections are actually from your devices?