in reply to Re: Re: Re: Memory Use and/or efficiency passing scalars to subs
in thread Memory Use and/or efficiency passing scalars to subs
I noticed I was not always receieving what I exptected from Get() on any given address. After taking a closer look I saw that I was getting DNS errors, timeouts from the site itself, etc. So, I started logging these and it soon became apparent that at least part (if not most) of the problem in taking too long was related to the Get() operations and/or just accessing the site itself.
I certainly appreciate the tip and advice on using LWP::Parallel::UserAgent. I will look into it. I have so much to learn about Perl; what started as some simple scripting is growing rapidly, as does my sense of confusion from time to time ;-)
I am sure I will run down the wrong rat-hole many more times!
Also, regarding the DOS attack issue: that is certainly something I DO NOT want to do, the script MUST play nice. Currently, I really don't want to hit the servers more than a couple of times a second.
Any tips on how I can monitor how hard I'm hitting a server?
BTW: I am "reasonably" certain that the timeout messages I received from the servers were not from me hitting them too hard. My sanity check was to stop the script, bring up IE and enter the URL. I got the same message "Timeout on your request" or something like that. After waiting a few minutes it worked. So, I am just assuming the server itself was too busy.
Does that seem reasonable?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Memory Use and/or efficiency passing scalars to subs
by knexus (Hermit) on Aug 31, 2003 at 15:12 UTC | |
by tachyon (Chancellor) on Sep 01, 2003 at 00:42 UTC |