TCP connections and memory problem

diagnoza 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 Tananaeva year ago

Do you have a timeout configured?

diagnoza year ago

Yes sir, 60 sec

Anton Tananaeva year ago

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

diagnoza year ago

Yes

diagnoza 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 Tananaeva year ago

And you don't see timeouts in Traccar logs?

diagnoza year ago

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

Anton Tananaeva year ago

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

diagnoza year ago

I have 15 registered devices and 5 unregisterd.

And expect 20 connections.

Anton Tananaeva year ago

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