niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Not Unix » VMS » vmsperl
How to find memory leak?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Thomas Pfau
*nix forums beginner


Joined: 02 Dec 2005
Posts: 7

PostPosted: Fri Feb 24, 2006 11:30 pm    Post subject: How to find memory leak? Reply with quote

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
Craig A. Berry
*nix forums Guru Wannabe


Joined: 27 May 2005
Posts: 143

PostPosted: Sat Feb 25, 2006 12:31 am    Post subject: Re: How to find memory leak? Reply with quote

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
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Wed Dec 03, 2008 1:41 am | All times are GMT
navigation Forum index » Not Unix » VMS » vmsperl
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts postfix out of memory error - please help metind Postfix 0 Mon Sep 11, 2006 1:54 am
No new posts Non IBM memory in p630 Ron AIX 0 Fri Jul 21, 2006 2:05 pm
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Where is this code not freeing memory ? jithoosin C++ 2 Fri Jul 21, 2006 9:39 am
No new posts Where is this code not freeing memory ? jithoosin C++ 1 Fri Jul 21, 2006 9:27 am

Remortgages | Car Finance | Synchronization fast and easy | Personal Loans | Western Union Money Transfer
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
[ Time: 0.1815s ][ Queries: 16 (0.1124s) ][ GZIP on - Debug on ]