如何增加 Groovy 的 JVM 堆大小? [英] How do I increase Groovy's JVM Heap Size?
本文介绍了如何增加 Groovy 的 JVM 堆大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
网络上的一些来源声称我应该能够将 -Xmx 参数提供给 groovy,但是当它找不到 -Xmx 文件时,它只会给我 java.io.FileNotFoundException
.其他来源告诉我设置一些名为 JAVA_OPTS
的变量,但我该怎么做?我怎么知道它是否有效?
Some sources on the web claims that I should be able to give the -Xmx param to groovy but that just gives me java.io.FileNotFoundException
when it can't find the -Xmx file. Other sources tell me to set some variable named JAVA_OPTS
but how do I do that? And how do I know if it worked?
推荐答案
$ export JAVA_OPTS="$JAVA_OPTS -Xmx64M"
$ groovy
这篇关于如何增加 Groovy 的 JVM 堆大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文