kalleboo / PingMenu

Show the current latency of your connection in your Mac OS X menu bar
Other
156 stars 27 forks source link

memory leak #7

Open ghost opened 10 years ago

ghost commented 10 years ago

after running for a few days, memory has slowly climbed from just under 10MB to now 30MB. the rate of leakage appears to be very similar to that of iconping [1], so not sure if it's a similar bug in the app, or they both trigger the same bug in the OS.

[1] https://github.com/antirez/iconping/

kalleboo commented 10 years ago

My copy has been running for days (it's up to over 41,000 in ping identifiers, so about 3 days?) and is still at about 10 MB memory usage.

What version of OS X are you on?

ghost commented 10 years ago

OS X 10.9.2.

I let it it grow to 50MB before finally quitting it.

ghost commented 10 years ago

i repeated the experiment and recorded the process size immediately after launch and 3 days later. it doesn't leak as bad as iconping. (process size is the 6th column in the output).

# Initial launch
$ date
Fri May  9 04:48:12 PDT 2014

$ ps auxww | grep -i ping
x            55487   0.1  0.0  2530412   8356   ??  S     4:48AM   0:00.09 /Users/x/Applications/PingMenu.app/Contents/MacOS/PingMenu
x            55456   0.0  0.1  2524824   8540   ??  S     4:48AM   0:00.09 /Users/x/Applications/iconping.app/Contents/MacOS/iconping

# 3 days later
$ date
Mon May 12 16:09:37 PDT 2014

$ ps auxww | grep -i ping
x            55456   0.1  0.5  2617276  92132   ??  S    Fri04AM   8:40.61 /Users/x/Applications/iconping.app/Contents/MacOS/iconping
x            55487   0.1  0.2  2634240  39292   ??  S    Fri04AM  12:16.90 /Users/x/Applications/PingMenu.app/Contents/MacOS/PingMenu