发布于2021-05-29 22:49 阅读(1445) 评论(0) 点赞(3) 收藏(0)
今天在使用IDEA运行springboot项目的时候,启动失败并报错,如下:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error:Abnormal build process termination:
D:\Java\jdk1.8.0_211\bin\java.exe -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dpreload.project.path=E:/server-saveserver "-Dpreload.config.path=D:/IntelliJ IDEA 2018.2.5/.IntelliJIdea/config/options" -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-8248413857144379764 -Dfile.encoding=GBK -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2018.2 "-Didea.home.path=D:\IntelliJ IDEA 2018.2.5" "-Didea.config.path=D:/IntelliJ IDEA 2018.2.5/.IntelliJIdea/config" "-Didea.plugins.path=D:/IntelliJ IDEA 2018.2.5/.IntelliJIdea/config\plugins" "-Djps.log.dir=D:/IntelliJ IDEA 2018.2.5/.IntelliJIdea/system/log/build-log" "-Djps.fallback.jdk.home=D:/IntelliJ IDEA 2018.2.5/jre64" -Djps.fallback.jdk.version=1.8.0_152-release -Dio.netty.noUnsafe=true "-Djava.io.tmpdir=D:/IntelliJ IDEA 2018.2.5/.IntelliJIdea/system/compile-server/server-saveserver_b9d2474c/_temp_" -Djps.backward.ref.index.builder=true -Dkotlin.incremental.compilation=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\Think\AppData\Local\Temp\kotlin-idea-1345231103134145255-is-running\" -classpath "D:/IntelliJ IDEA 2018.2.5/lib/jps-launcher.jar;D:/Java/jdk1.8.0_211/lib/tools.jar;D:/IntelliJ IDEA 2018.2.5/lib/optimizedFileManager.jar" org.jetbrains.jps.cmdline.Launcher "D:/IntelliJ IDEA 2018.2.5/lib/jps-model.jar;D:/IntelliJ IDEA 2018.2.5/lib/netty-buffer-4.1.25.Final.jar;D:/IntelliJ IDEA 2018.2.5/lib/jdom.jar;D:/IntelliJ IDEA 2018.2.5/lib/guava-23.6-jre.jar;D:/IntelliJ IDEA 2018.2.5/lib/httpcore-4.4.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/maven-builder-support-3.3.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/httpclient-4.5.5.jar;D:/IntelliJ IDEA 2018.2.5/lib/maven-repository-metadata-3.3.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/jps-builders-6.jar;D:/IntelliJ IDEA 2018.2.5/lib/trove4j.jar;D:/IntelliJ IDEA 2018.2.5/lib/commons-codec-1.10.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-dependency-resolver.jar;D:/IntelliJ IDEA 2018.2.5/lib/oro-2.0.8.jar;D:/IntelliJ IDEA 2018.2.5/lib/nanoxml-2.2.3.jar;D:/IntelliJ IDEA 2018.2.5/lib/maven-model-builder-3.3.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/resources_en.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-util-1.1.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/forms_rt.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-impl-1.1.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/maven-aether-provider-3.3.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/maven-model-3.3.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-spi-1.1.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/jna-platform.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-transport-file-1.1.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/idea_rt.jar;D:/IntelliJ IDEA 2018.2.5/lib/lz4-1.3.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/plexus-component-annotations-1.6.jar;D:/IntelliJ IDEA 2018.2.5/lib/jna.jar;D:/IntelliJ IDEA 2018.2.5/lib/protobuf-java-3.4.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/log4j.jar;D:/IntelliJ IDEA 2018.2.5/lib/asm-all.jar;D:/IntelliJ IDEA 2018.2.5/lib/netty-transport-4.1.25.Final.jar;D:/IntelliJ IDEA 2018.2.5/lib/javac2.jar;D:/IntelliJ IDEA 2018.2.5/lib/platform-api.jar;D:/IntelliJ IDEA 2018.2.5/lib/commons-lang3-3.4.jar;D:/IntelliJ IDEA 2018.2.5/lib/netty-common-4.1.25.Final.jar;D:/IntelliJ IDEA 2018.2.5/lib/forms-1.1-preview.jar;D:/IntelliJ IDEA 2018.2.5/lib/jps-builders.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-connector-basic-1.1.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/commons-logging-1.2.jar;D:/IntelliJ IDEA 2018.2.5/lib/netty-resolver-4.1.25.Final.jar;D:/IntelliJ IDEA 2018.2.5/lib/slf4j-api-1.7.25.jar;D:/IntelliJ IDEA 2018.2.5/lib/util.jar;D:/IntelliJ IDEA 2018.2.5/lib/plexus-interpolation-1.21.jar;D:/IntelliJ IDEA 2018.2.5/lib/annotations.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-api-1.1.0.jar;D:/IntelliJ IDEA 2018.2.5/lib/netty-codec-4.1.25.Final.jar;D:/IntelliJ IDEA 2018.2.5/lib/maven-artifact-3.3.9.jar;D:/IntelliJ IDEA 2018.2.5/lib/plexus-utils-3.0.22.jar;D:/IntelliJ IDEA 2018.2.5/lib/aether-transport-http-1.1.0.jar;;D:/IntelliJ IDEA 2018.2.5/lib/gson-2.8.4.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/jarutils.jar;D:/IntelliJ IDEA 2018.2.5/lib/guava-23.6-jre.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/common-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/manifest-merger-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/sdk-common-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/builder-model-3.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/builder-test-api-3.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/ddmlib-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/repository-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/gradle/lib/gradle-api-4.8.jar;D:/IntelliJ IDEA 2018.2.5/lib/gson-2.8.4.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/jarutils.jar;D:/IntelliJ IDEA 2018.2.5/lib/guava-23.6-jre.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/common-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/manifest-merger-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/sdk-common-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/builder-model-3.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/builder-test-api-3.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/ddmlib-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/repository-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/gradle/lib/gradle-api-4.8.jar;D:/IntelliJ IDEA 2018.2.5/plugins/ant/lib/ant-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Groovy/lib/groovy-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Groovy/lib/groovy-rt-constants.jar;D:/IntelliJ IDEA 2018.2.5/plugins/eclipse/lib/eclipse-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/eclipse/lib/common-eclipse-util.jar;D:/IntelliJ IDEA 2018.2.5/plugins/maven/lib/maven-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/maven/lib/plexus-utils-2.0.6.jar;D:/IntelliJ IDEA 2018.2.5/plugins/osmorc/lib/osmorc-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/osmorc/lib/biz.aQute.bndlib-4.0.0.jar;D:/IntelliJ IDEA 2018.2.5/plugins/osmorc/lib/biz.aQute.repository-4.0.0.jar;D:/IntelliJ IDEA 2018.2.5/plugins/osmorc/lib/biz.aQute.resolve-4.0.0.jar;D:/IntelliJ IDEA 2018.2.5/plugins/osmorc/lib/plexus-utils-3.0.10.jar;D:/IntelliJ IDEA 2018.2.5/plugins/osmorc/lib/bundlor-all.jar;D:/IntelliJ IDEA 2018.2.5/plugins/aspectj/lib/aspectj-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/flex/lib/flex-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/flex/lib/flex-shared.jar;D:/IntelliJ IDEA 2018.2.5/plugins/gradle/lib/gradle-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/devkit/lib/devkit-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/JavaEE/lib/javaee-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/JavaEE/lib/jps/jpa-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/webSphereIntegration/lib/jps/webSphere-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/weblogicIntegration/lib/jps/weblogic-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/dmServer/lib/dmServer-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/GwtStudio/lib/gwt-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/GoogleAppEngine/lib/google-app-engine-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/GoogleAppEngine/lib/appEngine-runtime.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Grails/lib/grails-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Grails/lib/grails-compiler-patch.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/jps/android-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/android-common.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/build-common.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/android-rt.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/sdklib.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/common-26.1.2.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/jarutils.jar;D:/IntelliJ IDEA 2018.2.5/plugins/android/lib/layoutlib-api.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Kotlin/lib/kotlin-stdlib.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Kotlin/lib/kotlin-reflect.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Kotlin/lib/kotlin-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Kotlin/lib/android-extensions-ide.jar;D:/IntelliJ IDEA 2018.2.5/plugins/Kotlin/lib/android-extensions-compiler.jar;D:/IntelliJ IDEA 2018.2.5/plugins/javaFX/lib/javaFX-jps-plugin.jar;D:/IntelliJ IDEA 2018.2.5/plugins/javaFX/lib/common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 54117 0e3e7f85-632f-4a7a-a938-402da2b4d659 "D:/IntelliJ IDEA 2018.2.5/.IntelliJIdea/system/compile-server"
Error occurred during initialization of VM
Could not reserve enough space for object heap
报错信息:
Error occurred during initialization of VM
Could not reserve enough space for object heap
从报错信息可知:
是电脑的运行内存不足,导致项目无法启动;
所以只需要释放内存,并等待一段时间,因为电脑响应式需要时间的;
下面提供2种方法,选择其中一种即可:
1. 将电脑上不必要的进程关闭,等待一段时间,然后再启动项目即可!!!
2. 重启电脑,启动IDEA,打开项目,启动项目即可!!!
通过任务管理器可以查看cpu占用率:
关闭占用内存的进程后,等待一段时间,再重新启动项目成功:
原文链接:https://blog.csdn.net/weixin_42585386/article/details/117370583
作者:听说你很拽
链接:http://www.javaheidong.com/blog/article/207833/0e06377b3c93ca479598/
来源:java黑洞网
任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任
昵称:
评论内容:(最多支持255个字符)
---无人问津也好,技不如人也罢,你都要试着安静下来,去做自己该做的事,而不是让内心的烦躁、焦虑,坏掉你本来就不多的热情和定力
Copyright © 2018-2021 java黑洞网 All Rights Reserved 版权所有,并保留所有权利。京ICP备18063182号-2
投诉与举报,广告合作请联系vgs_info@163.com或QQ3083709327
免责声明:网站文章均由用户上传,仅供读者学习交流使用,禁止用做商业用途。若文章涉及色情,反动,侵权等违法信息,请向我们举报,一经核实我们会立即删除!