[
https://issues.apache.org/activemq/browse/AMQ-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54628#action_54628
]
Danilo Tuler commented on AMQ-2440:
-----------------------------------
- Start a server with a single stomp+nio transport. StompDropTestServer.java
attached.
- Now you need a way to see the TCP ports opened by the server process. netstat
will do, but I'm using "Process Explorer" [1] on Windows XP. Choose the process
on the list, go to properties page, TCP/IP tab.
- For the client I'm using the gozirra library, which is a java stomp client
[2]. I think StompConnection from ActiveMQ would lead to the same issue. But my
application already uses gozirra. Create a client, StompDropTestConsumer.java
attached.
No matter if the client calls disconnect or not, the server TCP ports will
still be opened when the client terminates (and won't be reused).
[1] http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
[2] http://www.germane-software.com/software/Java/Gozirra/
> stomp+nio leaking file descriptor on client drop
> ------------------------------------------------
>
> Key: AMQ-2440
> URL: https://issues.apache.org/activemq/browse/AMQ-2440
> Project: ActiveMQ
> Issue Type: Bug
> Components: Transport
> Affects Versions: 5.3.0
> Environment: Windows XP
> Reporter: Danilo Tuler
> Assignee: Dejan Bosanac
> Attachments: AMQ-2440-1.txt, StompDropTestConsumer.java,
> StompDropTestServer.java
>
>
> The bug is observed on code checkout from
> https://svn.apache.org/repos/asf/activemq/tags/activemq-5.3.0
> A server is initiated with stomp+nio transport on port 61612.
> A client connects. A SelectorWorker is created on SelectorManager:68.
> If the client drops the connection an exception is received at
> StompNIOTransport:91.
> "java.io.IOException: An existing connection was forcibly closed by the
> remote host".
> But selector are not cleaned up. It works with stomp transport. But not with
> stomp+nio.
> What I see in the end is an increasing number of "connections" if the JVM.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.