Forum Xamarin.Forms

Application is taking 20Mb memory after first time whenever It is opened.

I am developing an application whose current size is around 100Mb. My problem is whenever the app is opening after first time It is taking 20Mb more. I tried to find but not able to find. May anyone can please suggest me what I am missing. Do I need to use GarbageCollector or anything else. If anyone could help regarding this will be a great help.

Answers

  • YelinZhYelinZh Member, Xamarin Team Xamurai
    edited September 2019

    When opening an application, space is required to handle program operations. Just like the application on Android is with a separate virtual machine, which means each open application will open a separate virtual machine. This design is to avoid the virtual machine crash and cause the entire system to crash, but the cost is more memory.

    Similar issue.
    https://forums.xamarin.com/discussion/71253/xamarin-apps-requires-more-space-then-normal-android-or-ios-app

  • My issue is actually If I am opening app twice it is adding 50Mb to memory like that it is adding regularly. Is it normal behaviour? I think some memory leaking issue.

  • YelinZhYelinZh Member, Xamarin Team Xamurai
    edited September 2019

    The application size is increasing may because it has storaged some file. It not memory leak, memory leak is an issue about operation memory instead of storage memory.

Sign In or Register to comment.