Note that it's still possible (at least with mod_jk) to get this error if there's a problem with the server and some of the JBoss/Jetty threads are "stuck" (e.g. on a DB lock) - Apache will eventually reuse the process but the Jetty thread may not have been returned to the pool.
I don't know about limits in Apache 2.x
Hope that helps,
-Andrew
Peter Luttrell wrote:
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.
------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user