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
- is duplicated by
-
SRCTREE-3856 Run out of file descriptors
- Closed
-
SRCTREE-4361 File descriptor bug for OSX being referenced improperly.
- Closed
- mentioned in
-
Page Loading...