Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48228

Re: Debugging memory leaks

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 <rosuav@gmail.com>
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 <b5e9b36f-2a1b-44fa-b004-033661b9756a@lr16g2000pbb.googlegroups.com>
References <09917103-b35e-4728-8fea-bcb4ce2bd1af@googlegroups.com> <mailman.3165.1371104977.3114.python-list@python.org> <slrnkrkacg.2u4.giorgos.tzampanakis@brilliance.eternal-september.org> <b5e9b36f-2a1b-44fa-b004-033661b9756a@lr16g2000pbb.googlegroups.com>
Date Sat, 15 Jun 2013 10:11:09 +1000
Subject Re: Debugging memory leaks
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3341.1371255072.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Fri, Jun 14, 2013 at 11:53 PM, rusi <rustompmody@gmail.com> wrote:
> On Jun 14, 1:15 am, Giorgos Tzampanakis
> <giorgos.tzampana...@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Debugging memory leaks writeson <doug.farrell@gmail.com> - 2013-06-12 18:24 -0700
  Re: Debugging memory leaks dieter <dieter@handshake.de> - 2013-06-13 08:29 +0200
    Re: Debugging memory leaks Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-13 20:15 +0000
      Re: Debugging memory leaks Steve Simmons <square.steve@gmail.com> - 2013-06-13 22:45 +0100
      Re: Debugging memory leaks Chris Angelico <rosuav@gmail.com> - 2013-06-14 08:36 +1000
      Re: Debugging memory leaks Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-14 02:40 +0000
        Re: Debugging memory leaks Chris Angelico <rosuav@gmail.com> - 2013-06-14 19:30 +1000
        Re: Debugging memory leaks Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-14 22:57 +0000
          Re: Debugging memory leaks Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-15 01:39 +0000
        Re: Debugging memory leaks dieter <dieter@handshake.de> - 2013-06-15 08:52 +0200
        Re: Debugging memory leaks Chris Angelico <rosuav@gmail.com> - 2013-06-15 17:21 +1000
        Re: Debugging memory leaks dieter <dieter@handshake.de> - 2013-06-16 08:18 +0200
      Re: Debugging memory leaks rusi <rustompmody@gmail.com> - 2013-06-14 06:53 -0700
        Re: Debugging memory leaks Chris Angelico <rosuav@gmail.com> - 2013-06-15 10:11 +1000
        Re: Debugging memory leaks Ben Finney <ben+python@benfinney.id.au> - 2013-06-15 10:16 +1000
          Re: Debugging memory leaks rusi <rustompmody@gmail.com> - 2013-06-14 20:16 -0700
            Re: Debugging memory leaks Ben Finney <ben+python@benfinney.id.au> - 2013-06-15 21:23 +1000
              Re: Debugging memory leaks rusi <rustompmody@gmail.com> - 2013-06-15 04:35 -0700
                Re: Debugging memory leaks Chris Angelico <rosuav@gmail.com> - 2013-06-15 21:54 +1000
  Re: Debugging memory leaks writeson <doug.farrell@gmail.com> - 2013-06-13 11:07 -0700
    Re: Debugging memory leaks Dave Angel <davea@davea.name> - 2013-06-13 14:44 -0400
  Re: Debugging memory leaks rusi <rustompmody@gmail.com> - 2013-06-14 05:36 -0700
  Re: Debugging memory leaks "Frank Millman" <frank@chagford.com> - 2013-06-21 08:50 +0200

csiph-web