process growing without limit

process growing without limit

am 09.11.2007 18:55:20 von Yakov

I have a perl daemon that grows without limit. The code is large and
written by different people.

I believe that some hash or array grows without limit there. I don't
think there are cyclic refs anywhere in the code. I'd like to use some
tool to catch it.

It would help me it I had a function FindLargeHashOrArray($N) which
would go over *all* hashes and arrays in *all* modules, and show me
hashes and arrays which have more than $N elements.

Is it possible ?

Thanks
Yakov

Re: process growing without limit

am 11.11.2007 21:50:41 von Ben Morrow

Quoth Yakov :
> I have a perl daemon that grows without limit. The code is large and
> written by different people.
>
> I believe that some hash or array grows without limit there. I don't
> think there are cyclic refs anywhere in the code. I'd like to use some
> tool to catch it.
>
> It would help me it I had a function FindLargeHashOrArray($N) which
> would go over *all* hashes and arrays in *all* modules, and show me
> hashes and arrays which have more than $N elements.

You may have some luck with Devel::Leak or Devel::Cycle.

Ben