{"action":"created","issue":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/369","repository_url":"https://api.github.com/repos/Alignak-monitoring/alignak","labels_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/369/labels{/name}","comments_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/369/comments","events_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/369/events","html_url":"https://github.com/Alignak-monitoring/alignak/issues/369","id":179235378,"number":369,"title":"Loading large configuration","user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T13:55:42Z","updated_at":"2016-09-26T13:58:13Z","closed_at":null,"body":"When loading a large configuration (), an exception is raised in the Arbiter process when serializing the configuration:\r\n```\r\n[1474897837] INFO: [Alignak] Number of Contacts : 638\r\n[1474897837] INFO: [Alignak] Number of Hosts : 9647\r\n[1474897837] INFO: [Alignak] Number of Services : 56238\r\n[1474897837] INFO: [Alignak] Number of Commands : 1317\r\n[1474897837] INFO: [Alignak] Total number of hosts in all realms: 9647\r\n...\r\n...\r\n...\r\nConfiguration loading exception: \r\n***** Traceback: %s Traceback (most recent call last):\r\n  File \"/home/alignak/alignak-backend-import/alignak_backend_import/cfg_to_backend.py\", line 223, in __init__\r\n    self.arbiter.load_config_file()\r\n  File \"/usr/local/lib/python2.7/dist-packages/alignak/daemons/arbiterdaemon.py\", line 399, in load_config_file\r\n    self.conf.prepare_for_sending()\r\n  File \"/usr/local/lib/python2.7/dist-packages/alignak/objects/config.py\", line 1463, in prepare_for_sending\r\n    whole_conf_pack = serialize(self)\r\n  File \"/usr/local/lib/python2.7/dist-packages/alignak/misc/serialization.py\", line 64, in serialize\r\n    return json.dumps(o_dict, ensure_ascii=False)\r\nMemoryError\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/comments/249576912","html_url":"https://github.com/Alignak-monitoring/alignak/issues/369#issuecomment-249576912","issue_url":"https://api.github.com/repos/Alignak-monitoring/alignak/issues/369","id":249576912,"user":{"login":"mohierf","id":2932687,"avatar_url":"https://avatars.githubusercontent.com/u/2932687?v=3","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T13:58:13Z","updated_at":"2016-09-26T13:58:13Z","body":"@Seb-Solon : I think that this one needs your knowledge for serialization ... I found this on SO about this problem: http://stackoverflow.com/questions/24239613/memoryerror-using-json-dumps"}}
{"actor":{"display_login":"mohierf"}}