Skip to content

Memory consuption #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adamdbradley opened this issue Jan 11, 2014 · 6 comments
Closed

Memory consuption #402

adamdbradley opened this issue Jan 11, 2014 · 6 comments
Assignees

Comments

@adamdbradley
Copy link
Contributor

I've taken this demo source (http://codepen.io/ionic/pen/HjnFx), compiled it with Cordova and ran it through XCode on my iOS device. All I've done in the app was navigating back and forth for 5 mins. During that time the memory consumption went from 19MB to 30MB.

I haven't run any other tests and I don't know if this is related to Ionic, Cordova or whatever. I just thought I should share this with you as I find this to be very alerting.

Cordova 3.3.1, Ionic 0.9.19, XCode 5.0.2, iOS 7.0.4 on iPhone 5

http://forum.ionicframework.com/t/memory-concerns/487

@mlynch
Copy link
Contributor

mlynch commented Jan 11, 2014

probably just holding a reference to something or pushing something onto the stack that already exists in the ViewService. I hope it's not in ui-router

@ghost ghost assigned adamdbradley Jan 11, 2014
@adamdbradley
Copy link
Contributor Author

In tests I've disabled pretty much all Ionic code except angular and ui-router and still seeing similar results.

Related issues:

@adamdbradley
Copy link
Contributor Author

I'm hoping this change is a large part of the issue:
d4a9bed#diff-4259f5bf10c55d3185cee88c416f9dfdL2789

@calendee
Copy link

FYI : I see no difference in memory consumption from when I posted in http://forum.ionicframework.com/t/memory-concerns/487.

I've added even more code and features and the memory utilization is the same. I'm starting at around 24MB and creep up to about 30MB and stay there no matter what I do.

I really feel this is just the weight of Angular - not specific to Ionic.

@adamdbradley
Copy link
Contributor Author

With the recent fixes, and not seeing the memory climb like before, I'm going to close this one.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants