cancel
Showing results for 
Search instead for 
Did you mean: 

Cache is full

statira
Confirmed Champ
Confirmed Champ
Hi guys!
I'm having this error in my log:
Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (100).

In older versions there was a file alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/cache-context.xml,but there is no such file in my alfresco 5.2.0 so where should I change the transactional cache value now?
1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator
Cache configuration is being dealt with using <a href="http://docs.alfresco.com/5.1/concepts/cache-indsettings.html">simple properties</a> (at least since Alfresco 4.2). You can add these settings in alfresco-global.properties much like any other custom settings.

Normally you shouldn't see this particular warning though, unless you are creating / manipulating more than 100 Alfresco users per transaction. Also, you do not have to change the cache settings unless you plan this type of situation / load to be a regular occurence. Alfresco will generally work fine with this kind of message, albeit there may be some short term performance degregdation.

View answer in original post

8 REPLIES 8

afaust
Legendary Innovator
Legendary Innovator
Cache configuration is being dealt with using <a href="http://docs.alfresco.com/5.1/concepts/cache-indsettings.html">simple properties</a> (at least since Alfresco 4.2). You can add these settings in alfresco-global.properties much like any other custom settings.

Normally you shouldn't see this particular warning though, unless you are creating / manipulating more than 100 Alfresco users per transaction. Also, you do not have to change the cache settings unless you plan this type of situation / load to be a regular occurence. Alfresco will generally work fine with this kind of message, albeit there may be some short term performance degregdation.

statira
Confirmed Champ
Confirmed Champ
Thanks for your reply! I've added cache.myCache.maxItems=20000 in my alfresco-global.properties, but errors are still there with the same cash values (100 and 1000). What am I doing wrong?

2016-08-12 06:23:07,478 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.userToAuthorityTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (100).
2016-08-12 06:23:38,572 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.personTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.personTransactionalCache' is full (1000).

afaust
Legendary Innovator
Legendary Innovator
You have to configure the cache.mycache.tx.maxItems value for the transactional cache. Basically there are two layers of caches, one for the duration of the transaction and one global. You have only changed the size of the global cache.

statira
Confirmed Champ
Confirmed Champ
Thanks, it worked.

tom1855
Champ in-the-making
Champ in-the-making

Hello, I have a similar problem. What are you talking about local cache and global cache ?

afaust
Legendary Innovator
Legendary Innovator

Exactly what I said: Alfresco uses two cache layers - one which holds the data used in the current transaction ("transaction-local") and one which is used to share data across transactions ("global"). Obviously the local one will typically hold much fewer cache entries than the global one. The global one is also the most important one for data reuse in the long run, e.g. if data has already been loaded from the DB in one transaction it will improve the performance of subsequent ones that use the same data.

tom1855
Champ in-the-making
Champ in-the-making

I thank you for your help. I'm a newbie in technical admin of Alfresco. I can't solve my problem.

I have those messages in my logs:

11:35:01,696 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.personTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.personTransactionalCache' is full (1000).
2017-05-03 11:35:06,181 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.userToAuthorityTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (4000).
2017-05-03 11:36:01,686 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.personTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.personTransactionalCache' is full (1000).
2017-05-03 11:36:04,401 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.userToAuthorityTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (4000).
2017-05-03 11:37:01,883 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.personTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.personTransactionalCache' is full (1000).
2017-05-03 11:37:06,999 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.userToAuthorityTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (4000).
2017-05-03 11:39:31,670 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.personTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.personTransactionalCache' is full (1000).
2017-05-03 11:39:34,408 WARN  [org.alfresco.repo.cache.TransactionalCache.org.alfresco.userToAuthorityTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (4000).

In found several files about cache settings:

caches.properties
cache-context.xml
tx-cache-context.xml
alfresco-global.properties

In the alfresco-global.properties file, I have two lines

cache.userToAuthoritySharedCache.tx.maxItems=4000
cache.userToAuthoritySharedCache.maxItems=5000

In the cache.properties file, I have

cache.userToAuthoritySharedCache.tx.maxItems=5000
cache.personSharedCache.tx.maxItems=5000
cache.personSharedCache.maxItems=5000
Do I need to add the line cache.personSharedCache.tx.maxItems=5000 in the alfresco-global.properties file ?
Thanks.

udayakumar_p
Confirmed Champ
Confirmed Champ

I am also facing the following issue,

[org.alfresco.repo.cache.TransactionalCache.org.alfresco.userToAuthorityTransactionalCache] [LocalFeedGenerator1] Transactional update cache 'org.alfresco.userToAuthorityTransactionalCache' is full (100).

The issue seem to be resolved after adding the following properties.

cache.userToAuthoritySharedCache.tx.maxItems=10000

cache.userToAuthoritySharedCache.maxItems=15000

However, my question is, what is the impact of increasing the value of above properties. Will there be performance degradation?