Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 76708 invoked from network); 26 Feb 2009 08:20:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 08:20:53 -0000 Received: (qmail 62258 invoked by uid 500); 26 Feb 2009 08:20:41 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 62240 invoked by uid 500); 26 Feb 2009 08:20:41 -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 62229 invoked by uid 99); 26 Feb 2009 08:20:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 00:20:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rosenberg.leon@googlemail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 08:20:31 +0000 Received: by fg-out-1718.google.com with SMTP id l27so385712fgb.40 for ; Thu, 26 Feb 2009 00:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eNPHe8T6ejmCgRakScft9UQ858h33xx1GL0icmcHBa4=; b=OFE6WXM5fg4VGmDvbxQwPq9WsvMb3tdswg1FSZYUAdBUppz/aBOO29TPQfCqsgnv2d PpSf5xAn4m+fWJDri7TdE9aRPig08UHM0Wa/QLokry62vKl3L0Nqvy9Nv4gs5b3Bn/NG fq1bfyvWjYtrWxDdvUNbDKDFqzhvMuKymeNoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rEfsiemxzqnIwcAjomOrFf1dHqwiZNz7/oJFo++NfUCc80mst1mtWJnli6FFjvFnMQ zElHAkDDCQNaPUtO/UvjolwlNZqt5XhdIvuhIPa0nsuHFVZsxOPtuUi2otfinLn/PyDm 59XK0vFqn6LF+pw0yEv1d5zLT6PYbNYfsMe1A= MIME-Version: 1.0 Received: by 10.86.33.10 with SMTP id g10mr1910344fgg.44.1235636410727; Thu, 26 Feb 2009 00:20:10 -0800 (PST) In-Reply-To: <301601.30337.qm@web33406.mail.mud.yahoo.com> References: <301601.30337.qm@web33406.mail.mud.yahoo.com> Date: Thu, 26 Feb 2009 09:20:10 +0100 Message-ID: <327858f40902260020g750a8b81q3c5d10a9262c25f4@mail.gmail.com> Subject: Re: jsvc degrades performance in production From: Leon Rosenberg To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org just a question, if you are behind a loadbalancer, why wouldn't your just run it as non-root user on a non-privelleged port without jsvc? regards Leon On Thu, Feb 26, 2009 at 3:31 AM, B.V. Prasad wrote: > I am running Tomcat 6 on a group of Linux servers behind a loadbalancer. = This setup was working fine when I ran Tomcat as root. However, when I move= d to jsvc, the production servers started to become unavailable within a co= uple of hours, serving thousands of requests. I had to restart them to be o= nline again, only to get into the same issue in a couple of hours. When swi= tched back to run as root, things were fine again. I could find no errors i= n any logs. > > I found that jsvc uses client JVM (the servers are server-class VMWare se= rvers) by default. I am suspecting when I ran as root (startup.sh), Tomcat = used server JVM that gave better performance, while jsvc performed worse wi= th client JVM, causing my maxThreads (150) to exhaust, acceptCount (100) to= fill up and making tomcat to deny requests. I am guessing if I make jsvc t= o use server JVM, my problem will go away. I appreciate if someone can vali= date this theory or offer other clues before I try this in production. Of c= ourse, I shall also try a stress test case. > > Thanks, > BV Prasad > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org