Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Degraded allocation. Consider increasing nursery-size if the warning persists

I am getting the following message when opening a new screen I have added to my app

Warning: Degraded allocation. Consider increasing nursery-size if the warning persists.

Im assuming there is a build argument I can use to increase the nursery size. Does anyone know what the argument is and how to format it?

like image 956
JonBull2013 Avatar asked Mar 23 '23 15:03

JonBull2013


1 Answers

You're probably pinning too many objects, or using too many threads.

According to http://www.mono-project.com/Working_With_SGen#Nursery_Size you can set the MONO_GC_PARAMS environment variable to nursery-size=8m to double the nursery-size.

You set Environment variable for a xamarin.iOS project in Project Options > Run > General

like image 64
Stephane Delcroix Avatar answered Apr 05 '23 22:04

Stephane Delcroix