{ "id": "172795", "key": "AC-6083", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2019-01-17T22:06:20.000+0000", "created": "2018-12-28T22:33:13.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-01-17T22:06:21.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When uploading a large file or multiple small files at the same time the ram usage on iOS will sky rocket and is not always garbage collected after the upload is finished or stopped. \r\n\r\nA upload of 100 MB can cause well over 400 MB of ram usage. Repeated uploads will cause the app to crash because it will not be garbage collected always. Multiple small uploads will cause the same issue to happen. \r\n\r\nOn older devices this is a bigger problem because of only having 1 or 2 GB of ram. But with larger file sizes even on newer devices this is a high amount of ram usage for an app. Having jscore set to false in the tiapp.xml seems to make it work better but its still not perfect. \r\n\r\nWhen you start an upload the file is immediately put into ram instead of being read off the disk, when the file is in ram it uses much more ram than the size of the file itself. I do not think the file should be put into ram if that was not done we would avoid this issue altogether. \r\n", "attachment": [], "flagged": false, "summary": "iOS Uploading files causes extremely high ram usage", "creator": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TI SDK 7.5.0GA", "comment": { "comments": [ { "id": "444883", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share a standalone sample code that can be used to reproduce the issue and observe the behavior. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-12-30T21:38:46.000+0000", "updated": "2018-12-30T21:38:46.000+0000" }, { "id": "445386", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nJust passing as follow up here. Are you able to get that sorted out?  Please let us know if you need more help with this issue.\r\n", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-01-16T11:28:59.000+0000", "updated": "2019-01-16T11:28:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }