process growing without limit

Discussion in 'Perl Misc' started by Yakov, Nov 9, 2007.

  1. Yakov

    Yakov Guest

    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
     
    Yakov, Nov 9, 2007
    #1
    1. Advertising

  2. Yakov

    Ben Morrow Guest

    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
     
    Ben Morrow, Nov 11, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mahesh Prasad
    Replies:
    1
    Views:
    712
    Tom Wells
    Feb 22, 2004
  2. Hoon
    Replies:
    1
    Views:
    489
    John Timney \(Microsoft MVP\)
    Jul 3, 2003
  3. Adam Warner
    Replies:
    13
    Views:
    862
    Patricia Shanahan
    Mar 28, 2006
  4. Replies:
    1
    Views:
    1,089
    Victor Bazarov
    Jun 28, 2005
  5. Jens Axel Søgaard
    Replies:
    25
    Views:
    249
Loading...

Share This Page