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 2019/04/23 12:58:47 UTC

[Bug 63379] New: Tomcat socket listening timeouts

https://bz.apache.org/bugzilla/show_bug.cgi?id=63379

            Bug ID: 63379
           Summary: Tomcat socket listening timeouts
           Product: Tomcat 9
           Version: 9.0.16
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: vojtech@knyt.tl
  Target Milestone: -----

We just updated from JDK8 to JDK11 and our Tomcat started reporting this
warning (we use Docker image tomcat:9-jre11-slim):

2019-04-17 10:17:35.060 WARNING [:tomcat]
org.apache.catalina.core.StandardServer The socket listening for the shutdown
command experienced an unexpected timeout [256] milliseconds after the call to
accept(). Is this an instance of bug 56684?
java.net.SocketTimeoutException: Accept timed out
    at java.base/java.net.PlainSocketImpl.socketAccept(Native Method)
    at
java.base/java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:458)
    at java.base/java.net.ServerSocket.implAccept(ServerSocket.java:551)
    at java.base/java.net.ServerSocket.accept(ServerSocket.java:519)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:607)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:722)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:668)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
    at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

The bug #56684 mentioned in the warning refers to this:
https://bz.apache.org/bugzilla/show_bug.cgi?id=56684 - which is probably fixed
and not very relevant.

We get hundreds of these exceptions in our logs and we have disabled it with
setting -1 to the shutdown port as a temporary solution.

-- 
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 63379] Tomcat socket listening timeouts

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

--- Comment #3 from Remy Maucherat <re...@apache.org> ---
(In reply to vojtech from comment #2)
> What else can I provide you with? Can I create you some kind of internal log
> dump?

We need to understand why this timeout occurs, since it's an exception thrown
by the JVM, and how to avoid it if possible.
For a workaround, unless you really don't need the shutdown command, you can
also configure the org.apache.catalina.core.StandardServer logger.

-- 
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 63379] Tomcat socket listening timeouts

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

Remy Maucherat <re...@apache.org> changed:

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

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
A 256ms timeout is obviously a problem. I'm not getting it on Linux / JDK 11.

-- 
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 63379] Tomcat socket listening timeouts

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

vojtech@knyt.tl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vojtech@knyt.tl

-- 
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 63379] Tomcat socket listening timeouts

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

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

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

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
I've tested that docker image and I don't see that issue with the latest
version.

I've also reviewed the Tomcat code and I don't see any way for a timeout to be
set on the shutdown socket.

-- 
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 63379] Tomcat socket listening timeouts

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

--- Comment #2 from vojtech@knyt.tl ---
What else can I provide you with? Can I create you some kind of internal log
dump?

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