Each of our servers handles roughly 50k jsp pages + 450k other files
each day. We're using JBoss3.2.1 + Jetty 4.2.9.

Does anyone have a recommendation as to how many threads we should allow
Jetty to have? We've got it currently set to the default (100), but
periodicly we're running out of threads with the following error messages:

=2003-11-10 11:48:52,143 [Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]] WARN [jbossweb] WARNING: No thread for Socket[addr=/127.0.0.1,port=48196,localport=8080]

(We're proxing through apache which is running on each machine, incase
you're wondering why it's 127.0.0.1.)

Here's the configuration we're using:

<attribute name="ConfigurationElement">
     <Configure class="org.mortbay.jetty.Server">

      <Call name="addListener">
        <Arg>
         <New class="org.mortbay.http.SocketListener">
           <Set name="Port"><SystemProperty name="jetty.port"
default="8080"/></Set>
           <Set name="MinThreads">10</Set>
           <!-- <Set name="MaxThreads">100</Set> -->
           <Set name="MaxThreads">100</Set>
           <Set name="MaxIdleTimeMs">30000</Set>
           <Set name="LowResourcePersistTimeMs">5000</Set>
         </New>
        </Arg>
      </Call>
......


thanks. .peter




---------- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder. Thank you.

Reply via email to