[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
does deleteObject() free memory?
Hi,
the following test gives 4.5 MB /tmp/db/data. Did I forget
something or doesn't deleteObject() free memory?
Thanks,
-hh
import DE.softwarebuero.ozone.LocalDatabase;
import DE.softwarebuero.ozone.OzoneRemote;
public class NodeTest {
private final static String dbPath = "/tmp/db";
private final static String className = "NodeImpl";
private final static String objectName = "root";
public static void main (String[] args) throws Exception {
final LocalDatabase db = new LocalDatabase();
try {
db.open(dbPath);
} catch (Exception e) {
db.create(dbPath);
db.open(dbPath);
}
try {
db.reloadClasses();
for (int i = 0; i < 10000; ++i) {
db.deleteObject((OzoneRemote)db.createObject(className,
objectName));
}
} finally {
db.close();
}
}
}