[jira] Commented: (JCS-16) The jcs.default.cacheattributes.MaxObjects does not work as expected.

"Aaron Smuts (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.jcs.devel
Message-ID <29739158.1174004889501.JavaMail.jira@brutus>
    [ https://issues.apache.org/jira/browse/JCS-16?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481386 ] 

Aaron Smuts commented on JCS-16:
--------------------------------

The memory cache is buffering items to disk when the max is reached.  It's set to move 2 or 3 at once.  When the max is reached, it moves 2 or 3 (I need to check).  

> The jcs.default.cacheattributes.MaxObjects does not work as expected.
> ---------------------------------------------------------------------
>
>                 Key: JCS-16
>                 URL: https://issues.apache.org/jira/browse/JCS-16
>             Project: JCS
>          Issue Type: Bug
>          Components: Composite Cache
>    Affects Versions: jcs-1.2.7.9.2
>         Environment: Windows
>            Reporter: Peter Lawrey
>         Assigned To: Aaron Smuts
>            Priority: Minor
>
> Using code based on JSCThrashTest ..
> jcs.default=
> jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
> jcs.default.cacheattributes.MaxObjects=10000
> jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
> If I add 10,000 elements the getListSize() return 9,998 elements.
> If I change the MaxObjects to 10002 and add 15 K elements the getListSize() return 10,000 elements.
> Is there a good reason I need to add 2 to MaxObjects?
> I have scanned the cache and found there is actually 10000 elements when MaxObject is set to 10002

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.