Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

All programmers are playwrights and all computers are lousy actors.


devel / comp.lang.python / Re: Question about garbage collection

SubjectAuthor
o Re: Question about garbage collectionBarry

1
Re: Question about garbage collection

<mailman.85.1705444643.15798.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24897&group=comp.lang.python#24897

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.samoylyk.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: Question about garbage collection
Date: Tue, 16 Jan 2024 22:37:05 +0000
Lines: 18
Message-ID: <mailman.85.1705444643.15798.python-list@python.org>
References: <36df3ecc-7970-453d-8507-3ff8316c28ca@chagford.com>
<D0F6FC52-8A46-47F4-9ABD-B769A0F61E24@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 9OnRWUlqAMCEA8JeKjUdmAruaBScNAcIVAL8JHCKQ5tQ==
Cancel-Lock: sha1:79b6RQRzc1RQggUyiibMdjww7PI= sha256:t8Kz7RmLlt0Eiq00SJywXSGXdNDCMuJwu1gW0bnD6Qs=
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.012
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'cc:addr:python-list':
0.09; 'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'cc:no real name:2**0': 0.14; 'barry': 0.16; 'delta': 0.16;
'from:addr:barrys-emacs.org': 0.16; 'message-id:@barrys-
emacs.org': 0.16; 'millman': 0.16; 'wrote:': 0.16; 'problem':
0.16; 'subject:Question': 0.19; 'cc:addr:python.org': 0.20;
'cc:2**0': 0.25; 'object': 0.26; 'leave': 0.27; 'objects': 0.32;
'python-list': 0.32; 'header:In-Reply-To:1': 0.34; 'track': 0.35;
'count': 0.36; 'quite': 0.39; 'use': 0.39; 'reference': 0.60;
'down': 0.64; 'increasing': 0.64; 'received:217': 0.67; '2nd':
0.70; 'easy': 0.74; 'type.': 0.84
In-Reply-To: <36df3ecc-7970-453d-8507-3ff8316c28ca@chagford.com>
X-Mailer: iPad Mail (21C62)
X-GND-Sasl: barry@barrys-emacs.org
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://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: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <D0F6FC52-8A46-47F4-9ABD-B769A0F61E24@barrys-emacs.org>
X-Mailman-Original-References: <36df3ecc-7970-453d-8507-3ff8316c28ca@chagford.com>
 by: Barry - Tue, 16 Jan 2024 22:37 UTC

> On 16 Jan 2024, at 12:10, Frank Millman via Python-list <python-list@python.org> wrote:
>
> My problem is that my app is quite complex, and it is easy to leave a reference dangling somewhere which prevents an object from being gc'd.

What I do to track these problems down is use gc.get_objects() then summerize the number of each type. Part 2 is to print the delta after an interval of a 2nd summary.
Leaks of objects show up as the count of a type increasing every time you sample.

Barry

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor