pg,

I have done a whole bunch of testing. All with perl 5.8 under both linux and win2k,usually one as the client and the other as the server.

I've used my code, and your first code above. You're right, everything is working fine at 100. The hard stop seems to be at 110. Or actually it might be 113.

With win2k as the server, I get all kinds of 'connection refused' errors. Of course then I get all kinds of errors. Sometimes it has seemed to help to set Listen=>50 or something higher anyway. .

With linux as the server and generating 120 clients from win2k, all connections seem to occur, however only the first 110 clients ever talk. I read some where that under windows there is a main thread and a thread for 'use threads' and a thread for 'use threads::shared'. Those 3 plus the 110 clients that talk = 113.

Throughout the other various test I have run, the numbers 110 or 113 keep cropping up as the limits. So apparently there is something built in that I cannot control as far as the number of simultaneous connections goes.

Of course this is very discouraging as I will now need to look around for another language to use to get a stress tester built. It pains me as I promote perl around here and now I'm not looking too good on this one. :-(

If you have any other ideas that I can try, please let me know. I have even tried using arrays of IO::Select objects without threading, no go.

Thanks for all your help!!

Joel


In reply to Re: Re: thread failed to start? by Anonymous Monk
in thread thread failed to start? by noslenj123

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, details, 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, summary, 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.