By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Decent way to trace resource leaks?

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've written a fairly complex application [1] that runs under Windows XP
with ActiveState Python. I'm reasonably sure that I'm freeing all allocated
resources, but my process seems grow slowly but steadily over time. Worse,
my network administrator seems to think that it's locking network resources
and not freeing them, and while I don't *think* that's the case, I can't be
certain.

Ideally, I'd like to find a way to dump the process's object hierarchy to
the screen or a file in a tree or graph format. Even without variable
names, it'd be tremendously helpful to see that there are 87 instances of
Foo objects, each with 20 Bar objects as data members. Although I'm running
the application on Windows, I'm doing all development on a Linux system
(using Subversion to synchronize source trees across machines, in case
anyone is interested), so I'd prefer something native to Python and not a
Windows-specific GUI debugger.

[1] Said application implements a SOAP interface to Microsoft Access and
FoxPro databases so that the Unix applications I'm writing can query those
systems.
- --
Kirk Strauser
The Strauser Group
Open. Solutions. Simple.
http://www.strausergroup.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAX2Aw5sRg+Y0CpvERArOaAJ4/VdLdqLZzetF4pIu/Gb43vCIX7QCfZq+X
leYooXAV4mW29af/tCcGCp0=
=Kl5V
-----END PGP SIGNATURE-----
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.