mehtadone / PTFeeder

Official GitHub for ProfitTrailer's best buddy, PT Feeder. Be sure to visit their GitHub too.
https://wiki.ptfeeder.co/
182 stars 33 forks source link

dotnet piles close_wait sockets #334

Closed bytebasher closed 6 years ago

bytebasher commented 6 years ago

As title says above, sockets in close_wait opened by dotnet have not been closed and are piling up. This is probably caused by a filedescriptor leak and leads to memory consumption, because memory for buffers of those affected sockets are not released.

PTF_Version : v.1.5.1.685 OS : Linux CENT OS 7.4 3.10.0-693.2.2.el7.x86_64 DOTNET : 2.1.4

Short output :

netstat -neopa

32 0 150.95.191.124:60739 54.65.136.43:9443 CLOSE_WAIT 1001 2082272 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:53126 13.112.130.71:9443 CLOSE_WAIT 1001 2167051 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:46921 13.112.130.71:9443 CLOSE_WAIT 1001 2164912 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:58805 54.92.86.171:9443 CLOSE_WAIT 1001 2078195 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:58320 13.112.252.243:9443 CLOSE_WAIT 1001 2171998 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:59739 54.92.75.43:9443 CLOSE_WAIT 1001 2172200 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:36463 54.92.0.105:9443 CLOSE_WAIT 1001 2119499 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:43091 54.92.26.88:9443 CLOSE_WAIT 1001 2079040 9337/dotnet off (0.00/0/0) tcp 32 0 150.95.191.124:36297 13.112.107.79:9443 CLOSE_WAIT 1001 2162867 9337/dotnet off (0.00/0/0) really maaaaany

netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c 846 CLOSE_WAIT 22 ESTABLISHED 11 LISTEN 1 TIME_WAIT

mehtadone commented 6 years ago

Moved to forum: http://forum.ptfeeder.co/t/dotnet-piles-close-wait-sockets/25