You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/03/21 13:27:38 UTC

[jira] [Resolved] (JENA-902) Default cache sizes too large / configurability should be more exposed

     [ https://issues.apache.org/jira/browse/JENA-902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-902.
--------------------------------
       Resolution: Done
    Fix Version/s: Jena 2.13.1
         Assignee: Andy Seaborne

> Default cache sizes too large / configurability should be more exposed
> ----------------------------------------------------------------------
>
>                 Key: JENA-902
>                 URL: https://issues.apache.org/jira/browse/JENA-902
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: TDB
>    Affects Versions: TDB 1.1.0
>            Reporter: Jan De Beer
>            Assignee: Andy Seaborne
>             Fix For: Jena 2.13.1
>
>
> In the class "com.hp.hpl.jena.tdb.sys.SystemTDB" there are two important cache size settings, namely "Node2NodeIdCacheSize" and "NodeId2NodeCacheSize". On a 64-bit platform, they default to 100000 and 500000 entries.
> In our setup of 5 TDB-backed graphs inside a single dataset, these default settings led to out-of-memory errors of the Fuseki server although setting the available heap memory to 3GB. It took some heap analysis to reveal that these two caches were the main memory consumers. Also, from the public documentation of Fuseki / TDB, it wasn't so obvious that their sizes can be configured. Only by looking into the source code, we found that one can use a TDB properties file to override the defaults.
> Proposed is to lower the default settings and have a more exposed documentation as to tuning the memory settings of TDB.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)