Dr. André Lanka wrote:
Hi all, :)

We're using Jena 2.6.4, ARQ 2.8.8 and TDB 0.8.10. We use multiple TDB database instances in parallel. Each of it owns 40-50 file handles during usage.

Hi André,
which operating system are you using?

Paolo


To save resources we want to close rarely used database and re-open it when needed. Currently we do this (basically) by

GraphTriplesTDB graph=(GraphTriplesTDB) rdfStore.getGraph()
TDBMaker.releaseDataset(graph.getDataset());
rdfStore.close();

where rdfStore is a Model created by a

rdfStore=TDBFactory.createModel(directory.getAbsolutePath())

Unfortunately not only the file handles remain open: With each call to TDBFactory.createModel additional 40 file handles are opened. This ends up in an IOException due to too many open files.

Perhaps we use the framework the wrong way... Does someone has an idea what the problem could be?

BTW: rdfStore.isClosed() gives true (in our case) even after a call to rdfStore.close(). The same applies to graph.isClosed() and graph.close().

Thanks in Advance
André



Reply via email to