Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-3202

openAtttic takes up too much RAM over time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.3
    • Fix Version/s: None
    • Component/s: Backend: API

      Description

      Can't delete RBD images if got performance errors, but this can be done on the cli.

      UPDATE:
      openATTIC accumulated to much RAM to stay functional (~1.9 GB). RAM usage increases over time, in my test in one hour by around ~200 MB. Currently I can't say if the usage amount will stop increasing at some point, as the maximum RAM usage in my case is only 1.9 GB.
      I've seen that only with python2 (2.7) not sure about python3.

      2019-09-12 12:25:50,816 112508 runsystemd INFO taskqueue.models#run_once - Running 313: ceph.tasks.delete_rbd with [u'318056ea-ed52-3280-9612-54b2ed88175c', u'iscsi-images', u'test4'], {}. Estimated: None
      2019-09-12 12:25:50,825 112508 runsystemd ERROR taskqueue.models#run_once - Failed to run "ceph.tasks.delete_rbd with [u'318056ea-ed52-3280-9612-54b2ed88175c', u'iscsi-images', u'test4'], {}" created "2019-09-12 12:25:47.087882"
      Traceback (most recent call last):
        File "/usr/share/openattic/taskqueue/models.py", line 79, in run_once
          res = task.run_once()
        File "/usr/share/openattic/taskqueue/models.py", line 254, in run_once
          res = self.wrapper.call_now(*self.args, **self.kwargs)
        File "/usr/share/openattic/taskqueue/models.py", line 335, in call_now
          return self._orig_func(*args, **kwargs)
        File "/usr/share/openattic/ceph/tasks.py", line 31, in delete_rbd
          rbd_api.remove(pool_name, image_name)
        File "/usr/share/openattic/ceph/librados.py", line 1196, in remove
          self._call_librados(_remove, timeout=self.RBD_DELETION_TIMEOUT)
        File "/usr/share/openattic/ceph/librados.py", line 1433, in _call_librados
          return call_librados(self.fsid, func, cmd, timeout)
        File "/usr/share/openattic/ceph/librados.py", line 439, in call_librados
          return run_in_external_process(with_client, cmd_name, timeout)
        File "/usr/share/openattic/utilities.py", line 159, in run_in_external_process
          p.start()
        File "/usr/lib64/python2.7/multiprocessing/process.py", line 130, in start
          self._popen = Popen(self)
        File "/usr/lib64/python2.7/multiprocessing/forking.py", line 121, in __init__
          self.pid = os.fork()
      OSError: [Errno 12] Cannot allocate memory
      2019-09-12 12:25:50,831 112508 runsystemd INFO taskqueue.models#finish_task - Task finished: [Errno 12] Cannot allocate memory
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sgmueller Stephan Müller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: