|
|
|
|
|
|
| Author |
Message |
Craig A. Berry *nix forums Guru Wannabe
Joined: 27 May 2005
Posts: 143
|
Posted: Sat Feb 25, 2006 12:31 am Post subject:
Re: How to find memory leak?
|
|
|
At 6:30 PM -0500 2/24/06, Thomas Pfau wrote:
| Quote: | What facilities are in perl to debug memory allocation issues?
|
You can run your script with the memory debug option enabled:
$ perl -"Dm" myscript.pl
That will log the memory allocations and deallocations, at least when
Perl's memory API is used.
--
________________________________________
Craig A. Berry
mailto:craigberry@mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser |
|
| Back to top |
|
 |
Thomas Pfau *nix forums beginner
Joined: 02 Dec 2005
Posts: 7
|
Posted: Fri Feb 24, 2006 11:30 pm Post subject:
How to find memory leak?
|
|
|
I wrote a script that was supposed to monitor certain system conditions
and email me if things weren't right. It ran for about 18 hours and
died complaining about no memory. I'm using a couple of VMS modules -
VMS::Device and VMS::Queue - and suspect one or the other (or both) is
leaking memory. I seem to recall Dan Sugalski's comments stating that
there might be some leaks.
I've done a little XS but not enough to understand all of the reference
counting issues. What facilities are in perl to debug memory allocation
issues?
--
tom_p
pfau@nbpfaus.net -- http://nbpfaus.net/~pfau/ |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 10:42 am | All times are GMT
|
|
Mobile Phones | Western Union | Loans | Mortgages | Loan
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|