Performance issues with LWP?

From: Prabh (Prab_kar_at_hotmail.com)
Date: 03/29/04


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



Relevant Pages

  • Weird "From:" Address
    ... I'm using Outlook 2000 SP-3 on a computer with XP home edition and one ... with Windows 98. ... address on our web server on behalf of whoever actually sent it. ... annoying and I'm concerned about what might be causing it. ...
    (microsoft.public.outlook.general)
  • Form Submission Problem
    ... I have recently upgraded my web server to Windows 2003 and have started ... I have absolutely no idea what is causing this and would appreciate any help ... David ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Form Submission Problem
    ... I have recently upgraded my web server to Windows 2003 and have started ... I have absolutely no idea what is causing this and would appreciate any help ... David ...
    (microsoft.public.inetserver.iis)
  • Form Submission Problem
    ... I have recently upgraded my web server to Windows 2003 and have started ... I have absolutely no idea what is causing this and would appreciate any help ... David ...
    (microsoft.public.windows.server.general)
  • Re: [FrontPage Save Results Component]
    ... That is because you need to view the page with the form on a web server with ... If you're using XP Pro and you have installed IIS and FPSE, ... > Any idea what is causing this? ...
    (microsoft.public.frontpage.client)