[
https://issues.apache.org/jira/browse/JENA-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418508#comment-13418508
]
Stephen Allen commented on JENA-279:
------------------------------------
Thinking about it a little more, I guess the purpose of the cache is to save
memory by sharing references to Nodes, not to prevent object creation. But I
think that really ought to be the responsibility of whatever container is
storing a large number of nodes. I would think that there are a lot of cases
where Nodes are ephemeral, and storing the in a cache seems like a waste.
Especially nodes created during ARQ's query processing.
> Make node cache configurable and use soft references
> ----------------------------------------------------
>
> Key: JENA-279
> URL: https://issues.apache.org/jira/browse/JENA-279
> Project: Apache Jena
> Issue Type: Improvement
> Components: Jena
> Affects Versions: Jena 2.7.2
> Reporter: Laurent Pellegrino
> Assignee: Stephen Allen
> Labels: jena-core, node, node-cache
> Attachments: nodecache-279.patch
>
>
> It would be nice to offer the possibility to configure the NodeCache capacity
> and to use soft references in order to collect references when no more memory
> is available. The Node cache should not be the cause of an OutOfMemory error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira