Limit Jython Interpreter memory usage

388 views Asked by At

Is there anyway to limit the amount of memory that the Jython interpreter uses?

I've looked into trying to limit the memory usage from inside of the python script but I can't find a cross platform method of doing that.

interpreter = new PythonInterpreter();
interpreter.setMemoryLimit(1024) //something like this for example
interpreter.execfile("mycode.py");
0

There are 0 answers