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

DSpace @ Lyncode commented on DS-1205:
--------------------------------------

Yes, that makes sense, thanks. I agree on the performance issue. Disagree on 
the actual implementation (not optional usage).
However, documentation could be improved in order to explain this detail.

https://wiki.duraspace.org/display/DSDOC18/Storage+Layer

I'm just worried about new developers, they should be aware of this detail, by 
means using the DSpace Storage Layer requires caution at this level. I did 
found the problem after some deep analysis.

I agree with you, this implementation doesn't work, because EhCache is a global 
cache mechanism, and this simple map is a context based (request based) caching 
system.
                
> 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