How to set a limit on JVM memory (-Xmx option for Java) for my Jython program?
I understand that Jython 2.5 represents the -J parameter to send JVM parameters:
jython -J-Xmx8000m
However, I need to work with Jython 2.2a0 on java1.6.0_23 , which does not have this option.
You can simply edit jython.bat (windows) or jython (Linux) and add it.
"C:\...\java.exe" -Dpython.home="C:\..." -classpath "C:\...
to
"C:\...\java.exe" -Xmx1024m -Dpython.home="C:\..." -classpath "C:\...
You can set environment variables JAVA_OPTIONS(for jython <2.5) or JAVA_MEMfor jython 2.5, for example:
JAVA_OPTIONS
JAVA_MEM
alias jython1G="JAVA_OPTIONS=\"-Xmx1000m $JAVA_OPTIONS\" /usr/bin/jython"
Source: https://habr.com/ru/post/1793586/More articles:Combining and removing a Ruby URI - ruby โโ| fooobar.comWindows Parallel or LPT Port Monitoring - c #How to specify the location of source files during debugging? - .netDjango integration with Amazon 'SimpleDB' database - pythonVector alignment in LLVM amd64 output - x86-64PloneFormGen extension - pythonDownload ASP Force - vb.netSymfony - ะฒัััะฐะธะฒะฐะตะผัะต ัะพัะผั ะฒ Propel - symfony-1.4Upload the image along with other data in the same POST - postIs there a tidier way to have a comma after @variable in a razor - asp.net-mvc-3All Articles