Memory issue with iOS SDK

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

rahulparihar
Posts: 3
Joined: 06 Feb 2017, 19:11

Memory issue with iOS SDK

Postby rahulparihar » 06 Feb 2017, 19:49

Hi,
I am facing memory issues with SFS iOS SDK. SDK uses more than 300mb of memory and app crashes.
Can you please help me in this.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Memory issue with iOS SDK

Postby Lapo » 07 Feb 2017, 08:54

Hi,
we will need the details for this.
What API version you're using?

How did you investigate the potential memory leak?
How do you know it is caused by the SFS API? Can you please share the details?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
rahulparihar
Posts: 3
Joined: 06 Feb 2017, 19:11

Re: Memory issue with iOS SDK

Postby rahulparihar » 07 Feb 2017, 09:36

Lapo wrote:Hi,
we will need the details for this.
What API version you're using?

How did you investigate the potential memory leak?
How do you know it is caused by the SFS API? Can you please share the details?

Thanks


Hi,
We are using Version 1.6.2.

We checked memory usage on XCode, whenever memory usage reaches 300mb app get crashed.

we used SFS API to login in demo project. After login, while receiving data from server,app memory usage increased frequently.
We did not create a single object to parse the login data, just a login request. So, this memory usage is of SFS SDK only.

Thanks
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Memory issue with iOS SDK

Postby Lapo » 07 Feb 2017, 09:42

Hi,
this is not sufficient to understand what is causing the problem. You should profile the application and show us what objects are causing the massive use of memory.

A login to SmartFoxServer will certainly not cause this issue.

Let us know.
Lapo

--

gotoAndPlay()

...addicted to flash games
rahulparihar
Posts: 3
Joined: 06 Feb 2017, 19:11

Re: Memory issue with iOS SDK

Postby rahulparihar » 07 Feb 2017, 10:00

Hi,
I agree, may be server is flooding to much data.
Can you please confirm, Is SFS SDK save all data received from server in memory?
As we did not create a single object to parse data.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Baidu [Spider] and 56 guests