4

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 Answer 1

7

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

1
  • Before invoking mono with your exe, place or enter export MONO_GC_PARAMS=nursery-size=8m in script or on command line.
    – CCS
    Commented Sep 5, 2014 at 2:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.