by dave4444 » Tue Aug 26, 2014 12:27 pm
yes, interesting observation.
TCP RST to the connection request causes the memory leak, but ICMP host-unreach does not. See 'total allocated space' below every 5 seconds.
=========
08:15:32.766188 IP 10.10.24.50.57171 > 54.243.136.9.11010: S 2782601936:2782601936(0) win 8688 <mss 1460,nop,wscale 0,nop,nop,sackOK,nop,nop,timestamp 112410 0>
08:15:32.766254 IP 54.243.136.9.11010 > 10.10.24.50.57171: R 0:0(0) ack 2782601937 win 0
08:15:37.766114 IP 10.10.24.50.64986 > 54.243.136.9.11010: S 2783863907:2783863907(0) win 8688 <mss 1460,nop,wscale 0,nop,nop,sackOK,nop,nop,timestamp 117410 0>
08:15:37.766176 IP 54.243.136.9.11010 > 10.10.24.50.64986: R 0:0(0) ack 2783863908 win 0
08:15:42.766214 IP 10.10.24.50.42377 > 54.243.136.9.11010: S 2785032643:2785032643(0) win 8688 <mss 1460,nop,wscale 0,nop,nop,sackOK,nop,nop,timestamp 122410 0>
08:15:42.766281 IP 54.243.136.9.11010 > 10.10.24.50.42377: R 0:0(0) ack 2785032644 win 0
$ telnet hydroflash
Trying 10.10.24.50...
Connected to hydroflash
Escape character is '^]'.
Welcome NET+OS 7.5.2.2 Command Line Interface
login: root
Password: ********
#> mallocstat
heap info structure:
system space available for heap 5238143
space allocated from system for heap 1584512
number of non-inuse chunks 7
number of mmapped regions 0
total space in mmapped regions 0
total allocated space 1539608
total non-inuse space 44904
top-most, releasable space 17848
#> mallocstat
heap info structure:
system space available for heap 5238143
space allocated from system for heap 1584512
number of non-inuse chunks 7
number of mmapped regions 0
total space in mmapped regions 0
total allocated space 1539688
total non-inuse space 44824
top-most, releasable space 17848
#> mallocstat
heap info structure:
system space available for heap 5238143
space allocated from system for heap 1584512
number of non-inuse chunks 7
number of mmapped regions 0
total space in mmapped regions 0
total allocated space 1539768
total non-inuse space 44744
top-most, releasable space 17848
#>
=========
08:23:27.762718 IP 10.10.24.50.57730 > 54.243.136.9.11010: S 2902767104:2902767104(0) win 8688 <mss 1460,nop,wscale 0,nop,nop,sackOK,nop,nop,timestamp 587410 0>
08:23:27.762789 IP 10.10.24.1 > 10.10.24.50: ICMP host 54.243.136.9 unreachable, length 72
08:23:30.762195 IP 10.10.24.50.57730 > 54.243.136.9.11010: S 2902767104:2902767104(0) win 8688 <mss 1460,nop,wscale 0,nop,nop,sackOK,nop,nop,timestamp 590410 0>
08:23:30.762271 IP 10.10.24.1 > 10.10.24.50: ICMP host 54.243.136.9 unreachable, length 72
08:23:36.762111 IP 10.10.24.50.57730 > 54.243.136.9.11010: S 2902767104:2902767104(0) win 8688 <mss 1460,nop,wscale 0,nop,nop,sackOK,nop,nop,timestamp 596410 0>
08:23:36.762171 IP 10.10.24.1 > 10.10.24.50: ICMP host 54.243.136.9 unreachable, length 72
#> mallocstat
heap info structure:
system space available for heap 5238143
space allocated from system for heap 1600896
number of non-inuse chunks 9
number of mmapped regions 0
total space in mmapped regions 0
total allocated space 1553624
total non-inuse space 47272
top-most, releasable space 15096
#> mallocstat
heap info structure:
system space available for heap 5238143
space allocated from system for heap 1600896
number of non-inuse chunks 9
number of mmapped regions 0
total space in mmapped regions 0
total allocated space 1553624
total non-inuse space 47272
top-most, releasable space 15096
#> mallocstat
heap info structure:
system space available for heap 5238143
space allocated from system for heap 1600896
number of non-inuse chunks 9
number of mmapped regions 0
total space in mmapped regions 0
total allocated space 1553624
total non-inuse space 47272
top-most, releasable space 15096
#>