{"action":"opened","issue":{"url":"https://api.github.com/repos/kasketis/netfox/issues/46","labels_url":"https://api.github.com/repos/kasketis/netfox/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/kasketis/netfox/issues/46/comments","events_url":"https://api.github.com/repos/kasketis/netfox/issues/46/events","html_url":"https://github.com/kasketis/netfox/issues/46","id":127479968,"number":46,"title":"Large increase in memory usage with netfox enabled","user":{"login":"radianttap","id":80697,"avatar_url":"https://avatars.githubusercontent.com/u/80697?v=3","gravatar_id":"","url":"https://api.github.com/users/radianttap","html_url":"https://github.com/radianttap","followers_url":"https://api.github.com/users/radianttap/followers","following_url":"https://api.github.com/users/radianttap/following{/other_user}","gists_url":"https://api.github.com/users/radianttap/gists{/gist_id}","starred_url":"https://api.github.com/users/radianttap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radianttap/subscriptions","organizations_url":"https://api.github.com/users/radianttap/orgs","repos_url":"https://api.github.com/users/radianttap/repos","events_url":"https://api.github.com/users/radianttap/events{/privacy}","received_events_url":"https://api.github.com/users/radianttap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T16:08:22Z","updated_at":"2016-01-19T16:08:22Z","closed_at":null,"body":"I have an app which is doing somewhat large JSON imports very often in the background, like every 8-20s. The JSONs are parsed and saved into Core Data, all on the same backgorund thread/MOC.\r\n\r\nWith netfox compiled in, the memory usage became very large. \r\nI was not aware of at first that netfox is the cause of this, so I was removing my background operations one my one until I was left with just one call. Without netfox, app would take 40-44MB. With netfox, it was 84MB. When I added another JSON call following the first one, without netfox memory usage was around 54MB, with netfox it was 150MB. This was all without netfox UI ever being triggered - it was just doing its thing in the background.\r\n\r\nIf it helps - both of these JSON calls cause reading/updating and creating a lot of NSManagedObjects from my Core Data store. This all happens in background MOC/thread, thus it's gone from memory as soon as it's processed. But if netfox is somehow keeping something from that thread retained, then it could be a reason that all of the objects from the thread are staying in memory.\r\n\r\nMy app is Objective-C based and I really don't know Swift thus can't help debugging this.\r\nStill, though it's worth reporting this. "}}