Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23736] iOS Titanium.Network.HTTPClient Memory leak

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2017-06-11T17:38:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsios
ReporterSergey Volkov
AssigneeEric Merriman
Created2016-08-05T12:41:52.000+0000
Updated2017-06-14T21:18:33.000+0000

Description

HttpClient response data stays in memory ("Malloc 124,21 MB" on screenshot). Tested on SDK 5.3.1. Simple test app is in attachment.

Attachments

FileDateSize
app.js2016-08-05T12:39:52.000+00002308
leak2.png2016-08-05T12:34:54.000+0000273315

Comments

  1. Hans Knöchel 2016-08-06

    [~s.volkov] I am pretty sure it's not leaking, because files that are downloaded are temporarily stored in the /tmp directory which is flushed as soon as the application is closed. Can you validate that the file is there in the filesystem-memory after closing the app? Otherwise, we might need to disable the caching manually.
  2. Sergey Volkov 2016-09-27

    @hansknoechel, This case is about RAM, not storage. Take a look at screenshot in attachment.
  3. Hans Knöchel 2017-06-11

    Solved these days, see TIMOB-24364.
  4. Lee Morris 2017-06-14

    Closing ticket as duplicate.

JSON Source