Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: memory not freed after perl exits. Solaris.

by mjscott2702 (Pilgrim)
on Nov 23, 2010 at 12:48 UTC ( #873198=note: print w/ replies, xml ) Need Help??


in reply to Re: memory not freed after perl exits. Solaris.
in thread memory not freed after perl exits. Solaris.

You can use the "top" command to check for zombies, in case your program is leaving orphaned processes around once it exits - just run it before and after, and see if the zombie count increases.


Comment on Re^2: memory not freed after perl exits. Solaris.
Re^3: memory not freed after perl exits. Solaris.
by salva (Abbot) on Nov 23, 2010 at 12:58 UTC
    zombie processes are reaped by the init process as soon as the main process exits so in practice it is impossible to have orphaned zombie processes!
      OK, I probably didn't use the best terminology there. Semantics aside, my point was that the "top" command would allow the user to see if the program was creating zombies in the first place, and hopefully help to debug the issue. Thanks for "clarifying" things and providing valuable pointers.....

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-12-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls