Downloading 1,000,000 webpages with perl

That is the task at hand.  We have a VERY large list of pages to download, and several servers at our disposal to help download them all.  We have access to four dual-processor linux boxes.

Currently, we're using the LWP::UserAgent to fetch the pages, and Sys::AlarmCall (a wrapper module around SIGALARM) to monitor each fetch in case it timesout improperly.

However, this doesn't always seem to work, and sometimes, the SIGALARM fails and the page request continues for a very long time.  Sometimes, it even seems to cause the process to be halted.  

Does anyone have experience with such a project?  What tools/strategies did you employ?  How did you handle requests that timed out?
brgordonAsked:
Who is Participating?
 
MoondancerCommented:
I refunded 300 points to you for this question and closed it today.  Sorry for the delay.
Moondancer - EE Moderator
0
 
ahoffmannCommented:
is this a duplicate question? please delete it.
0
 
maneshrCommented:
brgordon,

Did you get a solution you were looking for?

What solution, if any, did you use?

Your response in finalizing this question is appreciated.

Thanks,
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
brgordonAuthor Commented:
maneshr,

I did receive a solution in Perl, however, my final solution was to switch to Java (better thread handling).
Perl's SIGALARM is not reliable enough, and only one is allowed per system.

any other questions, let me know.

cheers,
Brett
0
 
brgordonAuthor Commented:
maneshr,

Sorry, somehow this question got posted twice. ahoffman has already answered it.

Brett
0
 
brgordonAuthor Commented:
This question was already posted, but somehow, got posted twice.  I have already accepted an answer from ahoffman concering the question.  Please delete this copy.

THanks,
Brett
0
 
maneshrCommented:
brgordon,

"..Please delete this copy...."

You can delete the question yourself. If you do not know how to delete it, then please post your request, with the URL of this question to "Community Support" (http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.