Search Posts

Tag: gc

Xamarin Android App Performance

Java Max Heap Size

Here’s some basic tips to get your app running smoothly: Enable new Garbage Collector Add a text file to your Android project with build action Android Environment and set params. Here’s an example for using the tarjan GC:  

Source: https://blog.xamarin.com/xamarin-android-garbage-collection-improvements/ https://developer.xamarin.com/guides/android/advanced_topics/garbage_collection/#GC_Bridge_Options Java.lang.OutOfMemoryError If you’re getting these it means you haven’t allocated enough memory to Java. To do this, check your Android project’s properties and set Java Max Heap Size to “1G”. Do this […]