Error synchronizing: Could not reserve enough space for 1048576KB Object heap

Asked

Viewed 388 times

0

This error appears when I try to synchronize my project in Android Studio, how to solve it?

Error:Unable to start the daemon process.
This problem Might be caused by incorrect Configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide Chapter on the daemon at >http://gradle.org/docs/2.4/userguide/gradle_daemon.html
Please read the following process output to find out more:


Error occurred During initialization of VM
Could not reserve enough space for 1048576KB Object heap
Java Hotspot(TM) Client VM Warning: ignoring option Maxpermsize=256m; support was Removed in 8.0

  • Good evening Carlos, I didn’t understand the "failed" in the title, I believe it was another word I wanted to use, make more intuitive titles, read: http://answall.com/help/quality-standards-error - At the moment I already edited, see how it turned out.

  • Good evening, would you like to know if the answer helped you? If not, please report if the problem persists even after trying?

1 answer

1

By error message it seems to me that the reserved space has been exceeded and the following message:

Java Hotspot(TM) Client VM Warning: ignoring option Maxpermsize=256m; support was Removed in 8.0

It means no more support for MaxPermSize version (which is probably your version of JDK/Java).

This answer in Soen and this, gives a good idea of how to solve.

MaxPermSize set the permanent generated maximum size in bytes, however it was discontinued in JDK 8 and replaced by MaxMetaspaceSize

According to the compatibility guide:

Sector: Hotspot / gc

  • Description

    The Permsize and Maxpermsize command line have been removed and are ignored. If one of these commands is used an alert will be issued for each of them:

    Java HotSpot(TM) Server VM warning: ignoring option PermSize=32m; support was removed in 8.0
    
    Java HotSpot(TM) Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
    

Browser other questions tagged

You are not signed in. Login or sign up in order to post.