We have recently noticed that our Tomcat installation is writing incorrect
data to the localhost_access_log.  It seems to be writing cached data of a
previous request for some or all of the fields.  For example, sometimes the
jsessionid of another IP/client is written in the logs of having made a
request for a page.  There are other times where the request came from one
computer, but is logged with the IP and sessionid of another computer.  I
have included a sample of the access log that shows what I mean.

So far we have upgraded to the newest version of Tomcat (8.5.5) and added
RECYCLE_FACADES=true to our catalina.properties file.   We also see the
same behavior from inside our application using getRemoteAddr().  At this
point I am not really sure how to proceed as google doesn't return anything
about a problem like this.  Any suggestions would be appreciated.




Tomcat 8.5.5
OS:  Solaris 11.3 sun4v sparc
Java:  1.8.0_92
TCNative: 1.2.7




*server.xml:*
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="300" SSLEnabled="true" scheme="https"
secure="true"
               clientAuth="false" sslProtocol="TLSv1.2"
maxHttpHeaderSize="65536"
               keystoreFile="/tomcat/.keystore" keystorePass=""
               compression="on"
compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript"
>
</Connector>

...

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
               prefix="localhost_access_log" suffix=".txt"
renameOnRotate="true"
               pattern="%h %l %u %{yyyy-MM-dd'T'HH:mm:ss.SSSZ}t
&quot;%r&quot; %s %B %S %D %{Referer}i" />



*Clients:*

Client1: 192.168.1.100
JSESSIONID: C345EEC54EA556A5E55CE1F7AAB9B706

Client2: 192.168.1.105
JSESSIONID: DF4331A7668F8D67249A86DA2313029D



*localhost_access_log.txt:*

192.168.1.100 - - 2016-09-13T14:33:34.154-0500 "GET
/javascript/flyout-nav.js HTTP/1.1" 304 0 DF4331A7668F8D67249A86DA2313029D
7 https://192.168.1.1/

192.168.1.105 - - 2016-09-13T14:57:59.110-0500 "GET
/javascript/custom-expand.js HTTP/1.1" 304 0
C345EEC54EA556A5E55CE1F7AAB9B706 11 https://192.168.1.1/

Reply via email to