Is there a way to increase java heap size? java.lang.OutOfMemory

dan.b412's Avatar


18 Jun, 2017 10:55 PM

I am trying to implement notifications with One Signal, in my app in Xamarin.Forms, but when I try to build it on App Veyor the build crashes, due to the heap size.

In my local machine I adjusted the configurations to maximize heap size and it worked fine.

I don't know if this is the best solution, but is there any way to increase maximum heap size in app veyor configurations?

Thank you very much.

AppVeyor Build

AppVeyor .yml

Pull Request that fails

  1. Support Staff 1 Posted by Feodor Fitsner on 19 Jun, 2017 02:47 AM

    Feodor Fitsner's Avatar

    How do you increase heap size locally? Shouldn't the same method work on AppVeyor?

  2. 2 Posted by dan.b412 on 19 Jun, 2017 10:19 PM

    dan.b412's Avatar

    This line was changed in the Android.csproj but it did not affected the build in AppVeyor.

    -    <JavaMaximumHeapSize>1G</JavaMaximumHeapSize>
    +   <JavaMaximumHeapSize>2G</JavaMaximumHeapSize>
  3. Support Staff 3 Posted by Ilya Finkelshte... on 20 Jun, 2017 02:04 AM

    Ilya Finkelshteyn's Avatar

    Hi Dan,

    We enabled your account to be able to run in different environment (Google cloud engine, where VMs has more memory). Please try to set APPVEYOR_BUILD_WORKER_CLOUD environment variable to GCE and see if this helps. Note that in GCE build start is 3-4 minutes (time needed to create VM).


  4. 4 Posted by dan.b412 on 22 Jun, 2017 05:12 AM

    dan.b412's Avatar

    Thank you very much @Ilya and @Feodor.

    This new environment worked like a charm.

    Thank you very much for your time and attention.

  5. dan.b412 closed this discussion on 22 Jun, 2017 05:12 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac