[ 
https://issues.apache.org/jira/browse/DIRMINA-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099777#comment-16099777
 ] 

Emmanuel Lecharny commented on DIRMINA-1069:
--------------------------------------------

I don't know what your code is, so it's hard to tell what you are doing wrong...

Typically, once you have created a Connector, you don't need to create a new 
one to connect to a server.

One good start would be to run a {{lsof <pid>}} command to get a bit more of 
information about what are the sockets/pipes opened by your process.

Also you can tell us which MINA version you are using. 2.0.3 -> 2.0.16 is a big 
vague actually.

> Number of pipe and eventpoll goes up  about 30 when connecting to server with 
> NioSocketConnector
> ------------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-1069
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1069
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.3, 2.0.16
>         Environment: Linux version 2.6.32-431.el6.x86_64(CentOS 65)
> Java 1.7.0_75
>            Reporter: Wenzhi Wu
>            Priority: Critical
>         Attachments: After connecting to server successfully.PNG, Before 
> connecting to server.PNG, File descriptors.PNG
>
>
> When connecting to server with NioSocketConnector,number of pipe and 
> eventpoll goes up about 30.When I connect 1000 times,it will consume more 
> file handles,finally exceed linux maximum limits.I think,maybe it is worser.
> Before connecting to server,number of file descriptors is 269.After it,it 
> becomes 301.
> So,how did everybody solve it?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to