Error during initialization of VM Could not reserve enough space for 1572864KB object heap
The error occurred when the virtual machine initialization
could not have stored enough space for 1572864 KB Object heap
Java virtual machine (JVM) allocated more memory than the system had available, so there was not enough space allocated to the JVM to create objects
Solutions:
1. Modify gradle.properties file
to change -xmx1536m to -xmx512m, save, Rebuild
TIP:
-xmx is to set the memory size of the VM, if the program is very memory hungry, you need to set it with this parameter.
-Xmx512m is the maximum amount of heap memory the JVM is allowed to allocate, on demand.
-cp is the classpath, the path to load classes
2, in the personal folder (C:/Users/username /. Gradle or ~ /. Gradle)) create gradle. The properties file, add
org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m
Read More:
- IDEA reports an error Could not reserve enough space for xxxxKB object heap processing
- [Solved] Neo4j Error: Error occurred during initialization of VM Incompatible minimum and maximum heap sizes spec
- [Solved] elasticsearch.bat Running Flashback.: Error occurred during initialization of VM, Error occurred during initializatio
- [Solved] NPM run build package error: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Response Export error on submit request on future invoke, java.lang.OutOfMemoryError: Java heap space
- [Solved] Build Error Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- Node Memory Overflow: FATAL ERROR: Reached heap limit Allocation failed – JavaScript heap out of memory
- [Solved] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of me
- [Solved] Initialization error encountered by JUnit unit test: Method initialization error not found
- Win7 Install .NET Extracting Files: There is not enough disk space……
- [Solved] Postcss Error: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
- [Solved] Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- Solve Error: call_and_retry_last allocation failed – javascript heap out of memory
- Oracle VM VirtualBox open replication virtual machine Error
- [HBase Error]“java.lang.OutOfMemoryError: Requested array size exceeds VM limit”
- [Solved] NPM Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- [Solved] Error: ‘attrition‘ is not an exported object from ‘namespace:rsample‘
- [Solved] Error occurred during connect to primary: exception 3000301: Connection could not be established
- [How to Solve] Unexpected space before function parentheses Error
- [Solved] Virtualenvwrapper.sh error: There was a problem running the initialization hooks.