https://issues.apache.org/bugzilla/show_bug.cgi?id=57158
            Bug ID: 57158
           Summary: Make ReadListener and WriteListener be executed in I/O
                    thread pool[s]
           Product: Tomcat 8
           Version: 8.0.14
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: zenzhong8...@gmail.com

Servlet.service / ReadListener / WriteListener are executed in the same thread
pool, there may be performance issue when ReadListener / WriteListener is used
and tomcat is on high load.

Related log:
2014-10-28 15:58:04,497 DEBUG [http-nio-8080-exec-1] EchoAsyncServlet3: test
java.lang.Exception: test
        at EchoAsyncServlet3.service(EchoAsyncServlet3.java:16)
[EchoAsyncServlet3.class:na]

2014-10-28 15:58:04,501 DEBUG [http-nio-8080-exec-1] TextReadListener:
onAllDataRead
java.lang.Exception: onAllDataRead
        at TextReadListener.onAllDataRead(TextReadListener.java:43)
[TextReadListener.class:na]
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:570)
[catalina.jar:8.0.14]

2014-10-28 15:58:04,501 DEBUG [http-nio-8080-exec-1] TextReadListener:
onAllDataRead> text=
2014-10-28 15:58:04,502 DEBUG [http-nio-8080-exec-1] TextReadListener:
onAllDataRead> uri=/chatdemo/echo_async3, User-Agent=curl/7.32.0, params={}
2014-10-28 15:58:04,502 DEBUG [http-nio-8080-exec-1] TextReadListener: start
sleep
2014-10-28 15:58:05,502 DEBUG [http-nio-8080-exec-1] TextReadListener: sleep
finished, start writing
2014-10-28 15:58:05,506 DEBUG [http-nio-8080-exec-1] TextWriteListener:
onWritePossible
java.lang.Exception: onWritePossible
        at TextWriteListener.onWritePossible(TextWriteListener.java:39)
[TextWriteListener.class:na]
        at org.apache.coyote.Response.onWritePossible(Response.java:630)
[tomcat-coyote.jar:8.0.14]
        at
org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(AbstractHttp11Processor.java:1675)
[tomcat-coyote.jar:8.0.14]

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

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

Reply via email to