directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Natan Abolafya (Jira)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-358) File Descriptor leak on connection failure with LdapConnectionTemplate
Date Fri, 08 May 2020 08:40:00 GMT

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

Natan Abolafya commented on DIRAPI-358:
---------------------------------------

I have tried 2.0.1 and it's the same unfortunately.

 

The limit assigned by the default Ubuntu, 1024. In normal cases the connection limit is not
causing any issues on heavy load either. But when there is a leak on connection failure, that's
a different situation.

 

I didn't have time to create a minimal reproducing application unfortunately, so I'm using
our application which has its own connections here and there. Here are the extra file descriptors
after aI make two attempts to a non existing LDAP server.

 
{quote}java 19710 czd-ca 232u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 233r FIFO 0,13 0t0 4871838 pipe
java 19710 czd-ca 234w FIFO 0,13 0t0 4871838 pipe
java 19710 czd-ca 235u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 236r FIFO 0,13 0t0 4871839 pipe
java 19710 czd-ca 237w FIFO 0,13 0t0 4871839 pipe
java 19710 czd-ca 238u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 239r FIFO 0,13 0t0 4871840 pipe
java 19710 czd-ca 240w FIFO 0,13 0t0 4871840 pipe
java 19710 czd-ca 241u IPv6 4871846 0t0 TCP 10.97.159.42:33974->172.17.40.29:ldap (SYN_SENT)
java 19710 czd-ca 242u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 243r FIFO 0,13 0t0 4871842 pipe
java 19710 czd-ca 244w FIFO 0,13 0t0 4871842 pipe
java 19710 czd-ca 245u IPv6 4871847 0t0 TCP 10.97.159.42:33976->172.17.40.29:ldap (SYN_SENT)
{quote}
 

And this is after some 10-20 seconds

 
{quote}java 19710 czd-ca 232u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 233r FIFO 0,13 0t0 4871838 pipe
java 19710 czd-ca 234w FIFO 0,13 0t0 4871838 pipe
java 19710 czd-ca 235u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 236r FIFO 0,13 0t0 4871839 pipe
java 19710 czd-ca 237w FIFO 0,13 0t0 4871839 pipe
java 19710 czd-ca 238u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 239r FIFO 0,13 0t0 4871840 pipe
java 19710 czd-ca 240w FIFO 0,13 0t0 4871840 pipe
java 19710 czd-ca 242u a_inode 0,14 0 12414 [eventpoll]
java 19710 czd-ca 243r FIFO 0,13 0t0 4871842 pipe
java 19710 czd-ca 244w FIFO 0,13 0t0 4871842 pipe
{quote}
 

> File Descriptor leak on connection failure with LdapConnectionTemplate
> ----------------------------------------------------------------------
>
>                 Key: DIRAPI-358
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-358
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 2.0.0.AM4, 2.0.0, 2.0.1
>            Reporter: Natan Abolafya
>            Priority: Major
>
> Seems to have appeared on AM4.
>  
> We had two instances crashing after half an hour outage on the LDAP server because the
process ran out of file descriptor limit.
>  
>  
> {noformat}
> var template = createLdapConnectionTemplate();
> template.searchFirst(....);
> {noformat}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Mime
View raw message