Too many sockets?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris

    Too many sockets?

    Hi All,

    I am trying to write a script to check the HTTP response code for a
    largish database of URLs (some 12,000 sites). I have tried a couple of
    third party classes such as Snoopy and URLHelper which allow me to
    feed in a URL and should return the response header. The problem I am
    getting is that the script will not handle more than about 30 URLs.
    Any more than that an it just fails.

    Reading around a little suggests that I am running up against a limit
    set for the number of open sockets in Linux (I don't know very much
    about Linux I'm afraid), however, as each URL is checked, the socket
    *should* be closed by the fclose() call within the third party stuff.

    Can anyone shed any light as to what may be going on or perhaps
    suggest a way that I could monitor how many sockets are being opened.,
    Alternatively can anyone suggest another way that I might be able to
    check these links?

    Many tia

    Chris

  • CJ Llewellyn

    #2
    Re: Too many sockets?

    "Chris" <chris.stephens @nez.oc.ku> wrote in message
    news:qh7mi0l5m7 1nf6ro0v1rbgfv7 mkbor8b52@4ax.c om...[color=blue]
    > Hi All,
    >
    > I am trying to write a script to check the HTTP response code for a
    > largish database of URLs (some 12,000 sites). I have tried a couple of
    > third party classes such as Snoopy and URLHelper which allow me to
    > feed in a URL and should return the response header. The problem I am
    > getting is that the script will not handle more than about 30 URLs.
    > Any more than that an it just fails.
    >
    > Reading around a little suggests that I am running up against a limit
    > set for the number of open sockets in Linux (I don't know very much
    > about Linux I'm afraid), however, as each URL is checked, the socket
    > *should* be closed by the fclose() call within the third party stuff.
    >
    > Can anyone shed any light as to what may be going on or perhaps
    > suggest a way that I could monitor how many sockets are being opened.,
    > Alternatively can anyone suggest another way that I might be able to
    > check these links?[/color]

    I'd have tought that the script would be timing out. You really should do
    this in a program that isn't running interactively and in a language that
    will support threading/multitasking. i.e. Java.




    Comment

    Working...