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

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

                Author: ASF GitHub Bot
            Created on: 19/Jul/19 12:58
            Start Date: 19/Jul/19 12:58
    Worklog Time Spent: 10m 
      Work Description: brusdev commented on pull request #2759: ARTEMIS-2408 
Too many opened FDs after server stops
URL: https://github.com/apache/activemq-artemis/pull/2759#discussion_r305344785
 
 

 ##########
 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:
   After start, stop and another start we have two activateCallbacks for 
FileLockNodeManager one from first start and one from second start. During 
second server start nodeManager.start/setUpServerLockFile is called on the new 
FileLockNodeManager but setLive/writeFileLockStatus is also called on previous 
FileLockNodeManager.
   When setLive/writeFileLockStatus is called even on previous 
FileLockNodeManager the channel is closed (this is right, it is closed on the 
previous stop) so setUpServerLockFile is called an this is the file leak cause. 
So I think that who register an activateCallback for FileLockNodeManager on 
start has to unregister that activateCallback on stop, wdyt?
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 279732)
    Time Spent: 10h 20m  (was: 10h 10m)

> 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: 10h 20m
>  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)

Reply via email to