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

爱⌒轻易说出口 提交于 2019-12-22 08:29:14

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/18464295/degraded-allocation-consider-increasing-nursery-size-if-the-warning-persists

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!