Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 avoiding work at the Monastery: (10)
As of 2014-09-17 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (68 votes), past polls