{"action":"closed","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/7615","labels_url":"https://api.github.com/repos/odoo/odoo/issues/7615/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/7615/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/7615/events","html_url":"https://github.com/odoo/odoo/issues/7615","id":94983340,"number":7615,"title":"Odoo is not compatible to psutil 3.0.1","user":{"login":"csrocha","id":2170163,"avatar_url":"https://avatars.githubusercontent.com/u/2170163?v=3","gravatar_id":"","url":"https://api.github.com/users/csrocha","html_url":"https://github.com/csrocha","followers_url":"https://api.github.com/users/csrocha/followers","following_url":"https://api.github.com/users/csrocha/following{/other_user}","gists_url":"https://api.github.com/users/csrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/csrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csrocha/subscriptions","organizations_url":"https://api.github.com/users/csrocha/orgs","repos_url":"https://api.github.com/users/csrocha/repos","events_url":"https://api.github.com/users/csrocha/events{/privacy}","received_events_url":"https://api.github.com/users/csrocha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-14T16:25:04Z","updated_at":"2015-11-12T10:46:08Z","closed_at":"2015-11-12T10:46:08Z","body":"PSUTIL (https://pypi.python.org/pypi/psutil) use memory_info until get_memory_info.\r\n\r\nFile affected: openerp/service/server.py\r\n\r\n    diff --git a/openerp/service/server.py b/openerp/service/server.py\r\n    index fdd95a7..0405e8d 100644\r\n    --- a/openerp/service/server.py\r\n    +++ b/openerp/service/server.py\r\n    @@ -695,7 +695,7 @@ class Worker(object):\r\n                 _logger.info(\"Worker (%d) max request (%s) reached.\", self.pid, self.request_count)\r\n                 self.alive = False\r\n             # Reset the worker if it consumes too much memory (e.g. caused by a memory leak).\r\n    -        rss, vms = psutil.Process(os.getpid()).get_memory_info()\r\n    +        rss, vms = psutil.Process(os.getpid()).memory_info()\r\n             if vms > config['limit_memory_soft']:\r\n                 _logger.info('Worker (%d) virtual memory limit (%s) reached.', self.pid, vms)\r\n                 self.alive = False      # Commit suicide after the request.\r\n"}}