Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; '(except': 0.07; 'advice?': 0.09; 'restart': 0.09; 'runs': 0.10; 'windows': 0.15; '(either': 0.16; 'boxes)': 0.16; 'done).': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle,': 0.16; 'it;': 0.16; 'leaks': 0.16; 'reboot': 0.16; 'retains': 0.16; 'stuff.': 0.16; 'apps': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'bit': 0.19; 'app': 0.19; 'working.': 0.19; 'memory': 0.22; 'browsers': 0.24; 'tend': 0.24; 'typical': 0.24; 'visible': 0.24; 'fairly': 0.24; "i've": 0.25; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'bunch': 0.31; 'container': 0.31; 'ok.': 0.31; 'yesterday.': 0.31; 'weeks': 0.32; 'run': 0.32; 'quite': 0.32; 'linux': 0.33; 'running': 0.33; 'ago': 0.33; 'fri,': 0.33; 'style': 0.33; 'maybe': 0.34; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'two': 0.37; 'server': 0.38; 'stable': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'expect': 0.39; 'extremely': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'most': 0.60; 'full': 0.61; 'such': 0.63; 'more': 0.64; 'laptop': 0.65; 'hours': 0.66; 'close': 0.67; 'believe': 0.68; 'flash': 0.69; 'commercial': 0.71; 'browsers,': 0.84; 'different.': 0.84; 'fortunately': 0.84; 'history,': 0.84; 'leak': 0.84; 'plugins': 0.84; 'terrible': 0.84; 'forever.': 0.91; 'rusi': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AzJefsDYzPhTY1Evo+5Ci3KsTmRks9mFO3Uc4vPxUlQ=; b=jN9QOTzBfoqh7rl1R3VjrULX6n6ejAZAYsK2w/7+HuTry/JS2xj6I0/Zbh+I+l5TBK fNt1Eh69QvE4k2FWC+pLCFGBcpTzSPWNjfQTBJxfazlm2Eww9gZJGWM2GmaaNMBuBIn4 HiDL4hqZORHkp6PAXJnKWNbMhC9qEbq7ZszTBo+0UMToqLCGyIMR4bwdXEDSLIV4Gjml pXyR5oSiSSyHx/cXUzAHCCp6aSgx0uAV7yP6UeslgfHBBN5OvTZSEpwhfXTtRAE7wHB7 PTgXD0EmJQ8kj7zUx8gmNJdOSXQo7XF2ROmkIAMADleiM3hH/NL3b72+4MD2eBTwNVxx a7Jg== MIME-Version: 1.0 X-Received: by 10.52.65.238 with SMTP id a14mr1376143vdt.24.1371255069316; Fri, 14 Jun 2013 17:11:09 -0700 (PDT) In-Reply-To: References: <09917103-b35e-4728-8fea-bcb4ce2bd1af@googlegroups.com> Date: Sat, 15 Jun 2013 10:11:09 +1000 Subject: Re: Debugging memory leaks From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371255072 news.xs4all.nl 15883 [2001:888:2000:d::a6]:52526 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48228 On Fri, Jun 14, 2013 at 11:53 PM, rusi wrote: > On Jun 14, 1:15 am, Giorgos Tzampanakis > wrote: >> Am I the only one who thinks this is terrible advice? > > I would expect a typical desktop app to run for a couple of hours -- > maybe a couple of days. > Living with a small (enough) leak there may be ok. > [In particular I believe that most commercial apps will leak a bit if > run long enough] > > The case of something server-ish is quite different. > A server in principle runs forever. > And so if it leaks its not working. I keep my clients running for months. My Windows laptop (let's not even get started on my Linux boxes) got rebooted a few weeks ago (can't remember why), but I've had it running for two months or more at a time. And that's Windows XP, not the most stable OS ever invented, and a computer that's used fairly constantly - two web browsers, a MUD client that retains full history, music/movie playing with VLC, SciTE, IDLE, BitTorrent, and a bunch of other stuff. And I don't reboot it; I don't even restart applications if I can help it (except VLC, I tend to close that when I'm done). Any memory leak in any of the apps I use would be highly visible and extremely annoying; and there *were* such leaks in the Flash players of yesterday. Fortunately now I can leave browsers running constantly. (Either that, or the plugins container gets restarted. Not sure.) Just because it's a client doesn't mean it can't be treated seriously. :) Of course, my style IS unusual. Most people don't do what I do. ChrisA