Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-2058

Too many open file descriptors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Gathering Impact (View Workflow)
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 2.0.3, 2.2.4
    • Fix Version/s: None
    • Component/s: General, Git
    • Labels:
      None
    • Environment:

      standalone; Java 7 Update 51; Mac OS X 10.7.5

    • Last commented by user?:
      true
    • Symptom Severity:
      Major

      Description

      When SourceTree is running for a few days without being turned off, the number of descriptors of opened files becomes too large and eventually the system runs off file descriptors. Most of them are pipes, example output of lsof command is given below.

      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
          3932
      iMac-Evgenia:scripts fedor$ lsof
      COMMAND     PID  USER   FD     TYPE             DEVICE   SIZE/OFF        NODE NAME
      ...
      SourceTre  3021 fedor 3574     PIPE 0xffffff801afcdd30       4096     
      SourceTre  3021 fedor 3575     PIPE 0xffffff801b0591b0       4096   
      SourceTre  3021 fedor 3576     PIPE 0xffffff8035715d60       4096 
      SourceTre  3021 fedor 3577     PIPE 0xffffff8029292310       4096 
      SourceTre  3021 fedor 3578     PIPE 0xffffff8025641c80       4096
      SourceTre  3021 fedor 3579     PIPE 0xffffff802c5a1210       4096
      SourceTre  3021 fedor 3580     PIPE 0xffffff80271e0000       4096
      SourceTre  3021 fedor 3581     PIPE 0xffffff801d400a70       4096
      ...

      After SourceTree is restarted, the number of file descriptors becomes normal. But as the time goes on, their number increases. The following commands are executed with the interval of about 1 - 5 minutes. It looks like some leakage of descriptors.

      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           111
      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           143
      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           158
      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           153
      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           171
      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           178
      iMac-Evgenia:scripts fedor$ lsof | grep "SourceTre" | wc -l
           181

        Attachments

          Issue Links

            Activity

              Dates

              • Created:
                Updated:
                Last commented:
                26 weeks, 6 days ago