What is the behavior of Alfresco Community v5.0 caching and how to control it

cancel
Showing results for 
Search instead for 
Did you mean: 
mtgdavidchow
Member II

What is the behavior of Alfresco Community v5.0 caching and how to control it

We have a system running Alf5.0, you can think that we have customized field in metadata that storing the person id (unique).  When we search with the person id, if the no. of records is large (say 500 records), it needs more than few minutes to get the result.  However, after this completed, the next search of the same person id returns the result in no time. But may be few hours / days later,  the first search of it becomes slow again. And we guess this is the cache behavior (invalidated).

Can someone advise how to control the cache behavior such that we can cache person with many records and keep it not invalidated? Or any advice to make it user friendly on that? Thank you!

7 Replies
mtgdavidchow
Member II

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

is there anyone can help on the above?

fedorow
Senior Member

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

Check the java memmory allocation first. In my expiriense a lot's of v5 servers works with default 1GB RAM indepandantly how many phisical memory the host have.

mtgdavidchow
Member II

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

Can you advise which config. to be checked?

In tomcat

we already set to use 128GB ram

We used the following during tomcat service installation

set JAVA_OPTS=++JvmOptions="-XX:+DisableExplicitGC" ++JvmOptions="-XX:+UseConcMarkSweepGC" ++JvmOptions="-XX:+UseParNewGC" ++JvmOptions="-XX:ReservedCodeCacheSize=128m" ++JvmOptions="-Dalfresco.home=D:\Alfresco" ++JvmOptions="-Dcom.sun.management.jmxremote" --JvmMs 2560 --JvmMx 131072 

 

For solr4

we are using default setting, and I found that the followings are commented, should we adjust it?

In solrconfig.xml,

<!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
<!-- <maxBufferedDocs>1000</maxBufferedDocs> -->

 

fedorow
Senior Member

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

mtgdavidchow
Member II

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

I am already using correct JVM setting as mentioned in previous setting and I can see the tomcat can use around 6x GB memory

So, I am thinking other direction. Is the following related? and if yes, any way to calculate the best values?

 

For solr4

we are using default setting, and I found that the followings are commented, should we adjust it?

In solrconfig.xml,

<!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
<!-- <maxBufferedDocs>1000</maxBufferedDocs> -->

 

mtgdavidchow
Member II

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

Anyone can help to advise? Thank you.

mtgdavidchow
Member II

Re: What is the behavior of Alfresco Community v5.0 caching and how to control it

Anyone can help ? The problem is still here