Login  Register

Re: [OFBiz] Users - OFBIZ Cache Tuning in base/config/cache.properties

Posted by MPF-2 on Oct 18, 2005; 9:11am
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-OFBIZ-Cache-Tuning-in-base-config-cache-properties-tp136154p136157.html


Nobody with time to discuss this issue and share info?

By the way we tuned the maxsize to high for a entity and had a out of memory error after 5 hours. :-)
Is there a good rule of thumb to calculate cache sizing?

Michael

[hidden email] wrote on 17.10.2005 11:42:35:

> Hi again on this issue,
>
> I reseached over the available documentation again (last time in
> march 2005 ) but didnt find any news. So this is another attemp to
> get a better understanding.
>
> Existing Info I found:
> Wiki: http://ofbizwiki1.go-integral.com/Wiki.jsp?page=CacheSettings
> ProductionSetupguide: http://www.undersunconsulting.
> com/static/OFBizBasicProductionSetup.pdf
>
> There is not much detail in those documents. They both pretty much
> say: Do it in the cache.properties :-)
>
> I think all ofbiz admins need more detail on it. Thats why I specify
> the questions more detailed and would appreceate if anybody would
> post a example fine-tuned cache.properties file
>
> All Feedback and hints will be compiled by me and added to the wiki/faq
>
> So here are my questions
> 1. Question: What is the Flag "useSoftreference" for? What does true
> and false do?
> 2. Question: What unit is "maxSize" and what if it is left empty in
> the cache.propery?
>
>
> 3.Question: What exactly do the per-delegator Entity Engine cache settings
> tune?
> #Examples for per-delegator Entity Engine cache settings
> #entitycache.entity-list.default.ProductPriceRule.expireTime=0
> #entitycache.entity-list.default.ProductPriceRule.useSoftReference=true
>
> 4. On the Cache Maintenance Page I finde entriey like "entitycache.
> entity.default.XXXX" and "entitycache.entity-list.default.XXXXX".
> What is the difference betwen those?
> And why is there no entry in the cache.properties for entitycache.
> entity.default.XXXX entries?
> Where do I create those entitycache.entity.default.XXXX entries
> 5. Questions regarding the Cache Maintenance Page
> I cleared the cache and afterwards I montitored the caches (I hope
> the formating with tabs is visibel too you)
>
> Cache Name size hitCount missCount maxSize expireTime useSoftRef?
> a) entitycache.entity-list.default.ProductCategoryMember 9,822 7,992
> 54,072 20,000 86,400,000 true
> b) entitycache.entity-list.default.ProductPriceAction 52 2,180 2,736
> 3,000 86,400,000 true
> c) entitycache.entity-list.default.ProductPriceCond 109 56,733 59,
> 239 70,000 86,400,000 true
>
> On a) With cache the missCount was allmost emmidiatly at 54000 the
> hitCount and size slowly crow. My question now is: Why isnt the size
> 20000 after 54000 misses? TheProdukctCategoryMember is ideal for caching.
> On b and c) since cache clearing the cachehit count is growing
> almost linear with the misscount! Why? Those tables are suppossed to
> be queried every almost every shop hit and the tables are static! So
> I would expect the missCount to be growing very slowly and the
> hitCount to grow very fast.
>
> 6. Qustion: What other tuning for the cache.properties tips are there?
> Answer from http://www.undersunconsulting.
> com/static/OFBizBasicProductionSetup.pdf
> ${ofbiz insall dir}/base/config/cache.properties
> Fresh from SVN, this file is configured to be development friendly to reload
> resources frequently. For production use the expire times for the
> caches in the last
> section of the file should all be commented out by putting a pound
> sign “#” at the
> beginning of each line. The properties in question start with
> “minilang.”, “script.”,
> “webapp.”, “widget.” And “template.”.
>
> Bye
> Michael
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users