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 CE068D2C6 for ; Fri, 18 Jan 2013 06:55:50 +0000 (UTC) Received: (qmail 71794 invoked by uid 500); 18 Jan 2013 06:55:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 71654 invoked by uid 500); 18 Jan 2013 06:55:45 -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 71629 invoked by uid 99); 18 Jan 2013 06:55:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 06:55:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.216.166] (HELO nm28-vm7.bullet.mail.gq1.yahoo.com) (98.136.216.166) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 06:55:36 +0000 Received: from [98.137.12.190] by nm28.bullet.mail.gq1.yahoo.com with NNFMP; 18 Jan 2013 06:55:15 -0000 Received: from [98.137.12.219] by tm11.bullet.mail.gq1.yahoo.com with NNFMP; 18 Jan 2013 06:55:15 -0000 Received: from [127.0.0.1] by omp1027.mail.gq1.yahoo.com with NNFMP; 18 Jan 2013 06:55:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 28691.83438.bm@omp1027.mail.gq1.yahoo.com Received: (qmail 37663 invoked by uid 60001); 18 Jan 2013 06:55:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1358492114; bh=XOMwdZ4uwaQAG2U6T1dwnKoRxQptvYEfkG6vx+DUu0A=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=qnU4iluDSxPqjlq2NjxV4Zg5p8nf8wroZ1NxX2G+dvjNaQodfzoiT/6g/WPwahVLM7f34ypkeNP6jTM6P93VMy+I7co7vwzR7iK5/rnjb2fdfpQt1lzwWh16+P0UM5qqSqjpvX5Bez/48Sjda+lyQ9aj4/VTJDsbUPIVtRTkcHU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=P7H2KVPKoIrt3n62UkUiOOC08egy07JivtGCcqYuk0HV99QxezBrmkhyFOF4pMybGMv4u4+XkXhtEHplKVLdXBjaMQJheDHOeoIEgO0ekpGBVWZH+JWdBcpy/HlAQs296FEbE+U4F3A7IN+iDUnNDpbnkcIY45vpAxzPEBbjnIw=; X-YMail-OSG: BJMlpx0VM1kcQCGcm_yUC229YyAUUv1VpeLVUOE6V97Gd_z .cPu.qTgSuxBQYeyVQsyFA9sI9HzgtlSD1kdUZM4QRHsSkkq33jcowSNq9Tk Gf.h81DWPSF.vol5PqiF292Y_5a.1818XES5bQ_5IzZ5it38RgwdRQpfWVoM ztYNTNI9VZadXoyxZXSxnptXp1ygcd7Z6jfxJ9Pyz8_N9GBYIfsUM_9OMoso 3MRq8bGmnGSqDZqRxSvQ.k_5rU_VcGaATX4biD8v7oTCAioSHkisVJcnwp5X zlYjriDGGMeUFvp8EToSQKfd8ejiA6XEmBYwq1mX9vJCvzBW9aZ5u9x_WfS7 5_GekIJ.1CiOFlNXyKZ8sEuzemfZm0IpBypLSzKz5l5qJfdnvRlhrxi4k9r7 w0QD0UT.Yau_eEKGWQqEsK4nuJbNJd4Xi_G1ZadC68_4ACEOGBmZm_hhgIzO BZ_w7vz5FSabk2dsgCeQPWxwPEZuIJT55A.qKA0L6yNEAJai3DgAJplj7Bqe .5fR5v2xK.HN7NkhrAqUzAksmm6jqkFYFgEucvZORnxcRIQ-- Received: from [62.134.46.5] by web163401.mail.gq1.yahoo.com via HTTP; Thu, 17 Jan 2013 22:55:14 PST X-Rocket-MIMEInfo: 001.001,SGkgQ2hyaXMsClRyaWVkIHdpdGggdGhpcyBzaW1wbGUgc2VydmVyLnhtbCBhbmQgbWF4VGhyZWFkcz0wIGJ1dCBJIGRpZCBub3Qgc2VlIGFueSBraW5kIG9mIGVycm9ycy5BdHRhY2hlZCB0aGUgY2F0YWxpbmEgbG9ncwoKPD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz4KPFNlcnZlciBwb3J0PSI4MDA1IiBzaHV0ZG93bj0iU0hVVERPV04iPgoKwqAgPCEtLUFQUiBsaWJyYXJ5IGxvYWRlci4gRG9jdW1lbnRhdGlvbiBhdCAvZG9jcy9hcHIuaHRtbCAtLT4KwqAgPExpc3RlbmVyIGNsYXNzTmEBMAEBAQE- X-Mailer: YahooMailWebService/0.8.130.494 References: <1358352090.29719.YahooMailNeo@web163403.mail.gq1.yahoo.com> <50F6E8E7.6010008@christopherschultz.net> <1358366848.94436.YahooMailNeo@web163401.mail.gq1.yahoo.com> <50F70D67.8020407@christopherschultz.net> <50F7B70E.3070805@ice-sa.com> <50F82D7E.30907@christopherschultz.net> Message-ID: <1358492114.22679.YahooMailNeo@web163401.mail.gq1.yahoo.com> Date: Thu, 17 Jan 2013 22:55:14 -0800 (PST) From: Hermes Flying Reply-To: Hermes Flying Subject: Re: Can not understand how maxThreads of Connectors works To: Tomcat Users List In-Reply-To: <50F82D7E.30907@christopherschultz.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-1278017997-1940293515-1358492114=:22679" X-Virus-Checked: Checked by ClamAV on apache.org ---1278017997-1940293515-1358492114=:22679 Content-Type: multipart/alternative; boundary="-1278017997-760097037-1358492114=:22679" ---1278017997-760097037-1358492114=:22679 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Chris,=0ATried with this simple server.xml and maxThreads=3D0 but I did = not see any kind of errors.Attached the catalina logs=0A=0A=0A= =0A=0A=A0 =0A=A0= =0A=A0 =0A=A0 =0A=A0 =0A=A0 =0A=A0 =0A= =A0 =0A=A0 =0A=0A=A0 =0A=A0 =0A=A0=A0=A0 =0A=A0=A0=A0 =0A=A0 =0A=0A=A0 = =0A=A0=A0=A0 =0A=A0=A0=A0 =0A=A0=A0=A0 =0A=A0=A0=A0 =0A=A0=A0=A0 =0A=0A=A0=A0=A0 =0A=A0=A0=A0 =0A=0A=0A=A0=A0=A0 =0A=0A=A0=A0=A0 = =0A=A0=A0=A0 =0A=0A=0A= =A0=A0=A0=A0=A0 =0A=A0=A0=A0=A0=A0 =0A=0A=A0=A0=A0=A0=A0 =0A=A0=A0= =A0=A0=A0 = =0A=0A=0A=A0=A0=A0=A0=A0 =0A=A0=A0=A0 =0A=A0 =0A<= /Server>=0A=0A=0A=0A=0A=0A=0A=0A________________________________=0A From: C= hristopher Schultz =0ATo: Tomcat Users List <= users@tomcat.apache.org> =0ASent: Thursday, January 17, 2013 6:57 PM=0ASubj= ect: Re: Can not understand how maxThreads of Connectors works=0A =0A-----B= EGIN PGP SIGNED MESSAGE-----=0AHash: SHA256=0A=0AAndr=E9,=0A=0AOn 1/17/13 3= :32 AM, Andr=E9 Warnier wrote:=0A> Quite a few messages ago, I asked the OP= if he could copy/paste=0A> his server.xml.=0A=0AYes. Getting information f= rom the OP seems to be difficult.=0A=0A> The reason was that if his config = uses an Executor, then I believe=0A> the Threads settings in the Connectors= don't really matter, do they=0A> ?=0A=0ACorrect: setting executor=3D"someE= xecutor" means that any=0Aexecutor-related settings on the will= be ignored in favor=0Aof those set in the .=0A=0A- -chris=0A---= --BEGIN PGP SIGNATURE-----=0AVersion: GnuPG/MacGPG2 v2.0.17 (Darwin)=0AComm= ent: GPGTools - http://gpgtools.org=0AComment: Using GnuPG with Thunderbird= - http://www.enigmail.net/=0A=0AiEYEAREIAAYFAlD4LX4ACgkQ9CaO5/Lv0PAzegCgtx= rX5Yx2V0UlEiDI1hK/vK+H=0Au20AmwWQz6+LToA3uPSSb8V1+kdPMY3N=0A=3D9fQb=0A-----= END PGP SIGNATURE-----=0A=0A-----------------------------------------------= ----------------------=0ATo unsubscribe, e-mail: users-unsubscribe@tomcat.a= pache.org=0AFor additional commands, e-mail: users-help@tomcat.apache.org ---1278017997-760097037-1358492114=:22679 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Chris,
Tried wi= th this simple server.xml and maxThreads=3D0 but I did not see any kind of = errors.Attached the catalina logs

<?xml version=3D'1.0' encoding= =3D'utf-8'?>
<Server port=3D"8005" shutdown=3D"SHUTDOWN">
  <!--APR library loader. Documentation at /docs/apr.html --><= br>  <Listener className=3D"org.apache.catalina.core.AprLifecycleLi= stener" SSLEngine=3D"on" />
  <!--Initialize Jasper prior to = webapps are loaded. Documentation at /docs/jasper-howto.html -->
&nbs= p; <Listener className=3D"org.apache.catalina.core.JasperListener" />=
  <!-- Prevent memory leaks due to use of particular java/javax= APIs-->
  <Listener className=3D"org.apache.catalina.core.Jr= eMemoryLeakPreventionListener" />
  <!-- JMX Support for the = Tomcat server. Documentation at /docs/non-existent.html -->
  <Listener cla= ssName=3D"org.apache.catalina.mbeans.ServerLifecycleListener" />
&nbs= p; <Listener className=3D"org.apache.catalina.mbeans.GlobalResourcesLife= cycleListener" />

  <!-- Global JNDI resources
 &= nbsp;     Documentation at /docs/jndi-resources-howto.h= tml
  -->
  <GlobalNamingResources>
  = ;  <!-- Editable user database that can also be used by
 &n= bsp;       UserDatabaseRealm to authenticate = users
    -->
    <Resource name= =3D"UserDatabase" auth=3D"Container"
      = ;        type=3D"org.apache.catalina.Use= rDatabase"
          &= nbsp;   description=3D"User database that can be updated and saved"
          &nbs= p;   factory=3D"org.apache.catalina.users.MemoryUserDatabaseFacto= ry"
           &n= bsp;  pathname=3D"conf/tomcat-users.xml" />
  </GlobalNa= mingResources>

  <!-- A "Service" is a collection of one = or more "Connectors" that share
       a s= ingle "Container" Note:  A "Service" is not itself a "Container",
=        so you may not define subcomponents su= ch as "Valves" at this level.
       Docum= entation at /docs/config/service.html
   -->
  <= Service name=3D"Catalina">
 
    <!--The c= onnectors can use a shared executor, you can define one or more named threa= d pools-->
    <!--
    <Executor name=3D"tomcatThreadPool" namePrefix=3D"catalina-exec-"
&= nbsp;       maxThreads=3D"150" minSpareThread= s=3D"4"/>
    -->
   
 &= nbsp; 
    <!-- A "Connector" represents an endp= oint by which requests are received
      =    and responses are returned. Documentation at :
  =        Java HTTP Connector: /docs/config/http= .html (blocking & non-blocking)
      =    Java AJP  Connector: /docs/config/ajp.html
  = ;       APR (HTTP/AJP) Connector: /docs/apr.h= tml
         Define a non-SSL HT= TP/1.1 Connector on port 8080
    -->
  &= nbsp; <Connector port=3D"8080" maxThreads=3D"0" acceptCount=3D"1" protocol=3D"HTTP/1.1"
        =        connectionTimeout=3D"20000"
 =             &nb= sp; redirectPort=3D"8443" />

    <!-- Define an= AJP 1.3 Connector on port 8009 -->
    <Connector = port=3D"8009" protocol=3D"AJP/1.3" redirectPort=3D"8443" />


&= nbsp;   <!-- An Engine represents the entry point (within Cata= lina) that processes
         ev= ery request.  The Engine implementation for Tomcat stand alone
&nbs= p;        analyzes the HTTP headers incl= uded with the request, and passes them
     &nb= sp;   on to the appropriate Host (virtual host).
  &= nbsp;      Documentation at /docs/config/engine.ht= ml -->

    <!-- You should set jvmRoute to suppor= t load-balancing via AJP ie :
    <Engine name=3D"Cata= lina" defaultHost=3D"localhost" jvmRoute=3D"jvm1">   &nbs= p;    
    -->
  &n= bsp; <Engine name=3D"Catalina" defaultHost=3D"localhost">


=       <!-- This Realm uses the UserDatabase con= figured in the global JNDI
       &nb= sp;   resources under the key "UserDatabase".  Any edits
=            that are perfo= rmed against this UserDatabase are immediately
    &= nbsp;      available for use by the Realm.  -= ->
      <Realm className=3D"org.apache.catalina.realm.UserDatabaseRealm"
  &= nbsp;          resourceName=3D= "UserDatabase"/>

      <!-- Define th= e default virtual host
        &= nbsp;  Note: XML Schema validation will not work with Xerces 2.2.
&= nbsp;      -->
     = ; <Host name=3D"localhost"  appBase=3D"webapps"
  &nbs= p;         unpackWARs=3D"true" auto= Deploy=3D"true"
         &n= bsp;  xmlValidation=3D"false" xmlNamespaceAware=3D"false">

<= br>      </Host>
    </= Engine>
  </Service>
</Server>





<= font face=3D"Arial" size=3D"2">
From: Christopher Schultz <chris@christopherschult= z.net>
To: Tomcat U= sers List <users@tomcat.apache.org>
Sent: Thursday, January 17, 2013 6:57 PM
Subject: Re: Can not understand how= maxThreads of Connectors works

=0A-----BEGIN PGP SI= GNED MESSAGE-----
Hash: SHA256

Andr=E9,

On 1/17/13 3:32 AM= , Andr=E9 Warnier wrote:
> Quite a few messages ago, I asked the OP i= f he could copy/paste
> his server.xml.

Yes. Getting informati= on from the OP seems to be difficult.

> The reason was that if hi= s config uses an Executor, then I believe
> the Threads settings in t= he Connectors don't really matter, do they
> ?

Correct: settin= g executor=3D"someExecutor" means that any
executor-related settings on = the <Connector> will be ignored in favor
of those set in the <C= onnector>.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: = GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.orgComment: Using GnuPG with Thunderbird - http://www.enigmail.net/

i= EYEAREIAAYFAlD4LX4ACgkQ9CaO5/Lv0PAzegCgtxrX5Yx2V0UlEiDI1hK/vK+H
u20AmwWQ= z6+LToA3uPSSb8V1+kdPMY3N
=3D9fQb
-----END PGP SIGNATURE-----

----------------------------------------------------= -----------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-= mail: users-help@tomcat.apache.org



=
---1278017997-760097037-1358492114=:22679-- ---1278017997-1940293515-1358492114=:22679 Content-Type: application/rar; name="catalina.rar" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="catalina.rar" UmFyIRoHAM+QcwAADQAAAAAAAAA5+nQgkD0A0AAAAEAHAAACwFNhKYxGMkId MxgAIAAAAGxvY2FsaG9zdC4yMDEzLTAxLTE4LmxvZwDwgQlACZkczJvVwRN/ wfcHmz500sv8NrNaKIUEXQ8ChWFYFJKWzQr0N4Y71B4IhcjW26LoeBr88CzA zzRnIcPPd2EgSaZo/GTPTM1FjJy59SPOlfJGaCEz5SduhF0zOHoPLuQ5Kdh5 0qPaLktuWii2YRJWrNZMRvYSdc37+SatGsxB3SmrzKRTcEtfJFJvjhlxRt/s V7C/KWxFVWFIYyVwc9zspXw/xd6iH3jsnfvef3EHBuMXfBQmPYjFiF9pQ5kE QZNKGhqCAX2lDcLxnhCGLTBPuqQWdCCQOwAAAAAAAAAAAAIAAAAArEUyQh0w FgAgAAAAbWFuYWdlci4yMDEzLTAxLTE4LmxvZwCwS0p89d90IJAyAEkCAAAu CQAAAkSO+eixRjJCHTMNACAAAABzZXJ2ZXJPdXQudHh0APBfxR0MFRDMzP2R e9Avw+/AWKNJNwOPjAw5aG6II0I3zgvAsotswJooEpuxXlfpb2vC/B2/KX4W ipuuJMqEqNShhuOtWiidmUXp33lq1avmyd3ThzDundHhvXMGjMA0by+/z+jN cOb6/LmBqoy2FexV5dNUD7fGUDHxMCgEPGRgYoRPFfFIJUktmA/QXCQcQ3ia BEJHyHCXSw+n0XOn2XbAdBhOkdCy51BgEhemeQC+bIqSDp05c0lShgOI8QMs aVppjVz/giWjDVz2AuqidCIlG45m5A68KRJl/d6g7h93DLcxnXCfKvYTIMkE 0SttJh0fuDNTnJvdcDdtLcamiMkVjHDDAz3xW5/xT7cPKppbe2GNxWsqu1fC VMQWp+ELd++5xxjKU3wXKOKvU0tKPhdkDFnT0kxZ9qy7f5F2LLVOWOWjwpHd nhyp4ta9gHlWF7RZVg6g0zEyhEL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0wkYs9EP0yl6jFn1Rpftwuy5ohTUtUbCqkVquyTBnLjgGHV0 vJtMx1Ys9COpkxltkrLuveUyC8b1NrLLZfayMlX7rJrC9lmWtFn/oTpMzrMV Kf4Nrd59AA1me9RhNnzARTpIGCR+lzQjMrqnABAoTU/u3hwMPtPF3OtfdlYm iMb+jdk8onUsbEO7E2cSrFeIT09G9Guf9TngvqdEPWu/7UAE+WCEdGh9llrR +l3YtVda7T5UIJRioAnQ4BT5ARLVtFKLRFQJxdg2xWmyHDnzARTpIGBFgXQj AdU4AIFCaA0qVaDQbWjA3qc8F9TogLyqACfLBCOjdu/l2EgrgpY59s+vWu8+ VCCtQTGBydDgETdKLxDNXLQxwtNoODjBT7f8IXnSNw6PHPjc5uQmnvLX9msS S07IcL412RdHkIraelWr9IsC5bH6TY6LG43L38kBcEkMGa8JZcEULhF2VIMJ MmXe1xCksvrVw2tQfpXwK8+gAYrSmHDnzARTpIGCSaR+q9YTAKnABAoTQGlS rAaDa0YG9TngvqdEBeVQAT5YIR0aH4VTiSolbSTiOoCoQDDLAAGDqBwVEtf/ gkGvOsoPPygfcnQgkEAAAAAAAAAAAAACAAAAAKxFMkIdMBsAIAAAAGhvc3Qt bWFuYWdlci4yMDEzLTAxLTE4LmxvZwCwS0p8xD17AEAHAA== ---1278017997-1940293515-1358492114=:22679 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ---1278017997-1940293515-1358492114=:22679--