Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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...
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 surveying the Monastery: (5)
As of 2014-12-22 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (110 votes), past polls