[ 
https://jira.duraspace.org/browse/DS-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25828#comment-25828
 ] 

Richard Rodgers commented on DS-1205:
-------------------------------------

Another, possibly slightly more performant, solution would be to count items 
read, and flush (clear) the cache every 'n'  times (or query the cache with 
'getCacheSize()'). where 'n x item size' fits comfortably inside the memory 
allocated to the JVM heap.

But you are quite right that DSpace lacks the ability to 'optionalize' the use 
of the cache where one naturally would want to (essentially read-only cases).
                
> 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
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to