You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/05/02 10:09:03 UTC

[jira] [Created] (CAMEL-3922) LRUSoftCache - Should use SoftReference to support OOME

LRUSoftCache - Should use SoftReference to support OOME
-------------------------------------------------------

                 Key: CAMEL-3922
                 URL: https://issues.apache.org/jira/browse/CAMEL-3922
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.8.0


We should creata a LRUSoftCache that uses SoftReferences for cached values. This supports the JVM when it runs low on memory and want to re-claim unused objects from the cache. 

We can use this for a certain number of caches where this is feasible such as
- endpoint cache
- producer cache
- consumer cache

Currently end users can only set a fixed max size on those cache.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-3922) LRUSoftCache - Should use SoftReference to support OOME

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027675#comment-13027675 ] 

Claus Ibsen commented on CAMEL-3922:
------------------------------------

See nabble
http://camel.465427.n5.nabble.com/HEADS-UP-Camel-uses-soft-reference-cache-now-tp4364762p4364762.html

> LRUSoftCache - Should use SoftReference to support OOME
> -------------------------------------------------------
>
>                 Key: CAMEL-3922
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3922
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>
> We should creata a LRUSoftCache that uses SoftReferences for cached values. This supports the JVM when it runs low on memory and want to re-claim unused objects from the cache. 
> We can use this for a certain number of caches where this is feasible such as
> - endpoint cache
> - producer cache
> - consumer cache
> Currently end users can only set a fixed max size on those cache.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-3922) LRUSoftCache - Should use SoftReference to support OOME

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-3922.
--------------------------------

    Resolution: Fixed

Lets wait with the SoftQueue. We can re-visit if its a good idea later.

> LRUSoftCache - Should use SoftReference to support OOME
> -------------------------------------------------------
>
>                 Key: CAMEL-3922
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3922
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>         Attachments: CAMEL-3922-softqueue.patch
>
>
> We should creata a LRUSoftCache that uses SoftReferences for cached values. This supports the JVM when it runs low on memory and want to re-claim unused objects from the cache. 
> We can use this for a certain number of caches where this is feasible such as
> - endpoint cache
> - producer cache
> - consumer cache
> Currently end users can only set a fixed max size on those cache.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CAMEL-3922) LRUSoftCache - Should use SoftReference to support OOME

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-3922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028158#comment-13028158 ] 

Claus Ibsen commented on CAMEL-3922:
------------------------------------

Attached a SoftQueue patch, which is for a Queue that uses SoftReferences as well. We can use that for the ServicePool cache.


> LRUSoftCache - Should use SoftReference to support OOME
> -------------------------------------------------------
>
>                 Key: CAMEL-3922
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3922
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>         Attachments: CAMEL-3922-softqueue.patch
>
>
> We should creata a LRUSoftCache that uses SoftReferences for cached values. This supports the JVM when it runs low on memory and want to re-claim unused objects from the cache. 
> We can use this for a certain number of caches where this is feasible such as
> - endpoint cache
> - producer cache
> - consumer cache
> Currently end users can only set a fixed max size on those cache.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-3922) LRUSoftCache - Should use SoftReference to support OOME

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-3922:
-------------------------------

    Attachment: CAMEL-3922-softqueue.patch

> LRUSoftCache - Should use SoftReference to support OOME
> -------------------------------------------------------
>
>                 Key: CAMEL-3922
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3922
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>         Attachments: CAMEL-3922-softqueue.patch
>
>
> We should creata a LRUSoftCache that uses SoftReferences for cached values. This supports the JVM when it runs low on memory and want to re-claim unused objects from the cache. 
> We can use this for a certain number of caches where this is feasible such as
> - endpoint cache
> - producer cache
> - consumer cache
> Currently end users can only set a fixed max size on those cache.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira