You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-dev@jakarta.apache.org by "Manfred Quasten (JIRA)" <ji...@apache.org> on 2008/09/10 11:44:44 UTC
[jira] Created: (JCS-51) lost objects
lost objects
-------------
Key: JCS-51
URL: https://issues.apache.org/jira/browse/JCS-51
Project: JCS
Issue Type: Question
Components: Indexed Disk Cache
Affects Versions: jcs-1.3
Environment: java 6 , windows xp
Reporter: Manfred Quasten
Assignee: Aaron Smuts
Priority: Blocker
Fix For: jcs-1.3
We will use JCS to create a large number of (large) objects on disk with a smal javaheap size. So I set MaxPurgatorySize=100 and wrote 100000 objects to the cache
id is the counter of the for loop as String.
jcs.putInGroup(id,"aGroup",object);
After this, I tried to read this objects, in an other loop
final int x = (int) (100000*Math.random());
jcs.getFromGroup( "" + x , "aGroup").
get FromGroup will return null in 50% of the cases. What is going wrong?!
I get the cache using
jcs = JCS.getInstance("myRegion1");
I can't increase MaxPurgatorySize=100, because we will work (test working) with a minimum of java heapsize.
Here is my configuration:
#############################################################
##### Default Region Configuration
jcs.default=DC
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=100
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=false
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
##############################################################
##### CACHE REGIONS
jcs.region.myRegion1=DC
jcs.region.myRegion1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.myRegion1.cacheattributes.MaxObjects=1000000
jcs.region.myRegion1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.myRegion1.cacheattributes.DiskUsagePattern=UPDATE
##############################################################
##### AUXILIARY CACHES
# Indexed Disk Cache
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.DC.attributes.DiskPath=dump
jcs.auxiliary.DC.attributes.MaxPurgatorySize=100
jcs.auxiliary.DC.attributes.MaxKeySize=-1
jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=3000000
jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org
[jira] Closed: (JCS-51) lost objects
Posted by "Aaron Smuts (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCS-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aaron Smuts closed JCS-51.
--------------------------
Resolution: Invalid
The purgatory size sets the buffer size. If you fill the buffer, items are dropped. You have to put more slowly, or use a pooled event queue with a whenfull policy of block or run.
> lost objects
> -------------
>
> Key: JCS-51
> URL: https://issues.apache.org/jira/browse/JCS-51
> Project: JCS
> Issue Type: Question
> Components: Indexed Disk Cache
> Affects Versions: jcs-1.3
> Environment: java 6 , windows xp
> Reporter: Manfred Quasten
> Assignee: Aaron Smuts
> Priority: Blocker
> Fix For: jcs-1.3
>
>
> We will use JCS to create a large number of (large) objects on disk with a smal javaheap size. So I set MaxPurgatorySize=100 and wrote 100000 objects to the cache
> id is the counter of the for loop as String.
> jcs.putInGroup(id,"aGroup",object);
> After this, I tried to read this objects, in an other loop
> final int x = (int) (100000*Math.random());
> jcs.getFromGroup( "" + x , "aGroup").
> get FromGroup will return null in 50% of the cases. What is going wrong?!
> I get the cache using
> jcs = JCS.getInstance("myRegion1");
> I can't increase MaxPurgatorySize=100, because we will work (test working) with a minimum of java heapsize.
> Here is my configuration:
> #############################################################
> ##### Default Region Configuration
> jcs.default=DC
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=100
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.default.cacheattributes.UseMemoryShrinker=false
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> ##############################################################
> ##### CACHE REGIONS
> jcs.region.myRegion1=DC
> jcs.region.myRegion1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.region.myRegion1.cacheattributes.MaxObjects=1000000
> jcs.region.myRegion1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.region.myRegion1.cacheattributes.DiskUsagePattern=UPDATE
> ##############################################################
> ##### AUXILIARY CACHES
> # Indexed Disk Cache
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
> jcs.auxiliary.DC.attributes.DiskPath=dump
> jcs.auxiliary.DC.attributes.MaxPurgatorySize=100
> jcs.auxiliary.DC.attributes.MaxKeySize=-1
> jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=3000000
> jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org
[jira] Commented: (JCS-51) lost objects
Posted by "Manfred Quasten (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCS-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629856#action_12629856 ]
Manfred Quasten commented on JCS-51:
------------------------------------
Thanks, it works now.
> lost objects
> -------------
>
> Key: JCS-51
> URL: https://issues.apache.org/jira/browse/JCS-51
> Project: JCS
> Issue Type: Question
> Components: Indexed Disk Cache
> Affects Versions: jcs-1.3
> Environment: java 6 , windows xp
> Reporter: Manfred Quasten
> Assignee: Aaron Smuts
> Priority: Blocker
> Fix For: jcs-1.3
>
>
> We will use JCS to create a large number of (large) objects on disk with a smal javaheap size. So I set MaxPurgatorySize=100 and wrote 100000 objects to the cache
> id is the counter of the for loop as String.
> jcs.putInGroup(id,"aGroup",object);
> After this, I tried to read this objects, in an other loop
> final int x = (int) (100000*Math.random());
> jcs.getFromGroup( "" + x , "aGroup").
> get FromGroup will return null in 50% of the cases. What is going wrong?!
> I get the cache using
> jcs = JCS.getInstance("myRegion1");
> I can't increase MaxPurgatorySize=100, because we will work (test working) with a minimum of java heapsize.
> Here is my configuration:
> #############################################################
> ##### Default Region Configuration
> jcs.default=DC
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=100
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.default.cacheattributes.UseMemoryShrinker=false
> jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> ##############################################################
> ##### CACHE REGIONS
> jcs.region.myRegion1=DC
> jcs.region.myRegion1.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.region.myRegion1.cacheattributes.MaxObjects=1000000
> jcs.region.myRegion1.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> jcs.region.myRegion1.cacheattributes.DiskUsagePattern=UPDATE
> ##############################################################
> ##### AUXILIARY CACHES
> # Indexed Disk Cache
> jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
> jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
> jcs.auxiliary.DC.attributes.DiskPath=dump
> jcs.auxiliary.DC.attributes.MaxPurgatorySize=100
> jcs.auxiliary.DC.attributes.MaxKeySize=-1
> jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=3000000
> jcs.auxiliary.DC.attributes.OptimizeOnShutdown=true
> jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-dev-help@jakarta.apache.org