降级的分配.如果警告仍然存在,请考虑增加苗圃规模 [英] Degraded allocation. Consider increasing nursery-size if the warning persists

查看:66
本文介绍了降级的分配.如果警告仍然存在,请考虑增加苗圃规模的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开我添加到我的应用程序的新屏幕时,我收到以下消息

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?

推荐答案

您可能固定了太多对象或使用了太多线程.

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

根据 http://www.mono-project.com/Working_With_SGen#Nursery_Size ,您可以设置将MONO_GC_PARAMS环境变量设置为nursery-size=8m可使幼儿园大小增加一倍.

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.

您可以在项目选项>运行>常规中为xamarin.iOS项目设置环境变量

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

这篇关于降级的分配.如果警告仍然存在,请考虑增加苗圃规模的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆