通过命令行增加Java中的MaxPermSize内存 [英] to increase MaxPermSize memory in Java by command line
问题描述
您能否解释一下如何增加此PermSpace大小。我正在使用Gate应用程序并加载大量数据和大量插件,不幸的是每次运行后都会出现内存不足的错误maxPermSpace。
Could you please explain me how to increase this PermSpace size. I am using Gate application and loading huge amount of data and large number of plugins and unfortunately after every run it gives the error about the out of memory maxPermSpace.
我到处搜索,但我找不到如何通过命令行增加这个大小,或者可能是我可以更新数据的文件?
I searched everywhere, but I could not find how to increase this size through command line or may be the file where I could update the data?
我真的需要一些帮助才能完成我的项目。请解释如何通过命令行执行此操作我使用的是jdk1.6.0_38版本和win7(64位)。
I really need some help in order to complete my project. Please explain how to do this by command line I am using jdk1.6.0_38 version and win7(64bit).
推荐答案
你有使用 -XX:MaxPermSize
。示例命令可以是:
You have to use -XX:MaxPermSize
. A sample command could be:
java -Xms128m -Xmx512m -XX:MaxPermSize=512m ...
这篇关于通过命令行增加Java中的MaxPermSize内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!