Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 44147 invoked from network); 3 Jan 2010 11:10:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2010 11:10:05 -0000 Received: (qmail 76086 invoked by uid 500); 3 Jan 2010 11:10:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 75985 invoked by uid 500); 3 Jan 2010 11:10:01 -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 75974 invoked by uid 99); 3 Jan 2010 11:10:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2010 11:10:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hamoudassan@gmail.com designates 209.85.220.211 as permitted sender) Received: from [209.85.220.211] (HELO mail-fx0-f211.google.com) (209.85.220.211) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jan 2010 11:09:55 +0000 Received: by fxm3 with SMTP id 3so5050856fxm.24 for ; Sun, 03 Jan 2010 03:09:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hCveAKKTUAutcMIOBAAaTIF2f7Z+VxAvqjQO8CQz20Q=; b=Irzs9M5XwNOExByJhGbv9M6KCZmNQlPHDL4SqcF+jQ4/ACZn9zJz6N8Odhs85GUEpw I4IQWzYchu+/wlBtOrXkWQ8BaAawDBz9mgKrDibK2C+ywXYAXh8OsbqT/D9JPBE6v6zm 0w9wjvzc8XfHHv8k7dO+FCPi4uAzB3Li84BNU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qTVhZQE9ROMzLR+HELJYPHHTFeJ2+N2qNYHRf4kuQQyE9VP3xXQiqLOxmzPGMJD0y/ nw+fCWQ/bTI2IdpI1KNNvktgNtlXHB5Gi5TgB/X1AZE+yZpID++G5DFpK9FNIqk26cwz /0+vM+GVasoXToCazmVpricCUg1uum0OpBb+s= MIME-Version: 1.0 Received: by 10.223.95.79 with SMTP id c15mr7293923fan.31.1262516973765; Sun, 03 Jan 2010 03:09:33 -0800 (PST) In-Reply-To: <4B3A36A2.3030304@apache.org> References: <4B3A24CC.1080104@apache.org> <4B3A36A2.3030304@apache.org> Date: Sun, 3 Jan 2010 14:09:33 +0300 Message-ID: Subject: Re: Load balancing questions From: assan alhamoud To: Tomcat Users List Content-Type: multipart/alternative; boundary=0015174481dabe84fd047c40a34c --0015174481dabe84fd047c40a34c Content-Type: text/plain; charset=windows-1256 Content-Transfer-Encoding: quoted-printable Happy new year to all , I am using tomcat and JBoss. Tomcat/5.0.26 mod_jk/1.2.26 Regards, 2009/12/29 Mark Thomas > On 29/12/2009 16:17, assan alhamoud wrote: > > Hello Mark , > > > > we are using apache Server version: Apache/2.2.11 (Unix) > > we use mod_jk.so module > > jboss-3.2.5 > > Tomcat5 > > and jrockit-jdk1.4.2_19 > > > > at your disposal if you need more information > > Are you using Tomcat or JBoss? > Tomcat version? > mod_jk version? > > Mark > > > > > Regards, > > Ghassan > > > > 2009/12/29 Mark Thomas > > > >> On 29/12/2009 15:21, assan alhamoud wrote: > >>> Hello All > >>> > >>> I have some questions and I hope to find answers about Load balancin= g > . > >>> > >>> 1- The first question , our DBA says that it not normal and no logic > to > >>> have several instances of tomcat server on the same machine with th= e > >> same > >>> configuration , is this correct ? > >> No. Your DBA is wrong. > >> > >>> 2- Each tomcat instance here can serve about 125 user , and I have mo= re > >> than > >>> this number on the server I got alot of problems and usually the > >> instance > >>> hang , is there anyway to get better performance from tomcat. > >> That isn't a Tomcat problem, that is an application problem. The > >> solution is to fix/tune your application. > >> > >>> I am using now 3G memory for each instance and 120 for max_pool_si= ze > >> and > >>> 750 maxThread > >> It isn't clear what the 125 users refers to. Is it concurrent requests= , > >> is it concurrent sessions, is it concurrent users (assuming 1 concurre= nt > >> user =3D=3D more than 1 concurrent request). From these numbers the > >> application seems very resource intensive. It does appear that it woul= d > >> benefit from some tuning. > >> > >>> 3- The most critical issue I had , when one instance hangs , apache > >> hangs > >>> and then all the application hangs because apache keep trying to > connect > >> to > >>> the hanged instance , Is there any way to force apache to bypass the > >> hanged > >>> instance. > >> Yes. But since you haven't told us the Tomcat version, httpd version n= or > >> how you are connecting httpd to Tomcat we can't tell you how to fix it= . > >> > >>> 4- When instance of tomcat hangs , i forced to restart this instance = ( > >>> tomcat server ) the problem is GC can not free memory anymore > >>> Is there anyway to solve the problem instead of restarting the > >> server. > >> Yes. Work out if you have a memory leak or need more memory than is > >> available. If it is a memory leak, fix it. If you need more memory > >> either allocate it or tune your app so it uses less. > >> > >>> 5- at last sometimes I found that the same action repeated many times > >> which > >>> means that apache sends the request more than one time to tomcat serv= er > >>> ,could I have control over this behavior. > >> Maybe, maybe not. If this behaviour is initiated by the user agent you > >> need to manage this in your app. It could also be caused by the > >> fail-over mechanism, in which case I refer you to my answer to point 3 > >> above. > >> > >> Mark > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > >> For additional commands, e-mail: users-help@tomcat.apache.org > >> > >> > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --=20 =E6=CF=C7=DA=C7=F0 =E3=ED=CE=C7=C6=ED=E1 --0015174481dabe84fd047c40a34c--