Details
-
Type:
Task
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Web Scripts and Surf
-
Labels:None
-
Test In:Enterprise
-
ACT Numbers:
33657
-
Epic Link:
Description
Some wescripts are declared <transaction allow="readwrite"...> but should be declared <transaction allow="readonly" > if they do not update the repository.
Some wescripts are declared <transaction allow="readwrite"...> but should be declared <transaction allow="readonly" > if they do not update the repository. One of the bad side effect of that is a lower usage of the L2 cache.
How to reproduce :
Install an AOB 3.4.4 version
Activate the cache debugging, see http://wiki.alfresco.com/wiki/Repository_Cache_Configuration, I have set <property name="startDelayMinutes"><value>1</value></property> and <property name="repeatIntervalMinutes"><value>1</value></property>
Activate statistics for « ContentDataCache »
Then start, upload 20 documents in the first level of the document library in SHARE, pdf docs are OK.
Push the « refresh » button in the browser with an intervel of 15 secs 10 time.
Stop Alfresco, edit /apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.desc.xml and set <transaction allow="readonly" buffersize="0">required</transaction>
Observed result :
The hit factor for « ContentDataCache » is very low when you execute first time with « allow="readwrite" », see cache2.txt
If you switch to <transaction allow="readonly" buffersize="0"> the hit factor is much higher. See cache1.txt
Remark : I think that this behavior is logical, what is wrong IMO is that we have declared doclist.get.desc.xml « readwrite ». It works because thumbnails are done in the background, asynchronousely in another transaction.
I have extablished a list of candidates webscrips that could have the same fault and that should be check in order to increase cache usage:
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/discussions/forum/forum-posts.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/links/links.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/links/link/link.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/tagging/tagscope-tags.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/list.delete.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/lists.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/categorynode.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/treenode.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/location.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/doclist.get.desc.xml~
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/node.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/images.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/page.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/pagelist.get.desc.xml
<root tomcat>apache-tomcat-6.0.32/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/wiki/version.get.desc.xml
Attachments
Issue Links
- is related to by
-
ALF-11330 Incorrect friendly message while creating a site in read-only mode system
-
- Closed
-
-
ALF-10413 All blog GET webscripts should be marked as requiring a "readonly" transaction and not "readwrite" as it does currently
-
- Closed
-
-
MNT-7359 Adding bulk fetching for the associated ContentData entries
- Closed