Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl threads memory leak with socket and solutions I tried...

by jettero (Monsignor)
on Feb 10, 2010 at 02:01 UTC ( #822332=note: print w/ replies, xml ) Need Help??


in reply to Perl threads memory leak with socket and solutions I tried...

You'll never get this to work right. Consider use forks or building some long running worker threads. Ultimately you'll never really be happy with threads in Perl (just a guess). Some people use them. Another option is Coro. Might be better.

-Paul


Comment on Re: Perl threads memory leak with socket and solutions I tried...
Replies are listed 'Best First'.
Re^2: Perl threads memory leak with socket and solutions I tried...
by ilxl (Initiate) on Feb 10, 2010 at 09:30 UTC
    Thanks. I tried forks. When I start the program, it will create 2 processes. One of the process, the child process, still has memory leak problem, although the memory increases very slowly.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-07-29 01:47 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 (260 votes), past polls