TCP connections and memory problem

diagnoz9 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 Tananaev9 months ago

Do you have a timeout configured?

diagnoz9 months ago

Yes sir, 60 sec

Anton Tananaev9 months ago

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

diagnoz9 months ago

Yes

diagnoz9 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 Tananaev9 months ago

And you don't see timeouts in Traccar logs?

diagnoz9 months ago

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

Anton Tananaev9 months ago

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

diagnoz9 months ago

I have 15 registered devices and 5 unregisterd.

And expect 20 connections.

Anton Tananaev9 months ago

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