Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 99414 invoked from network); 7 Oct 2010 16:59:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Oct 2010 16:59:54 -0000 Received: (qmail 98951 invoked by uid 500); 7 Oct 2010 16:59:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98793 invoked by uid 500); 7 Oct 2010 16:59:50 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 98784 invoked by uid 99); 7 Oct 2010 16:59:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 16:59:50 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of robatgumtree@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-iw0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Oct 2010 16:59:42 +0000 Received: by iwn38 with SMTP id 38so88139iwn.18 for ; Thu, 07 Oct 2010 09:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=kmqob+H1zSl/rEPjiH9IiOSGKwTZCckGLonqBtXEClQ=; b=RpSpjMp2m1pJVVCQUjTu5N0WvZDujsVRk4KjsboCKmFdGTxmp6aTlFvg3gPXDB5plC NfUNIUCKhMEvlqzHnKdf0amjfLjOHUHwiz2XI2yDphWLkt9V3YoSUlvu2RKjjWfg49gB WZLc5OfRQYSATY6YUGvdn5YWq7RUEZE2S3zSk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rBqS4czEPh6Y6OC8cT2QV0xf7rVMdTjc4enMbfmD2yV+xq0ey0WtyAa3W9z+dpPGx5 cpreZamVWQf9u9mvZxkuXQsoCvEqZ5FoTvFAAIG27YLtG/i4d/X9hapttIJlfvQfNibi EBCvdy53NWTGq1h5NKRJVbi6N8ugXrz8TV/pY= MIME-Version: 1.0 Received: by 10.231.59.15 with SMTP id j15mr1112634ibh.172.1286470761404; Thu, 07 Oct 2010 09:59:21 -0700 (PDT) Received: by 10.231.46.130 with HTTP; Thu, 7 Oct 2010 09:59:21 -0700 (PDT) Date: Thu, 7 Oct 2010 17:59:21 +0100 Message-ID: Subject: Error 503 ocurring when server under load From: Rob G To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hey all, Recently migrated a production site (mixture of Servlets and JSPs) from Oracle Application Server to Apache/Tomcat. Since then we have seen numerous HTTP Error 503 - Service unavailable errors at peak times when site is under load. mod_jk.log has the following error message(s): [2184:1952] [error] jk_lb_worker.c (1473): All tomcat instances failed, no more workers left I'm looking for help in trying to tweak settings to prevent this, or confirmation that I've configured the setup correctly. Many thanks Rob Platform: Windows Server 2003 SP2 Setup: Two tomcat instances with a single Apache front end, all on the same server Versions Tomcat: 6.0.24 Apache: 2.2.16 mod SSL: 2.2.16 Open SSL: 0.9.8 mod_JK:1.2.30 Conf: httpd.conf: JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel error JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" AllowOverride None deny from all JkMount /examples balancer JkMount /examples/* balancer JkMount /App1/* balancer JkMount /App2/* balancer Workers.properties: workers.tomcat_home="C:\tomcat1" workers.java_home="C:\Program Files\Java\jdk1.6.0_18" ps=\ # Define workers #worker.list=worker1,worker2 worker.list=balancer # Set properties for worker worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=1 worker.worker1.cachesize=10 worker.worker1.connection_pool_timeout=300 worker.worker1.socket_keepalive=FALSE #worker.worker1.recycle_timeout=300 # Set properties for worker worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=localhost worker.worker2.port=8019 worker.worker2.lbfactor=1 worker.worker2.cachesize=10 worker.worker2.connection_pool_timeout=300 worker.worker2.socket_keepalive=FALSE #worker.worker2.recycle_timeout=300 worker.balancer.type=lb worker.balancer.balance_workers=worker1,worker2 worker.balancer.method=R worker.balancer.sticky_session=True Server.xml (same for both tomcat instances apart from jvmRoute): --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org