[
https://jira.duraspace.org/browse/DS-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25823#comment-25823
]
Richard Rodgers commented on DS-1205:
-------------------------------------
Hi Lyncode & Tim:
I think there may be issues with this approach as is, since the Context cache
is not a performance (access) cache, but a 'transactional integrity' cache: its
job is to insure that when an object is requested more than once in a given
transaction scope, the database is not re-read (overwriting any pending - but
uncommitted - changes in the object). A regular caching approach like this
could evict objects with uncommitted changes in certain resource conditions.
Users of a Context currently have controls like clearing the entire cache, or
decaching specific objects ('item.deache()' ) when they know enough about the
transactional context to do so safely.
Thanks,
Richard
> DSpace org.dspace.core.Context caching problem
> ----------------------------------------------
>
> Key: DS-1205
> URL: https://jira.duraspace.org/browse/DS-1205
> Project: DSpace
> Issue Type: Bug
> Components: DSpace API
> Affects Versions: 1.8.2
> Reporter: DSpace @ Lyncode
> Priority: Blocker
> Labels: Core
> Fix For: 3.0
>
>
> bin/dspace script is crashing with OutOfMemory problems related with the
> org.dspace.core.Context HashMap.
> Proof: https://github.com/lyncode/DSpace/issues/5
> I think this is a critical problem, mainly because it does not make sense
> (for me) to have crashing applications because of caching mechanism memory
> overusage. As good practices for implementing caches, this cache mechanism
> could be aware of it's memory usage threshold, if reached, it could start
> discarding old and unused objects in it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.duraspace.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel