增加内存

时间:2016-10-26 17:05:53

标签: java intellij-idea heap

在IntelliJ 2016.1.1

中将堆大小增加到2048后,我收到以下错误

(我用32位的Java运行,因为包含的库在64位中不可用。)

到目前为止,由于JVM,我没有遇到编译器错误的经验,因此感谢任何帮助。

错误:异常构建过程终止: " C:\ Program Files(x86)\ Java32 \ jdk1.8.0_101 \ bin \ java" -Xmx2048m -Djava.awt.headless = true -Djava.endorsed.dirs = \" \" -Djdt.compiler.useSingleThread = true -Dcompile.parallel = false -Drebuild.on.dependency.change = true -Djava.net.preferIPv4Stack = true -Dio.netty.initialSeedUniquifier = -4014826147147167521 -Dfile.encoding = windows-1252 - Djps.file.types.component.name = FileTypeManager -Duser.language = fr -Duser.country = FR -Didea.paths.selector = IntelliJIdea2016.1" -Didea.home.path = C:\ Program Files( x86)\ JetBrains \ IntelliJ IDEA 2016.1.1" -Didea.config.path = C:\ Users \ Yann.IntelliJIdea2016.1 \ config -Didea.plugins.path = C:\ Users \ Yann.IntelliJIdea2016.1 \ config \ plugins -Djps.log.dir = C:/ Users / Yann / .IntelliJIdea2016.1 / system / log / build-log -Djava.io.tmpdir = C:/Users/Yann/.IntelliJIdea2016.1/system/compile-server/ temp - Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path = \" C:\ Users \ Yann \ AppData \ Local \ Temp \ kotlin-idea-5807041744380420603-is-running \" -classpath" C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jps-launcher.jar; C:/ Program Files(x86)/Java32/jdk1.8.0_101/lib/tools .jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / optimizedFileManager.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / ecj-4.5.2的.jar" org.jetbrains.jps.cmdline.Launcher" C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / resources_en.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1 .1 / lib / oromatcher.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / protobuf-2.5.0.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1 .1 / lib / jsr166e.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / asm-all.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 /lib/util.jar;C:/Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / javac2.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / annotations .jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jna-platform.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / nanoxml-2.2 .3.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jps-builders.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / trove4j .jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / rt / jp s-plugin-system.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jps-model.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / forms_rt.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jna.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / idea_rt。 jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / netty-all-4.1.0.Beta8.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jgoodies-forms.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / jdom.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / log4j.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / picocontainer.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / snappy-in- java-0.3.1.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / openapi.jar ;; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins /gradle/lib/commons-io-1.4.jar;C:/Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plu gins / gradle / lib / gradle-base-services-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-base-services-groovy-2.9.jar ; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-cli-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins /gradle/lib/gradle-core-2.9.jar;C:/Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-jps-plugin.jar; C:/ Program Files( x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-messaging-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle- model-core-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-model-groovy-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-native-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-resources-2.9 .jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / p lugins / gradle / lib / gradle-tooling-api-2.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-tooling-extension-api.jar; C :/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-tooling-extension-impl.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins /gradle/lib/gradle-wrapper-2.9.jar;C:/Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / guava-jdk5-17.0.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / jna-3.2.7。 jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / jsr305-1.3.9.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / kryo-2.22.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / minlog-1.2.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-0.10.jar ; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-freebsd-amd64-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1 .1 / plugins / gradle / lib / native-platform-freebsd-i386-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-linux- amd64-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-linux-i386-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-osx-amd64-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native -platform-osx-i386-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-windows-amd64-0.10.jar; C:/ Program文件(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / native-platform-windows-i386-0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle这个/ LIB / objenesis-1.2.jar; C:/程序文件(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / reflectasm-1.07.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / resources_en。 jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / lib / gson-2.5.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / ant / lib / ant-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / devkit / lib / devkit-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / uiDesigner / lib / jps / ui-designer-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / IntelliLang / lib / intellilang-jps -plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Groovy / lib / groovy-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1 .1 / plugins / Groovy / lib / groovy-rt-constants.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / eclipse / lib / eclipse-jps-plugin.jar; C: / Program Files(x86)/ JetBrains / IntelliJ IDEA 201 6.1.1 / plugins / eclipse / lib / common-eclipse-util.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / maven / lib / maven-jps-plugin.jar; C :/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / maven / lib / maven3 / lib / plexus-utils-2.0.6.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1 .1 / plugins / osmorc / lib / osmorc-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / osmorc / lib / bndlib-3.0.0.jar; C: / Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / osmorc / lib / bndlib-plugins-3.0.0.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / osmorc / lib / plexus-utils-3.0.10.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / osmorc / lib / bundlor-all.jar; C:/ Program Files(x86 )/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / aspectj / lib / aspectj-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / flex / lib / flex-jps -plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / flex / lib / fle x-shared.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / gradle / lib / gradle-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / JavaEE / lib / jps / javaee-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / JavaEE / lib / jps / jpa-jps-plugin .jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / weblogicIntegration / lib / jps / weblogic-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1 .1 / plugins / dmServer / lib / dmServer-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / GwtStudio / lib / gwt-jps-plugin.jar; C: / Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / GoogleAppEngine / lib / google-app-engine-jps-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / GoogleAppEngine / lib / appEngine-runtime.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Grails / lib / grails-jps-plugin.jar; C:/ Program Files(x86 )/ JetBrains / IntelliJ IDEA 2016.1.1 / p lugins / Grails / lib / grails-compiler-patch.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / jps / android-jps-plugin.jar; C:/程序文件(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / jps / android-gradle-jps.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android /lib/android-common.jar;C:/Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / android-rt.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / sdk-common.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / sdklib.jar; C:/ Program Files( x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / common.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / jarutils.jar; C: / Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib / layoutlib-api.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / android / lib /清单-merger.jar; C:/Users/Yann/.Intel liJIdea2016.1 /配置/插件/斯卡拉/ LIB /阶-library.jar; C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/lib/compiler-settings.jar; C:/用户/晏/.IntelliJIdea2016.1/config/plugins/Scala/lib/jps/nailgun.jar;C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/lib/jps/scala-jps-plugin.jar; C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/lib/jps/sbt-interface.jar; C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/lib/jps/增量compiler.jar; C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/lib/jps/jline.jar; C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/ LIB /阶-library.jar; C:/Users/Yann/.IntelliJIdea2016.1/config/plugins/Scala/lib/scala-play-2-jps-plugin.jar; C:/Users/Yann/.IntelliJIdea2016。 1 / config / plugins / Scala / launcher / sbt-launch.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Kotlin / lib / jps / kotlin-jps-plugin.jar; C :/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Kotlin / lib / kotlin-runtime.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Kotlin / lib / kotlin-reflect.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Kotlin / lib / kotlin-plugin.jar; C :/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / Kotlin / lib / kotlin-android-extensions-plugin.jar; C:/ Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins /Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;C:/Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / javaFX / lib / javaFX-jps-plugin.jar; C: / Program Files(x86)/ JetBrains / IntelliJ IDEA 2016.1.1 / plugins / javaFX / lib / common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 55014 f4d655a1-23db-4ba8-84ab-ebc487bef09d C:/Users/Yann/.IntelliJIdea2016.1/system/compile-server

1 个答案:

答案 0 :(得分:0)

2048M对于32位JVM来说内存太多了。尝试降低堆大小设置。另一种选择是在64位JVM上运行IntelliJ IDEA,它应该可以毫无问题地运行。

要进一步调查此问题,您还可以检查build.log。使用Help | Show Log in Explorer菜单项,然后查看build-log文件夹以查找它。它应该包含有关构建过程终止原因的更多信息。