Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Perl Memory problem ...

by Corion (Patriarch)
on May 13, 2020 at 17:35 UTC ( [id://11116762]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Memory problem ...
in thread Perl Memory problem ...

Most likely, your problem lies somewhere else as here you clean out the variables you create locally.

Take a look at Devel::Cycle and/or Devel::LeakTrace and Devel::FindRef to see where your program is collecting memory. Ideally, you can eliminate all server/client interaction and use a faked client message in a loop to reproduce the problem.

You might want to change the coding style from

our $nick = $clients{$ident}->{nick};

... to

my $nick = $clients{$ident}->{nick};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found