473,473 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Decent way to trace resource leaks?

-----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
0 957

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Binney | last post by:
My code makes synchronous HttpWebRequest and HttpRebResponse calls. In VS 2003, I am getting memory leaks and event handle leaks. I am closing all streams and using "using"statements. I have...
2
by: Generic Usenet Account | last post by:
I have been using STL for a long time now, without any problems. Recently we generated a purification report on our software using Rational Purify, and we found some memory leaks. My colleague...
10
by: Niall | last post by:
I'm not quite sure which groups to post this to, so short of a massive crosspost, I decided on these two. I am running into troubles with resource usage of our app on Win2k and above systems. In...
5
by: Barry Anderberg | last post by:
I'm using a tool by Sci-Tech called the .NET Memory Profiler. We have a massive .NET/C# application here and it has been exhibiting memory leak behavior for some time. Attempting to remedy the...
4
by: Nick | last post by:
hi, all In c#, we know it has garbage collection. I am think is there anyway we can know an exe, how many thread in this exe, when the memory gets allocated, and when it gets destoryed. Becuase I...
1
by: Chuck Bohling | last post by:
Anyone know how to get a stack trace from a C++ exception? I'm using unmanaged C++.
6
by: W. Jordan | last post by:
Hello there, Are there anybody who is using the XslCompiledTransform that comes with .net framework, which was said to be a replacement of the XslTransform class? I found that the class has...
5
by: Daniel | last post by:
Hey guys When you hook an event (c# 2.0 syntax): myEvent += MyMethodToFire; You need to also unsubscribe it to avoid a resource leak so that the object it is in gets garbage collected like so...
2
by: Rick Mavrovik | last post by:
hi one of the pages in my asp.net application is taking very long to load. i want find out what is causing the problem. its probably ajax. i am not finding the asp.net trace any useful, i mean i...
1
by: Florence Tissot | last post by:
We are seeing some kind of resource leak in our performance lab running an ASP.NET (2.0) application that sends and receives messages from 2 public MSMQ queues. Here's a brief summary of what are...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.