Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 42791 invoked from network); 6 Apr 2011 20:43:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2011 20:43:04 -0000 Received: (qmail 96167 invoked by uid 500); 6 Apr 2011 20:43:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96103 invoked by uid 500); 6 Apr 2011 20:43:00 -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 96094 invoked by uid 99); 6 Apr 2011 20:43:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 20:43:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 20:42:55 +0000 Received: (qmail 7952 invoked from network); 6 Apr 2011 15:42:35 -0500 Received: from softdnserror (HELO ?172.16.97.165?) (63.76.33.54) by halosg.com with (AES256-SHA encrypted) SMTP; 6 Apr 2011 15:42:34 -0500 Message-ID: <4D9CD05A.4060505@hanik.com> Date: Wed, 06 Apr 2011 14:43:06 -0600 From: Filip Hanik - Dev Lists User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: No access log for AJP traffic References: <201104061503.56145.chris@blaze.io> <4D9CBDF6.9020805@ice-sa.com> <201104061531.18302.chris@blaze.io> <201104061550.54931.chris@blaze.io> <4D9CCC78.4080909@hanik.com> In-Reply-To: <4D9CCC78.4080909@hanik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit The logging now takes place in the CoyoteAdapter http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?r1=1086351&r2=1086352& Filip On 4/6/2011 2:26 PM, Filip Hanik - Dev Lists wrote: > Tomcat 6 > http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/valves/AccessLogValve.java?annotate=1030188 > Look at the invoke() method, it logs the data > > > Tomcat 7 > http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?view=annotate > Look at the invoke() method, it does nothing :) > > It seems to have happened here > http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?r1=1059547&r2=1059548& > > Filip > > On 4/6/2011 1:50 PM, Chris Dumoulin wrote: >> In looking into this further, it appears that the difference isn't in HTTP vs AJP, the difference is in async vs synchronous. >> >> The AJP traffic was carrying requests that were being processed asynchronously in Tomcat. If I switch to using the HTTP connector for >> this same traffic I still don't see anything in the access log. Other requests that are being processed synchronously are showing up in >> the access logs. >> >> I'm starting to step through the Tomcat code now, but any thoughts on this would be appreciated. >> >> - Chris >> >> On April 6, 2011 03:31:18 pm Chris Dumoulin wrote: >>> Thanks for your response Andre. I'm using AJP between Tomcat and Nginx using this Nginx module: >>> https://github.com/yaoweibin/nginx_ajp_module >>> There is definitely AJP traffic, it's just not showing up in the access log. >>> >>> - Chris >>> >>> On April 6, 2011 03:24:38 pm Andr� Warnier wrote: >>>> Chris Dumoulin wrote: >>>>> I'm using tomcat 7.0.11 with the following Connector and Host elements in server.xml: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> prefix="localhost_access_log." resolveHosts="false" suffix=".txt"/> >>>>> >>>>> >>>>> >>>>> >>>>> In the access log I'm seeing the HTTP traffic on port 8080 but not the AJP traffic on port 8009. I've googled around and I don't see >>>>> any mention of specific Valve settings for AJP. >>>>> >>>>> Any ideas? >>>>> >>>> And are you expecting traffic on the AJP Connector ? >>>> For traffic to show up there, some client would need to connect to your server on port >>>> 8009. Is there anything that connects to that port ? >>>> >>>> If not, then there is nothing to worry about, and you could even comment-out that >>>> , since it will never be used. >>>> Like : >>>> >>>> >>>> >>>> The AJP Connector is used in scenarios where there is another webserver used as a >>>> front-end to Tomcat, and this other webserver, to pass requests to Tomcat, uses the AJP >>>> protocol. For example, a configuration like this one : >>>> >>>> browser<--> Apache httpd server<-----> Tomcat >>>> + mod_jk module >>>> OR + mod_proxy_ajp module >>>> >>>> or >>>> >>>> browser<--> IIS webserver<-----> Tomcat >>>> + isapi_redirect module >>>> >>>> If you do not use such a configuration, or you do not understand what this is all about, >>>> then you don't need the AJP in Tomcat. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> 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 >> >> >> >> ----- >> No virus found in this message. >> Checked by AVG - www.avg.com >> Version: 10.0.1209 / Virus Database: 1500/3555 - Release Date: 04/06/11 >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 10.0.1209 / Virus Database: 1500/3555 - Release Date: 04/06/11 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org