TCP connections and memory problem

diagnoz4 months 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 Tananaev4 months ago

Do you have a timeout configured?

diagnoz4 months ago

Yes sir, 60 sec

Anton Tananaev4 months ago

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

diagnoz4 months ago

Yes

diagnoz4 months 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 Tananaev4 months ago

And you don't see timeouts in Traccar logs?

diagnoz4 months ago

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

Anton Tananaev4 months ago

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

diagnoz4 months ago

I have 15 registered devices and 5 unregisterd.

And expect 20 connections.

Anton Tananaev4 months ago

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