You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2009/08/26 17:19:50 UTC

[jira] Created: (AMQ-2366) File leak in KahaDB file lock - slave exhausts OS fd limit

File leak in KahaDB file lock - slave exhausts OS fd limit
----------------------------------------------------------

                 Key: AMQ-2366
                 URL: https://issues.apache.org/activemq/browse/AMQ-2366
             Project: ActiveMQ
          Issue Type: Bug
          Components: Message Store
    Affects Versions: 5.3.0
            Reporter: Gary Tully
            Assignee: Gary Tully
             Fix For: 5.3.0


If I follow the logs, the slave brokers emit this message for a while:
 
Database /opt/fusemq/data/dev-broker1/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/opt/fusemq/data/dev-broker1/kahadb/lock' could
not be locked.
 
Then, it switches to
 
Database /opt/fusemq/data/dev-broker1/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: /opt/fusemq/data/dev-broker1/kahadb/lock (Too many open files)

lsof shows loads of fds allocated to the slave broker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQ-2366) File leak in KahaDB file lock - slave exhausts OS fd limit

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53804#action_53804 ] 

Gary Tully commented on AMQ-2366:
---------------------------------

KahaDB persistence configured as follows:

<persistenceAdapter>
            <!-- Config for high throughput, default max file size is 32 MiB. -->
            <kahaDB
                directory="${activemq.base}/data"
                indexWriteBatchSize="1000"
                enableIndexWriteAsync="true"
                enableJournalDiskSyncs="false"
            />
  </persistenceAdapter>

> File leak in KahaDB file lock - slave exhausts OS fd limit
> ----------------------------------------------------------
>
>                 Key: AMQ-2366
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2366
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.3.0
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.3.0
>
>
> If I follow the logs, the slave brokers emit this message for a while:
>  
> Database /opt/fusemq/data/dev-broker1/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/opt/fusemq/data/dev-broker1/kahadb/lock' could
> not be locked.
>  
> Then, it switches to
>  
> Database /opt/fusemq/data/dev-broker1/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: /opt/fusemq/data/dev-broker1/kahadb/lock (Too many open files)
> lsof shows loads of fds allocated to the slave broker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-2366) File leak in KahaDB file lock - slave exhausts OS fd limit

Posted by "Gary Tully (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2366.
-----------------------------

    Resolution: Fixed

fix applied to r808041

> File leak in KahaDB file lock - slave exhausts OS fd limit
> ----------------------------------------------------------
>
>                 Key: AMQ-2366
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2366
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.3.0
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>             Fix For: 5.3.0
>
>
> If I follow the logs, the slave brokers emit this message for a while:
>  
> Database /opt/fusemq/data/dev-broker1/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: File '/opt/fusemq/data/dev-broker1/kahadb/lock' could
> not be locked.
>  
> Then, it switches to
>  
> Database /opt/fusemq/data/dev-broker1/kahadb/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.FileNotFoundException: /opt/fusemq/data/dev-broker1/kahadb/lock (Too many open files)
> lsof shows loads of fds allocated to the slave broker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.