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 2014/04/04 16:10:57 UTC

[Bug 56348] New: ReadListener reading stream on different thread very slow

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

            Bug ID: 56348
           Summary: ReadListener reading stream on different thread very
                    slow
           Product: Tomcat 8
           Version: 8.0.5
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: yann.simon.fr@gmail.com

In a ReadListener, if the servlet input stream is read with another thread as
the servlet thread, the upload is very slow.

The following sample application reproduces the problem:
https://github.com/yanns/servlet31_async/tree/async-perf

/upload2 reads the input stream in the servlet thread
/upload forks a new thread that reads the servlet input stream

My measurements:

With tomcat 8.0.5
/upload: 2 minutes
/upload2: 3,8 s

It is expected that /upload is more slow that /upload2, but not with that
difference.

The same tests with jetty:
/upload: 9,5 s
/upload2: 3,7s

-- 
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 56348] ReadListener reading stream on different thread very slow

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and the test case. This has been fixed in 8.0.x for 8.0.6
onwards.

-- 
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