Performance issues with LWP?
From: Prabh (Prab_kar_at_hotmail.com)
Date: 03/29/04
- Next message: Geoff Cox: "Re: how to capture multiple lines?"
- Previous message: Walter Roberson: "Re: cpu use in threads"
- Next in thread: John Bokma: "Re: Performance issues with LWP?"
- Reply: John Bokma: "Re: Performance issues with LWP?"
- Reply: Mahesha: "Re: Performance issues with LWP? (off-topic?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2004 10:31:06 -0800
Hello all,
In my task I need to check if the web server at a known URL is up and
available. If its not, I need to send a mail to the system admins that
the server is down and if its available then get the URL's contents.
The simplest way I could think of doing this was with LWP.
use LWP::Simple ;
my $chkUrl = get("http://abc.xyz.com");
if ( ! $chkUrl )
{
&mail_the_Admins_the_server_is_down() ;
die "Cant connect: Check the URL or the Server is down\n" ;
} else {
&do_some_prcessing_here() ;
}
I've now been told this strategy might cause "abc.xyz.com" to take a
performance hit, as every time this check is run, it would be pinging
the server and will cause performance issues.
Is there any way I could check if the web server is up or not, without
causing any performances issues?
Thanks for your time,
Prab
- Next message: Geoff Cox: "Re: how to capture multiple lines?"
- Previous message: Walter Roberson: "Re: cpu use in threads"
- Next in thread: John Bokma: "Re: Performance issues with LWP?"
- Reply: John Bokma: "Re: Performance issues with LWP?"
- Reply: Mahesha: "Re: Performance issues with LWP? (off-topic?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|