Affects: Release Notes project_key: JBEWS When you use <Connector port="8080" protocol="HTTP/1.1" address="::" for starting Tomcat6 or 7 on Windows and then stopping Tomcat it slowing down shutdown of Tomcat. You see WARNING in catalina.log: {code} WARNING: Acceptor thread [http-0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8080-Acceptor-0] failed to unlock. Forcing hard socket shutdown. {code} Its know bug in earlier version of Tomcat: https://issues.apache.org/bugzilla/show_bug.cgi?id=51503 but its problem in earlier version of Tomcat than we have in EWS20, so I don't know.
Link: Added: This issue relates to JBPAPP-9551
I don't know.
It's a Tomcat problem. Ask David if he applied the mentioned upstream fix
Assigning to David, since it's Tomcat/java problem
$ tail -f logs/catalina.2012-10-05.log Oct 5, 2012 12:14:48 PM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 Oct 5, 2012 12:14:49 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Oct 5, 2012 12:14:49 PM org.apache.coyote.http11.Http11AprProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8080 Oct 5, 2012 12:15:00 PM org.apache.tomcat.util.net.AprEndpoint stop WARNING: Acceptor thread [http-0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8080-Acceptor-0] failed to unlock. Forcing hard socket shutdown. Oct 5, 2012 12:15:00 PM org.apache.coyote.ajp.AjpAprProtocol destroy INFO: Stopping Coyote AJP/1.3 on ajp-8009 Well that is 10 seconds... Not a big deal.
Yes, Its not so big problem.
It is related to AS7-3834 in fact... The unlockAccept() will used the "::" address to connect to server to unlock the accept that won't work. That is a upstream bug...
Reported as upstream bugzilla 53971
Should be assigned for inclusion in future EWS release.
Think we should just check in shutdownAccept if the string address is "::" and try to connect with "::1" I'm just shooting at random here :)
Assigning to David for inclusion in future EWS release.
Please file a doc bz and file this into Known issues section.
I will, its not resolved.
Release Notes Docs Status: Added: Not Yet Documented
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Known Issue Release Notes Text: Added: When an IPv6 address is used to start Tomcat 6 or 7 on Windows (for example <Connector port="8080" protocol="HTTP/1.1" address="::" />) and results in a significantly slowed down shutdown process when Tomcat is sunsequently shut down. During the shutdown process, the catalina.log file logs a warning for this shutdown: WARNING: Acceptor thread [http-0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8080-Acceptor-0] failed to unlock. Forcing hard socket shutdown
Affects: Added: Release Notes
Writer: Added: mhusnain
Release Notes Docs Status: Removed: Documented as Known Issue Writer: Removed: mhusnain Release Notes Text: Removed: When an IPv6 address is used to start Tomcat 6 or 7 on Windows (for example <Connector port="8080" protocol="HTTP/1.1" address="::" />) and results in a significantly slowed down shutdown process when Tomcat is sunsequently shut down. During the shutdown process, the catalina.log file logs a warning for this shutdown: WARNING: Acceptor thread [http-0%3A0%3A0%3A0%3A0%3A0%3A0%3A0-8080-Acceptor-0] failed to unlock. Forcing hard socket shutdown Docs QE Status: Removed: NEW
I can do that, anyone against to be the public bug ?
It is reported upstream so it MUST be public.
Set to public
Thanks, Libor. Assuming there are no objections to doc text and setting flag to + to indicate a final draft for release notes.
There are several upstream and jira threads some with several patches that affect related bits of code. The code involved has been refactored in 7.0.40 and again in 7.0.47. This bug was first recorded in 2012. We've since updated the source. Maybe this bz isn't relevant any more and should be updated to modified so it can be verified.
Problem still persists in T 6.0.41 and T 7.0.54. Stopping is lasting around 10-15s with address="::" more than without it.
and warning in catalina.out (T6 and T7) is still the same: Jun 27, 2014 5:08:19 AM org.apache.tomcat.util.net.AprEndpoint stopInternal WARNING: Acceptor thread [http-apr-0:0:0:0:0:0:0:0-8080-Acceptor-0] failed to unlock. Forcing hard socket shutdown.
Is it still the same with the BIO/JIO connector?
Its only problem when we use the APR/native connector.
Keep it as a known issue at least for apr/native. The work-around now is to use BIO/JIO or NIO (tomcat7), it was just partially fixed.