Could not reserve enough space for 2097152KB object heap - Cordova build

Hi,

Sometime times, when building android project using cordova, I am experiencing below issue. Is there any way to get rid of this.

"Could not reserve enough space for 2097152KB object heap"

Thanks.

RajKumar | Answered# (13)
Reply For This Question
Answer(s) Posted
Could not reserve enough space for 2097152KB object heap - Cordova build

To reserve enough space during cordova build process, below "Option" needs to be added in the "System Variable".

Go to Control Panel --> System --> Click on "Advanced System Settings" or "Change Settings"  --> Click on  "Environment Variables" --> "System Variables" --> Click "New"

Variable Name: _JAVA_OPTIONS

Variable Value: -Xmx512M

You may need to restart to take this into effect.

Raj Kumar | Answered# (13)
Post Your Answer
   Please login to post your answer.
  Member Login
  Email Address  
  Password  
   Sign Up?  
  Privacy   Terms Of Use   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.