Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi all

When running multiple HTTP requests via LWP, I occasionally get this error: select failed: no child processes. If I catch the error, and wait a little, I can repeat the request successfully.

The code from LWP::Protocol::http which throws this error is this:

269 SELECT: 270 { 271 my $nfound = select($rbits, $wbits, undef, $se +l_timeout); 272 if ($nfound < 0) { 273 if ($!{EINTR} || $!{EAGAIN}) { 274 if ($time_before) { 275 $sel_timeout = $sel_timeout_before + - (time - $time_before); 276 $sel_timeout = 0 if $sel_timeout < + 0; 277 } 278 redo SELECT; 279 } 280 die "select failed: $!"; 281 } 282 }

It seems I am running into some system limit, but I can't figure out which. ulimit -a on this (linux) system outputs this:

core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 27968 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 16384 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 27968 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited

And the limits as reported by BSD::Resource are as follows:

RLIMIT_CPU : -1 RLIMIT_OPEN_MAX : 16384 RLIMIT_LOCKS : -1 RLIMIT_VMEM : -1 RLIMIT_FSIZE : -1 RLIMIT_STACK : 10485760 RLIMIT_MEMLOCK : 32768 RLIMIT_NOFILE : 16384 RLIMIT_DATA : -1 RLIMIT_NPROC : 27968 RLIMIT_OFILE : 16384 RLIMIT_AS : -1 RLIMIT_CORE : 0 RLIMIT_RSS : -1

Any ideas what I can change to get around this?

thanks

Clint


In reply to No child processes - system limit? by clinton

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (5)
    As of 2019-12-07 16:09 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Strict and warnings: which comes first?



      Results (162 votes). Check out past polls.

      Notices?