Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-1253

Some webscripts are declared "readwrite" but should be declared "readonly" if they do not update the repository.

    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

      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

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                pdubois Philippe Dubois [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 30 minutes
                  3d 30m