Jython的内存限制 [英] Memory Limit for Jython
本文介绍了Jython的内存限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为我的Jython程序设置JVM内存限制(Java的-Xmx选项)?
How can I set the JVM memory limit (-Xmx option for Java) for my Jython program?
我了解Jython 2.5 引入了-J选项,以便将选项发送到JVM:
I understand that Jython 2.5 introduces the -J option in order to send options to the JVM:
jython -J-Xmx8000m
但是,我必须使用java1.6.0_23上的 Jython 2.2a0 ,
However, I have to work with Jython 2.2a0 on java1.6.0_23, which does not have that option.
推荐答案
您可以编辑 jython.bat (Windows)或 jython (Linux)并添加它.
You could just edit jython.bat(windows) or jython(Linux) and add it.
"C:\...\java.exe" -Dpython.home="C:\..." -classpath "C:\...
到
"C:\...\java.exe" -Xmx1024m -Dpython.home="C:\..." -classpath "C:\...
这篇关于Jython的内存限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文