Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: memory leak with perl ithreads

by zwon (Monsignor)
on Apr 03, 2011 at 11:17 UTC ( #897179=note: print w/ replies, xml ) Need Help??


in reply to memory leak with perl ithreads

If you search for "thread leak" on perlmonks, you find the answer, the problem was discussed many times here. Shortly, on *nix perl threads leaking memory every time you creating a new thread. The bug was fixed somewhere around 5.13.9 if I remember correctly.

You should not create many threads, thread creation is rather expensive operation (on *nix it is more expensive than fork, I'm talking about perl threads of course). Solution is to use pool of threads.


Comment on Re: memory leak with perl ithreads
Replies are listed 'Best First'.
Re^2: memory leak with perl ithreads
by Anonymous Monk on Apr 03, 2011 at 11:25 UTC
      Yes, win is not affected

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-07-28 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls