From: Sells, F. <fr...@ad...> - 2001-12-17 14:53:14
|
I have a memory leak in an applet that uses the Python.exec() method multiple times. I though that would work since I overwrite the same Python variable names with each invocation; however that is not the case. contonious calls end up in a VM out of memory error the jython registry has the following entry. Will this solve my problem (relating to memory leak :) )? Is there a difference between "soft" and "weak"? # List of choices for internal tables impl (PyJavaClasses canonical map etc.), # these are separated through ':' and tryed from left to right. # For long running applications under java2, needing classes unloading, # in order to have jython runtime automatically discarding # no longer needed info and avoding memory leakage, this can be set # to weak or soft (=> an impl. using weak-refs or soft-refs will be used). #python.options.internalTablesImpl = soft #python.options.internalTablesImpl = weak |