[
https://issues.jboss.org/browse/ISPN-4126?page=com.atlassian.jira.plugin....
]
tina tian updated ISPN-4126:
----------------------------
Description:
I am considering to use Infinispan as a single cache in my project, and I met a memory
problem when I enabled eviction. Memory is pre-allocated according to the maxEntries you
set even if no entry is stored in that cache!
This is really a critical issue, since most time you are not sure how many entries you are
going to store in the cache, you set a maxEntries to avoid OOME, but now, when you set
maxEntries, memory will be pre-allocated no matter you are going to use it or not!
Ehcache used to have this kind of problem too, but they solved it DEV-9437.
Step to reproduce:
1) Enable eviction on config
2) Set maxEntries to a big number, like 100000
3) Create 100 caches using the default config
You will see OOM or big usage of memory.
was:
I am considering to use Infinispan as a single cache in my project, and I met a memory
problem when I enabled eviction. Memory is pre-allocated even if no entry is stored in
that cache!
This is really a critical issue, since most time you are not sure how many entries you are
going to store in the cache, you set a maxEntries to avoid OOME, but now, when you set
maxEntries, memory will be pre-allocated no matter you are going to use it or not!
Ehcache used to have this kind of problem too, but they solved it DEV-9437.
Step to reproduce:
1) Enable eviction on config
2) Set maxEntries to a big number, like 100000
3) Create 100 caches using the default config
You will see OOM or big usage of memory.
Memory is pre-allocated when enable eviction, and it may cause OOM
even if there is no entry stored in cache.
-------------------------------------------------------------------------------------------------------------
Key: ISPN-4126
URL:
https://issues.jboss.org/browse/ISPN-4126
Project: Infinispan
Issue Type: Bug
Components: Core
Reporter: tina tian
Assignee: Dan Berindei
Priority: Critical
I am considering to use Infinispan as a single cache in my project, and I met a memory
problem when I enabled eviction. Memory is pre-allocated according to the maxEntries you
set even if no entry is stored in that cache!
This is really a critical issue, since most time you are not sure how many entries you
are going to store in the cache, you set a maxEntries to avoid OOME, but now, when you set
maxEntries, memory will be pre-allocated no matter you are going to use it or not!
Ehcache used to have this kind of problem too, but they solved it DEV-9437.
Step to reproduce:
1) Enable eviction on config
2) Set maxEntries to a big number, like 100000
3) Create 100 caches using the default config
You will see OOM or big usage of memory.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira