amiantos / pibar

PiBar for Pi-hole - Manage your Pi-hole(s) from your macOS menu bar!
Mozilla Public License 2.0
294 stars 6 forks source link

Massive memory footprint #40

Open yik77 opened 3 years ago

yik77 commented 3 years ago

First, I love pibar and would like to thank its author(s). Great work. Goes nicely with pihole. Now back to the issue:

I see huge memory usage for tiny program than produces few lines of text. Over time, when my mac is running and running, the size of memory used by pibar is almost 2 GB. This is not normal

I am attaching screenshot: Pibar

I am running OS X High Sierra, 10.13.6 on MPB with 8 GB of RAM. My typical uptime is in months.

amiantos commented 3 years ago

Hmm.. I have never seen this happen personally (and I've been running PiBar all day every day since release) and haven't heard this complaint elsewhere. What's your configuration look like? I really can't imagine why this would happen, as the app isn't really storing much of anything in memory...

yik77 commented 3 years ago

I would say relatively typical one. piholes running 2 piholes on 2 pi zero w boards, none of which is DHCP server, home network with 15 or so devices at max, comcast cable for internet, plain vanilla configuration of blacklists, no whitelists.

I'll be happy to do more to troubleshoot this issue. It is reproducible, not once-and-never-again.

amiantos commented 3 years ago

When I start working on it again I'll try to do a code audit and some theorizing on where there could be a memory leak. Maybe it's somehow related to High Sierra, but I'd be surprised. Either way, I will keep this in mind and try to track down possible culprits.