Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: how much memory each Perl variable uses

by Anonymous Monk
on Sep 08, 2009 at 20:01 UTC ( #794212=note: print w/replies, xml ) Need Help??


in reply to how much memory each Perl variable uses

Ignoring the more useful question about debugging, might this be your root problem?
memory consumption
  • Comment on Re: how much memory each Perl variable uses

Replies are listed 'Best First'.
Re^2: how much memory each Perl variable uses
by amir_e_a (Hermit) on Sep 08, 2009 at 20:15 UTC

    I didn't exactly understand which problem are you referring to, but the comments there give me a couple of ideas for slightly easier debugging, so thanks for that. For example, maybe i'll try to use less global variables.

    However, unlike the program described there, this is a static analyzer - it is not designed to run continually, but to process a dump and that's all. The trouble is that with MediaWiki dumps that have several tens of thousands of pages the program runs out of memory and never finishes processing the whole dump. (FWIW this machine has 2 GB of RAM.)

    So the problem is probably not the same and my question still stands - is there a way to inspect all the variables of a program and the modules that it uses and find out their memory consumption?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://794212]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-01-18 13:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?