Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Excessive UserAgent/Request memory usage.

by saucepan (Scribe)
on Dec 09, 2000 at 00:29 UTC ( #45787=note: print w/replies, xml ) Need Help??

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.



Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-03-29 03:19 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (70 votes). Check out past polls.