Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B607224A6 for ; Sun, 1 May 2011 17:09:51 +0000 (UTC) Received: (qmail 58197 invoked by uid 500); 1 May 2011 17:09:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58147 invoked by uid 500); 1 May 2011 17:09:48 -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 58138 invoked by uid 99); 1 May 2011 17:09:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 May 2011 17:09:48 +0000 X-ASF-Spam-Status: No, hits=3.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simran4u2@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 May 2011 17:09:43 +0000 Received: by bwz16 with SMTP id 16so6149169bwz.18 for ; Sun, 01 May 2011 10:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Y2xVJfHnv2vrcwHq5rqy4VA5S8LLfkYwD/DlfUVf3KQ=; b=tCP7yBZ3Ov5SYOVNaAFPfgTuKUWoLXlKE1WkZke658p6pRyRZU8GPjoqlPQz/Dz1fo aSIxxDP5KKB4JmVYXWt/iV3b04QNYYxuXXL8WThHwh8BuiNgACqw2+dRQwF1v2odQUi7 xkLL/rP8ocfBH4agmGL7uGNRAQnkkG30F4K30= 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=HCrDfp0FgDtzztx3mWQjfTD1TCr5637bOiwzaOAL3lBQyZ+vL+YqkwNHuCMwJZvIh5 eWopaZMUUob/c8uLibnrO0awSVOYIo3uBpUuceV3ASxxN9zuiPTNzxjne/8AcUzJNeQo 4o5AbliZ3eQMg6AH1eOiEatUqIocesiWu0SVs= MIME-Version: 1.0 Received: by 10.204.19.83 with SMTP id z19mr2660530bka.191.1304269761136; Sun, 01 May 2011 10:09:21 -0700 (PDT) Received: by 10.204.115.131 with HTTP; Sun, 1 May 2011 10:09:21 -0700 (PDT) In-Reply-To: <4DBD450E.6050101@ice-sa.com> References: <4DB87040.6050104@ice-sa.com> <4DBA8EED.5020904@ice-sa.com> <4DBD450E.6050101@ice-sa.com> Date: Sun, 1 May 2011 22:39:21 +0530 Message-ID: Subject: Re: modjk apache response questions From: Harsimranjit singh Kler To: Tomcat Users List Content-Type: multipart/alternative; boundary=00032555a3dacdca9c04a239f7c5 --00032555a3dacdca9c04a239f7c5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Here is details::::: ./apachectl -V Server version: Apache/2.2.17 (Unix) Server built: Apr 19 2011 08:35:28 Server=E2=80=99s Module Magic Number: 20051115:25 Server loaded: APR 1.4.2, APR-Util 1.3.10 Compiled using: APR 1.4.2, APR-Util 1.3.10 Architecture: 64-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with=E2=80=A6. -D APACHE_MPM_DIR=3D=E2=80=9Dserver/mpm/worker=E2=80=9D -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=3D128 -D HTTPD_ROOT=3D=E2=80=9D/applications/balancer=E2=80=9D -D SUEXEC_BIN=3D=E2=80=9D/applications/balancer/bin/suexec=E2=80=9D -D DEFAULT_SCOREBOARD=3D=E2=80=9Dlogs/apache_runtime_status=E2=80=9D -D DEFAULT_ERRORLOG=3D=E2=80=9Dlogs/error_log=E2=80=9D -D AP_TYPES_CONFIG_FILE=3D=E2=80=9Dconf/mime.types=E2=80=9D -D SERVER_CONFIG_FILE=3D=E2=80=9Dconf/httpd.conf=E2=80=9D APACHE-> http.conf =E2=80=94 =E2=80=93 ServerLimit 30 StartServers 20 MaxClients 1500 MinSpareThreads 40 MaxSpareThreads 100 ThreadsPerChild 50 MaxRequestsPerChild 0 =E2=80=94=E2=80=94 =E2=80=94=E2=80=93 worker.properities =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=93 worker.list=3Dbalancer #For tomcat 1 worker.list=3Dworker1 #worker.worker1.domain=3Dworker1 worker.worker1.type=3Dajp13 worker.worker1.host=3D worker.worker1.port=3D8009 worker.worker1.lbfactor=3D1 . .. ..... worker.balancer.type=3Dlb worker.balancer.balance_workers=3Dworker1,worker2,worker3 worker.balancer.local_worker_only=3D1 worker.balancer.sticky_session=3D1 4 TOMCAT-> =E2=80=94=E2=80=93 server.xml(tomcats) Connector port=3D=E2=80=9D8009=E2=80=B3 enableLookups=3D=E2=80=9Dfalse=E2=80=9D redirectPort=3D=E2=80=9D8443=E2=80= =B3 maxThreads=3D=E2=80=9D500=E2=80=B3 minSpareThreads=3D=E2=80=9D25=E2=80=B3 maxSpareThreads=3D=E2=80=9D75=E2=80=B3 protocol=3D=E2=80=9DAJP/1.3 On Sun, May 1, 2011 at 5:03 PM, Andr=C3=A9 Warnier wrote: > Can you show the contents of the workers.properties file ? > And, if you send just /one/ of your test requests to one Tomcat, what is > the response time ? (do that several times, separately, and calculate the > average). > > > > arsimranjit singh Kler wrote: > >> Hi >> Hope you clear with my steup? >> >> Regards >> Harsimran >> >> On Fri, Apr 29, 2011 at 4:30 PM, Harsimranjit singh Kler < >> simran4u2@gmail.com> wrote: >> >> Hi >>> My Setup one load balancer(apache ) and three tomcat server . >>> so 800 requests me i am hitting on apache loadbalancer using SOAP UI >>> s\w now apache using modjk connector(equal load among all worker >>> .Rondrobin) and distributing requests to 3 tomcats .So 270 aprx for ea= ch >>> tomcat worker. >>> >>> If hitting 1200 on Loadbalancer .this mean 400 aprox processed by eac= h >>> tomcat worker.(Assuming all 1200 requests not going to one tomcat if no >>> failover.As per my understanding i have given maxthread as 500 for each >>> tomcat worker ) >>> >>> Yes I removed minProcessors=3D"25" maxProcessors=3D"2000" now. >>> >>> i am using SOAP UI s\w to test setup where i can check response and >>> all.For >>> my web services project(wsdl) some 4 methods exposed & are invoked in >>> sequence.Average time for these all method to complete i am using to >>> test.Let me know if some alternate tool to test load and performance , = i >>> can >>> try with that also. >>> >>> Let me know if some issue with my configurations ? >>> >>> On Fri, Apr 29, 2011 at 3:41 PM, Andr=C3=A9 Warnier wro= te: >>> >>> Hi. >>>> >>>> I am still not quite sure that I understand the way your are presentin= g >>>> your results, below. >>>> What does a line like >>>> >>>> b) 800 request 1 LB ,3 tomcat=3D=3DSlow response time(double) >>>>> >>>> actually mean ? >>>> >>>> Apart from that : >>>> >>>> a) >>>> >>>>> minProcessors=3D"25" maxProcessors=3D"2000" >>>>> >>>> these attributes are deprecated, see >>>> http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html >>>> Since they are confusing, remove them. >>>> >>>> b) >>>> maxThreads=3D"500" >>>> >>>> This means that each Tomcat will actually /never/ process more than 50= 0 >>>> simultaneous AJP requests. Any additional simultaneous request will >>>> have to >>>> wait, until one thread becomes available to handle it. >>>> >>>> One thing that you are not mentioning, is : in your test, how long doe= s >>>> it >>>> take to actually process 1 request, if you send just one ? >>>> >>>> c) what pogram are you using, to send the requests to Apache/Tomcat ? >>>> And how do you see that "the response time is slow/slower" ? >>>> >>>> >>>> >>>> Harsimranjit singh Kler wrote: >>>> >>>> Hi andre >>>>> >>>>> Actully i m testing performance of my setup.I have apache 2.2.17 >>>>> handling >>>>> requests and configured 4 tomcats with modjk connector. >>>>> ServerLimit 30 >>>>> worker MPM details: >>>>> StartServers 20 >>>>> MaxClients 1500 >>>>> MinSpareThreads 40 >>>>> MaxSpareThreads 100 >>>>> ThreadsPerChild 50 >>>>> MaxRequestsPerChild 0 >>>>> server.xml for each tomcat >>>>> -------------------------------------------- >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>>> enableLookups=3D"false" redirectPort=3D"8443" >>>>> >>>>> minProcessors=3D"25" maxProcessors=3D"2000" >>>>> >>>>> maxThreads=3D"500" minSpareThreads=3D"25" >>>>> >>>>> maxSpareThreads=3D"75" protocol=3D"AJP/1.3" /> >>>>> >>>>> >>>>> Now i have tested by hitting some concurent requests on apache load >>>>> balancer(LB):- >>>>> >>>>> a) 400 request 1 LB ,1 tomcat=3D=3Dexpected response time >>>>> b) 400 request 1 LB ,2 tomcat=3D=3Dexpected response time >>>>> c) 400 request 1 LB ,3 tomcat=3D=3Dexpected response time >>>>> >>>>> but >>>>> >>>>> a) 800 request 1 LB, 2 tomcat=3D=3DSlow response time(double) >>>>> b) 800 request 1 LB ,3 tomcat=3D=3DSlow response time(double) >>>>> a) 1200 request 1 LB, 3 tomcat=3D=3DSlow response time(three time) >>>>> >>>>> why LB slow down with increased concurent requests(CPU & memory >>>>> utilisation >>>>> same)? >>>>> >>>>> Hope u clear with my problem? >>>>> >>>>> >>>>> >>>>> On Thu, Apr 28, 2011 at 1:06 AM, Andr=C3=A9 Warnier w= rote: >>>>> >>>>> It may be me, but your question is not very clear. >>>>> >>>>>> Let me try again : >>>>>> Since you seem to have Apache httpd in front of Tomcat, you can try = to >>>>>> use >>>>>> the "ab" program which comes with Apache httpd, to send requests to >>>>>> httpd, >>>>>> and by selecting appropriate requests, have them forwarded to Tomcat >>>>>> through >>>>>> mod_jk. >>>>>> Then, at the Apache httpd level, the mod_status module would help yo= u >>>>>> figure out what is going on at the Apache httpd level. >>>>>> The mod_jk status worker will show you what is going on at the mod_j= k >>>>>> level. >>>>>> And the Tomcat Manager (server-status part), will show you some >>>>>> information >>>>>> about what is going on at the Tomcat level. >>>>>> There are also tools such as "jconsole" which can show you what is >>>>>> happening at the level of the JVM which runs Tomcat (each Tomcat, if >>>>>> you >>>>>> have several). >>>>>> >>>>>> References for the above : >>>>>> Apache "ab" program : >>>>>> http://httpd.apache.org/docs/2.2/programs/ab.html >>>>>> Apache mod_status : >>>>>> http://httpd.apache.org/docs/2.2/mod/mod_status.html >>>>>> mod_jk status worker : >>>>>> http://tomcat.apache.org/connectors-doc/reference/status.html >>>>>> Tomcat Manager application : >>>>>> http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html >>>>>> Monitoring the Tomcat JVM : >>>>>> http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html >>>>>> >>>>>> If that does not answer your question, then try to be more clear abo= ut >>>>>> what >>>>>> exactly you are looking for. For example, what do you mean by "test >>>>>> load" ? >>>>>> What precisely are you trying to find out ? >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Harsimranjit singh Kler wrote: >>>>>> >>>>>> Hi Andre >>>>>> >>>>>>> i checked but i want simple steps to test load on my each worker as >>>>>>> am >>>>>>> doing >>>>>>> first time.Thanks >>>>>>> regards >>>>>>> Harsimran >>>>>>> On Wed, Apr 27, 2011 at 8:57 PM, Harsimranjit singh Kler < >>>>>>> simran4u2@gmail.com> wrote: >>>>>>> >>>>>>> Hi >>>>>>> >>>>>>> I need some observations on loadbalancer with mod jk, such as >>>>>>>> How to check utilization of each httpd workers? How to check what >>>>>>>> is >>>>>>>> the >>>>>>>> number of connections active on the each separate >>>>>>>> Tomcats when there is load?.How i can increase response time?AJP >>>>>>>> port >>>>>>>> should unique in worker.properities? >>>>>>>> >>>>>>>> Whenever i am increasing concurrent requests on LB response time >>>>>>>> decreases? >>>>>>>> Using apache 2.2.17+modjk1.2.31+tomcat 5.5.27 >>>>>>>> >>>>>>>> >>>>>>>> regards >>>>>>>> harsimran >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -----------------------------------------------------------------= ---- >>>>>>>> >>>>>>> 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 >>>> >>>> >>>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --00032555a3dacdca9c04a239f7c5--