You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/08/01 14:49:00 UTC

[jira] [Work logged] (ARTEMIS-2408) Too many opened FDs after server stops

     [ https://issues.apache.org/jira/browse/ARTEMIS-2408?focusedWorklogId=286745&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-286745 ]

ASF GitHub Bot logged work on ARTEMIS-2408:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Aug/19 14:48
            Start Date: 01/Aug/19 14:48
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on pull request #2759: ARTEMIS-2408 Too many opened FDs after server stops
URL: https://github.com/apache/activemq-artemis/pull/2759#discussion_r309738512
 
 

 ##########
 File path: artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ActiveMQServerImpl.java
 ##########
 @@ -1269,6 +1269,8 @@ void stop(boolean failoverOnServerShutdown, final boolean criticalIOError, boole
          this.analyzer = null;
       }
 
+      activateCallbacks.clear();
 
 Review comment:
   I see now. .the issue is that a stop(shutdown=true) should clear the activateCallbacks. 
   
   this is not really an issue when running on a real server, but if you call shutdown=true, it means the VM is going down and the process should cleanup anything left behind.
   
   As the callback is leaking, if you reused the server after a stop(shutdown=true) on the testsuite, you will have the activation (on this case the one holding the lock) being called an extra time, what would then cause the file leak.
   
   
   I will send another PR with checking the shutdown clause and add a test to avoid a future leak.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 286745)
    Time Spent: 12h 10m  (was: 12h)

> Too many opened FDs after server stops
> --------------------------------------
>
>                 Key: ARTEMIS-2408
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2408
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Domenico Bruscino
>            Priority: Major
>          Time Spent: 12h 10m
>  Remaining Estimate: 0h
>
> The number of opened FDs after stop the server on the testsuite is much higher than the number before the server is started, when default netty configuration is used.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)