Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-9569

FS not close file descriptors for call recordings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8
    • Component/s: core
    • Security Level: public
    • Labels:
      None
    • Environment:
      CentOS 7 virtualied in ESXi 6.0
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      CentOS
    • Distribution Version:
      CentOS 7
    • lsb_release:
      Hide
      [root@fs2 freeswitch]# lsb_release -a
      LSB Version: :core-4.1-amd64:core-4.1-noarch
      Distributor ID: CentOS
      Description: CentOS Linux release 7.2.1511 (Core)
      Release: 7.2.1511
      Codename: Core
      Show
      [ root@fs2 freeswitch]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.2.1511 (Core) Release: 7.2.1511 Codename: Core
    • Compiler:
      gcc
    • Compiler Version:
      gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
    • FreeSWITCH GIT Revision:
      0557e25
    • GIT Master Revision hash::
      _STOP_

      Description

      In kazoo cluster is enabled call recording.
      If file modifiction time is 2 hours old then call recordings is deleted by cron.

      Today I find that all free space on /tmp partition is used by deleted call recordings. This mean that file descriptors is stil open by FreeSwitch. It may be related to call recording itself or to mod_http_cache used to upload call recording.

      [root@fs2 ~]# lsof -p 1336 | grep tmp | tail
      freeswitc 1336 freeswitch 378u REG 0,36 0 13539857 /tmp/124eb6bb6f45f360e951e857e1c67d69.mp3 (deleted)
      freeswitc 1336 freeswitch 380u REG 0,36 0 3033110 /tmp/911fb927f11001be47d0584766202f59.mp3 (deleted)
      freeswitc 1336 freeswitch 386u REG 0,36 0 1981205 /tmp/7e58ce31c6f4418cd6c82cc5883549c4.mp3 (deleted)
      freeswitc 1336 freeswitch 387u REG 0,36 0 9869676 /tmp/90f16192a3e062ecbd85e1a315036b92.mp3 (deleted)
      freeswitc 1336 freeswitch 392u REG 0,36 0 13526841 /tmp/05f813b59dadc41499f2a743edee8c56.mp3 (deleted)
      freeswitc 1336 freeswitch 399u REG 0,36 0 8779916 /tmp/ffe2bf38c6ffa1a94145916f7369ee2b.mp3 (deleted)
      freeswitc 1336 freeswitch 402u REG 0,36 0 13545204 /tmp/5ac4261eee015c9d072255785ea688bc.mp3
      freeswitc 1336 freeswitch 403u REG 0,36 0 13545928 /tmp/02806dcc489cff75411118aad39e186e.mp3
      freeswitc 1336 freeswitch 406u REG 0,36 0 3126347 /tmp/eef420fc70d397a47ee3d718343d031e.mp3 (deleted)
      freeswitc 1336 freeswitch 450u REG 0,36 0 13542511 /tmp/0a132f693e19dbcd03b09040404413ea.mp3 (deleted)
      [root@fs2 ~]#
      [root@fs2 ~]#
      [root@fs2 ~]# lsof -p 1336 | grep tmp | wc -l
      76

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              safarov Sergey Safarov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: