问题标签 [heap-size]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 堆空间大小?
我的资产文件夹中有一个 db 文件(300mb)。当我运行代码时,它给了我以下错误
下面是 gradle.properties
我尝试了很多事情,比如在环境变量中更改_JAVA_OPTIONS ,在studio.exe.vmoptions和gradle.properties中更改值,但它给了我同样的错误。
请帮忙
java - 在运行 64 位 JVM 的 Windows 10 64 位中用于 Java 进程的最大堆大小
在Windows 10 64 位和64 位 JVM上运行的 Java 进程的最大堆大小是多少?我的机器有8 GB的 RAM。我正在运行Java 8。出于实验目的,我试图在巨大的图表上运行 BFS。在运行 BFS 时,我正在监视Java Visual VM中使用的堆大小。根据 Visual VM 堆利用率始终小于 2000 MB,无论提供以下 JVM 参数
我在互联网上做了一些研究,但找不到与我正在使用的系统规范相关的任何具体答案。java 进程能否在 Windows 10 64 位和 64 位 JVM 上使用超过 2 GB 的空间?作为Java 堆大小的指南,Windows XP/2008/7 的限制是 2 GB。
java - IntelliJ IDEA:堆大小更改后异常构建过程终止
我一直在尝试分配 256MB 数组,这产生了 Java 堆空间异常。我已经尝试过这个解决方案,但没有帮助。所以我一直在寻找另一个类似的问题并发现了这个。但是,将堆大小提高到 1377MB 以上后,我收到此错误:
错误:异常构建过程终止:“C:\Program Files (x86)\Java\jdk1.8.0_91\bin\java”-Xmx1377m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" - Djdt.compiler.useSingleThread=true -Dpreload.project.path=C:/Users/JohnDoe/Documents/CacheTest -Dpreload.config.path=C:/Users/JohnDoe/.IntelliJIdea2016.1/config/options -Dcompile.parallel =false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-2473188797876308560 -Dfile.encoding=windows-1250 -Djps.file.types.component.name=FileTypeManager - Duser.language=en -Duser.country=US -Didea.paths.selector=IntelliJIdea2016.1 "-Didea.home.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.1.1" -Didea.config .path=C:\Users\JohnDoe.IntelliJIdea2016.1\config -Didea.plugins.path=C:\Users\JohnDoe.IntelliJIdea2016。1\config\plugins -Djps.log.dir=C:/Users/JohnDoe/.IntelliJIdea2016.1/system/log/build-log -Djava.io.tmpdir=C:/Users/JohnDoe/.IntelliJIdea2016.1/系统/编译服务器/温度 -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\JOHNDO~1\AppData\Local\Temp\kotlin-idea-1150430122745838-is-running\"-classpath "C: /Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-launcher.jar;C:/Program Files (x86)/Java/jdk1.8.0_91/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文件 (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/jps-plugin-system.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/lib/jps-model.jar;C:/Program文件 (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文件 (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/plugins/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文件 (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/plugins/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 Files (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:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016.1.1/plugins/gradle/lib/reflectasm-1.07.jar;C:/Program文件 (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 2016.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:/程序文件 (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/flex-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/plugins/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:/Program Files ( 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/manifest-merger .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 60896 96c068b6-4d3b-4924-a696-9af1caab47b3 C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server1/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 60896 96c068b6-4d3b-4924 -a696-9af1caab47b3 C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server1/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 60896 96c068b6-4d3b-4924 -a696-9af1caab47b3 C:/Users/JohnDoe/.IntelliJIdea2016.1/system/compile-server
我已经找到了很多关于此类问题的答案,但他们都告诉我降级我的 NVIDIA 驱动程序,而我无法做到,这对我来说根本没有意义。我正在寻找的是某种解释为什么会发生这种情况以及我能做些什么来解决它。
注意:我使用的是 x64 IDEA。
java - mahout-math-scala_2.10 上的 Maven 最大堆大小错误 -Xmx4g
我正在尝试通过 maven 安装 mahout,但我得到 Invalid maximum heap size error: heap size error
我在虚拟机上使用 64 位笔记本电脑和 32 位 ubuntu 16.04 操作系统。这是完整的错误堆栈跟踪:
java - 在 Neo4j 上增加 Java 堆大小
有谁知道如何增加一个 Neo4j 的 Java 堆大小?
我正在将一个 csv 文件加载到 Neo4j 数据库中,但我无法加载它,因为我需要增加 Java 堆大小……我检查了我有超过 100GB 的可用空间……我还有 16Gb 的 RAM。我的 Jar 文件位于“C:\Program Files\Neo4j CE 3.1.4\bin\neo4j-desktop-3.1.4.jar
jmeter - 在运行时更改 Jmeter 的堆大小
我想jmeter
在运行时更改堆大小。你能建议我如何实现它吗
我使用了以下命令,但看起来我设置的任何堆都无效。
我用了:
检查分配的内存并返回
9544663040
看起来我做错了什么。
先感谢您
android - GC 开销限制超出 Android Studio
当我运行我的项目时,会出现下一个错误。
但我在我的 build.gradle 文件中使用下面的代码。
我该怎么做才能避免这种失败?有人可以帮我吗?
java - 无法在 AWS Elastic Beanstalk Java SE 平台上设置 JVM 堆大小
我使用单个 EC2 t2.micro 实例(1GB RAM)在 Elastic Beanstalk 上部署了一个 Spring Boot 应用程序。
我需要增加我的应用程序的 JVM 堆大小,但我无法这样做。我尝试过的事情是:
JAVA_OPTS
在 EB 控制台的环境配置中设置一个变量,其值为-Xms512m -Xmx896m
。- 在项目根文件夹中部署应用程序,其中
Procfile
包含以下行:web: java -jar <relative-path-to-jar> -Xms512m -Xmx896m
我还能尝试什么?
注意:要检查正在运行的应用程序的 JVM 堆大小,我 ssh 进入实例并使用此答案描述的jstat
命令。计算最大值总是给我 256MB 这是默认值。
java - 如何为应用程序指定超过 64 mb 的内存?
largeHeapSize = true
将堆大小增加到 64 mb。但我的应用程序需要超过 64 mb 的内存。我已经搜索并没有找到任何解决方案。我在 android 开发者网站上有这个。这适用于我的情况还是更合适?
jvm - Java - 最大堆大小无效
从 IntelliJ IDEA 运行项目时,我设置了 VM 选项-XX:MaxPermSize=512m -Xmx=256m -Xms=256m
并收到以下错误
错误:无法创建 Java 虚拟机。
错误:发生了致命异常。程序将会退出。
最大堆大小无效:-Xmx=256m