in reply to socket leaks memory

I ran this on a Linux with Perl 5.8.8 for 90 seconds (connections refused just as fast as it could), and it was not growing.

What tool are you using to detect the memory leak? I was watching it with "top". Sometimes it would gain a little bit and then drop back to where it was.

Replies are listed 'Best First'.
Re^2: socket leaks memory
by saahbs (Initiate) on Oct 02, 2007 at 18:21 UTC
    I just observe resident memory usage with top or ps. I tried it on another machine with exactly the same 5.8.8 build and it was not leaking. I wonder if it is a kernel/libc6 issue (the leaker was libc-2.6.1 with 2.6.22 kernel, and the non-leaker was libc-2.3.6 with 2.6.18 kernel). Another leaker was libc-2.3.2 with 2.6.8 kernel and perl 5.8.4.