Hello,
I am currently hitting a memory leak with jpy 0.8 (I haven't tried w/ 0.9 yet) on MacOS 64b.
Following code creates dict object and attempts to release/collect them. Java side manages objects fine (based on jvisualvm), but the dict seem to stick around forever on the Python side
Properties properties = new Properties();
properties.load(new FileInputStream(jpyconfig));
properties.forEach((k, v) -> System.setProperty((String) k, (String) v));
if (!PyLib.isPythonRunning()) {
PyLib.startPython();
}
PyLib.Diag.setFlags(PyLib.Diag.F_ALL);
int count = 0;
while (true) {
PyObject pyo = PyObject.executeCode("{}", PyInputMode.EXPRESSION);
pyo = null;
count++;
if (count % 100000 == 0) {
System.gc();
}
}
Hello, I am currently hitting a memory leak with jpy 0.8 (I haven't tried w/ 0.9 yet) on MacOS 64b. Following code creates dict object and attempts to release/collect them. Java side manages objects fine (based on jvisualvm), but the dict seem to stick around forever on the Python side
The memory logs show:
any thought if this is a bug / any work around? Thank you! Sebastien