You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/07/07 12:02:36 UTC

[Bug 55209] New: Sometimes returns junk instead of headers even on static files

https://issues.apache.org/bugzilla/show_bug.cgi?id=55209

            Bug ID: 55209
           Summary: Sometimes returns junk instead of headers even on
                    static files
           Product: Tomcat 7
           Version: 7.0.41
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: tech@wwc.lv

Created attachment 30560
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30560&action=edit
Good and bad requests

After about a day of runtime Tomcat randomly starts to return garbage data
instead of proper headers (see attachments)

It happens even on static files with no application at all.

Configurations are very standard, the only difference is thread pool, but I
tried to disable it too.

    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="256" minSpareThreads="4"/>

    <Connector port="8081"
protocol="org.apache.coyote.http11.Http11NioProtocol"
                executor="tomcatThreadPool"
               connectionTimeout="20000"
               redirectPort="8443" />


ROOT contains only one index file:
[12:57 root@g3-af /usr/share/tomcat/webapps/ROOT]$ ls -al
total 12
drwxr-xr-x 2 tomcat tomcat 4096 Jul  4 13:48 .
drwxr-xr-x 5 tomcat tomcat 4096 Jul  4 13:48 ..
-rw------- 1 tomcat tomcat 1135 Jul  4 13:48 index.html


Restarting Tomcat helps for another day then it happens back.

I will leave server running for some days, you can try to get
http://g3.af.madsword.com a dozen times to see it for yourself.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 55209] Sometimes returns junk instead of headers even on static files

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55209

Pavel Veretennikov <te...@wwc.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Pavel Veretennikov <te...@wwc.lv> ---
Seemed to be a rogue Atmosphere 1.1.0-RC4 or Filter.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 55209] Sometimes returns junk instead of headers even on static files

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55209

--- Comment #2 from Pavel Veretennikov <te...@wwc.lv> ---
This is a static file in an empty "ROOT" webapp. 

Is there a chance that filters configured in other webapps influence "ROOT"?

Could they... somehow globally alter request processing threads? Where to dig?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 55209] Sometimes returns junk instead of headers even on static files

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55209

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This is the only report (so far) of this problem. Either you've hit a very rare
edge case or there is an application and / or environment issue at play.
Without some evidence to back up the claim that this is a Tomcat bug, this
report will be resolved as invalid. You either need to provide the steps to
reproduce this on a clean install of the latest 7.0.x release or an analysis of
the Tomcat source code that identifies the issue and explains the output you
see.

My guess, based on the information provided to date is that something (a
Filter?) is retaining a reference to a request and/or response object.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 55209] Sometimes returns junk instead of headers even on static files

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55209

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
(In reply to Pavel Veretennikov from comment #2)
> This is a static file in an empty "ROOT" webapp.

I am aware of that.

> Is there a chance that filters configured in other webapps influence "ROOT"?

Yes.

> Could they... somehow globally alter request processing threads? Where to
> dig?

A connector's thread pool is shared between all web applications that are part
of the same service as the connector.

Request and response objects are recycled and re-used across all web
applications.

I'l look for the app that writes large chunks of whitespace to the response and
then for a retained reference to the response or possibly the request.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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