http://qs1969.pair.com?node_id=45787


in reply to Excessive UserAgent/Request memory usage.

I don't know how much this might help, but one trick I've used to see who is gobbling memory is to add some lines like this in strategic places: warn "About to initialize Foo::Bar\n"; sleep(8);

Then when you see this message you can quickly run ps in another window to see if the process has swollen up yet. By moving these lines around you can home in on the problem code.

I'm pretty sure there's a more elegant way of doing this, but this brute force technique has done it for me every time (so far).

Replies are listed 'Best First'.
Re: Excessive UserAgent/Request memory usage.
by Anonymous Monk on Dec 09, 2000 at 19:04 UTC
    Ta, saucey.

    It's definitely happening inside the API call; there's already enough debugging output in there to be sure of that.

    I guess I was hoping for a "You fool! You're passing the <blah> not a reference to it!" type response.

    I suppose it's time to approach the package author. Thanks for letting me run it past you guys first, anyway. I'll let you know what happens.

    Cheers,

    Mike.