Question about open files in Server #3607
-
Please pardon my asking about OpenRDF Sesame Server ... because I also need to know whether the situation is any different in RDF4J. It seems that Sesame Server keeps repository files open. E.g., if you do a SPARQL query against a Native Store repo, there are eleven files opened for that repo, and they stay open. (To see this: on Linux, run Did I miss a configuration option to close repo files? Does the same behaviour apply in RDF4J Server? Richard. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, don't know the answer by heart and haven't checked it yet, but it could be still the case (data file, index file etc and IIRC network connections can also consume file connections) It should be possible for the system administrator to raise the per process limit by changing a kernel setting (and/or raise it in security-related components like apparmor, pam.d) Or for a running process using e.g. An alternative would be to use a different store instead of the native store repo: there is an experimental store based on ElasticSearch, and a very interesting LMDB store will be part of the upcoming v4.0 release. Best regards Bart |
Beta Was this translation helpful? Give feedback.
-
Hi, as with other databases it has a large performance impact if the index files of the Native Store are closed and reopened. The LMDB store has the advantage that it just uses 2 files - one for values and one for statement indexes. But the main problem of keeping them open will stay the same. Best regards |
Beta Was this translation helpful? Give feedback.
Hi,
don't know the answer by heart and haven't checked it yet, but it could be still the case (data file, index file etc and IIRC network connections can also consume file connections)
It should be possible for the system administrator to raise the per process limit by changing a kernel setting (and/or raise it in security-related components like apparmor, pam.d)
Or for a running process using e.g.
prlimit -n16384 <PID>
An alternative would be to use a different store instead of the native store repo: there is an experimental store based on ElasticSearch, and a very interesting LMDB store will be part of the upcoming v4.0 release.
Best regards
Bart