Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Excessive UserAgent/Request memory usage.

by saucepan (Scribe)
on Dec 09, 2000 at 00:29 UTC ( [id://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.

    Cheers,

    Mike.

Log In?
Username:
Password:

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

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

    No recent polls found