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/09/02 09:40:48 UTC

[Bug 56907] New: Threads leak

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

            Bug ID: 56907
           Summary: Threads leak
           Product: Tomcat 8
           Version: 8.0.11
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: gaponenkov@haulmont.com

Hello.

While using WebSocket implementation of versions 7.0.55 and 8.0.11 leaking
threads were noticed. 
Use method WsWebSocketContainer.connection (endpoint,
clientEndpointConfiguration, path) to reproduce this issue. 
The URL to specify a non-existent page. As a result, the connection will return
an error "404 Not Found", but the threads that have been created in the class
AsyncChannelWrapperSecure will stay alive for a long time (source of threads
creation: private final ExecutorService executor = Executors.newFixedThreadPool
(2, new SecureIOThreadFactory ());). 
Count of threads are increasing with every reconnect attempt to non-existent
URL.
Those will live for a very long time, until you disable the application that
calls the connection WsWebSocketContainer.connection (...). 
Leakage threads can be observed using the jvisualvm program. 

Please, make it possible to deal with such kind of situations and destroy
unused threads.

-- 
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 56907] Threads leak

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

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

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report.

This has been fixed in 8.0.x for 8.0.13 onwards and in 7.0.x for 7.0.56
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