cancel
Showing results for 
Search instead for 
Did you mean: 

Web Script reloading for each request

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
i have multiple installation of Alfresco 3.2 r2 with similar configuration.
I say similar because Production is in cluster and Test is not clustered.
Inside Production (and only Production) i have this problem:every time a web-script request is done all the web-scripts are reloaded, and the user has to wait for a long time.
I don't know why.


Regards
8 REPLIES 8

fracat71
Champ on-the-rise
Champ on-the-rise
Anybody can help me?

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
this is the log of the server working bad

12:00:19,463 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServlet] Processing request (GET) http://10.10.25.231:8080/alfresco/service/api/login?u=ARCANGELO.CHIACCHIO&pw=ALFRESCO
12:00:19,463 DEBUG [org.alfresco.web.scripts.AbstractRuntime] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/login
12:00:19,464 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Initialising Web Scripts (Container: Repository, URI index: org.alfresco.web.scripts.JaxRSUriIndex)
12:00:19,464 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Locating Web Scripts within workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts
12:00:19,725 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Locating Web Scripts within workspace://SpacesStore/app:company_home/app:dictionary/cm:webscripts
12:00:20,569 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Found Web Script org/alfresco/sample/blogsearch.get (desc: org/alfresco/sample/blogsearch.get.desc.xml, impl: webscript.default, auth: guest, trx: required, format style: extension, default format: html)
12:00:20,570 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Registered Web Script URL 'GET:/sample/blog/search?q={searchTerm}'
12:00:20,570 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Registered Web Script URL 'GET:/sample/blog/search.atom?q={searchTerm}'


this is the log of the server working well
14:42:58,333 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServlet] Processing request (GET) http://alfresco-test.celdra-silef.it:8080/alfresco/service/api/login?u=ARCANGELO.CHIACCHIO&pw=ALFRES...
14:42:58,333 DEBUG [org.alfresco.web.scripts.AbstractRuntime] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/login
14:42:58,334 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Web Script index lookup for uri /api/login took 0.72ms
14:42:58,334 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServletRequest] Content Type: null
14:42:58,334 DEBUG [org.alfresco.web.scripts.AbstractRuntime] Agent: MSIE
14:42:58,334 DEBUG [org.alfresco.web.scripts.AbstractRuntime] Invoking Web Script org/alfresco/repository/login.get (format xml, style: any, default: xml)
14:42:58,336 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] Begin retry transaction block: required,readonly
14:42:58,349 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServletResponse] Cache - set response header Cache-Control: no-cache
14:42:58,349 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServletResponse] Cache - set response header Pragma: no-cache
14:42:58,349 DEBUG [org.alfresco.web.scripts.DeclarativeWebScript] Rendering response: content type=text/xml, status=200
14:42:58,349 DEBUG [org.alfresco.web.scripts.DeclarativeWebScript] Rendering template 'org/alfresco/repository/login.get.xml.ftl'
14:42:58,350 DEBUG [org.alfresco.web.scripts.AbstractWebScript] Rendered template org/alfresco/repository/login.get.xml.ftl in 0.561ms
14:42:58,350 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] End retry transaction block: required,readonly
14:42:58,351 DEBUG [org.alfresco.web.scripts.AbstractRuntime] Web Script org/alfresco/repository/login.get executed in 16.841ms
14:42:58,351 DEBUG [org.alfresco.web.scripts.AbstractRuntime] Processed script url (GET) /api/login in 17.885ms

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
i'm searching for org.alfresco.web.scripts.DeclarativeRegistry Alfresco 3.2 r2 inside SVN (relative SVN version 17458) but i don't find it.
Why?

Regards

fracat71
Champ on-the-rise
Champ on-the-rise
:?:

fracat71
Champ on-the-rise
Champ on-the-rise
Someone can tell me where are the source code of Alfresco 3.2.r2 web-scripts?

Thanks in advance.

fracat71
Champ on-the-rise
Champ on-the-rise
Sorry,
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/webscript-framework

However i continue to have the problem.

I think that the problem is :

AbstractRuntimeContainer
……… 
public void onApplicationEvent(ApplicationEvent event)
    {
        if (event instanceof ContextRefreshedEvent)
        {
           
            ContextRefreshedEvent refreshEvent = (ContextRefreshedEvent)event;
           
            ApplicationContext refreshContext = refreshEvent.getApplicationContext();
        
            if (refreshContext != null && refreshContext.equals(applicationContext))
            {
               

                reset();
            }
        }
    }

But how send the Event?

F.

fracat71
Champ on-the-rise
Champ on-the-rise
Hi all,
there is an ehcache custom configuration causes problems.

10:08:48,370 DEBUG [net.sf.ehcache.Cache] org.alfresco.cache.webScriptsRegistryCache Memory cache hit, but element expired

ehcache custom:
<ehcache>
    <diskStore
      path="java.io.tmpdir/ClusterCache"/>

    <!–
       The 'heartbeatInterval' property is the only one used for the JGroups-enabled implementation
    –>
<!–
    <cacheManagerPeerProviderFactory
        class="org.alfresco.repo.cache.AlfrescoCacheManagerPeerProviderFactory"
        properties="heartbeatInterval=5000,
                    peerDiscovery=automatic,
                    multicastGroupAddress=230.0.0.1,
                    multicastGroupPort=4446"
    />
–>
    <cacheManagerPeerProviderFactory
        class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
        properties="heartbeatInterval=5000,
                    peerDiscovery=manual,
                    rmiUrls=//10.10.25.232:40001/org.hibernate.cache.StandardQueryCache
                                          |//10.10.25.232:40001/org.hibernate.cache.UpdateTimestampsCache
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.NodeImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.QNameEntityImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.NodeImpl.aspects
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.NodeImpl.properties
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.ChildAssocImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.NodeAssocImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.StoreImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.VersionCountImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.AppliedPatchImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAccessControlEntryContextImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAccessControlEntryImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAccessControlListChangeSetImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAccessControlListImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAccessControlListMemberImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAuthorityAliasImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbAuthorityImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.domain.hibernate.DbPermissionImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.audit.hibernate.AuditConfigImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.audit.hibernate.AuditDateImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.audit.hibernate.AuditSourceImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.attributes.AttributeImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.attributes.ListEntryImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.attributes.MapEntryImpl
                                          |//10.10.25.232:40001/org.alfresco.repo.attributes.GlobalAttributeEntryImpl
                                          |//10.10.25.232:40001/org.alfresco.cache.avm.avmEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.avm.versionRootEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.avm.avmNodeCache
                                          |//10.10.25.232:40001/org.alfresco.cache.avm.avmStoreCache
                                          |//10.10.25.232:40001/org.alfresco.cache.avm.avmNodeAspectsCache
                                          |//10.10.25.232:40001/org.alfresco.repo.webservices.querySessionSharedCache
                                          |//10.10.25.232:40001/org.alfresco.cache.storeAndNodeIdCache
                                          |//10.10.25.232:40001/org.alfresco.cache.qnameEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.namespaceEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.localeIdCache
                                          |//10.10.25.232:40001/org.alfresco.cache.mimetypeEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.encodingEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.immutableEntityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.parentAssocsCache
                                          |//10.10.25.232:40001/org.alfresco.cache.userToAuthorityCache
                                          |//10.10.25.232:40001/org.alfresco.cache.permissionsAccessCache
                                          |//10.10.25.232:40001/org.alfresco.cache.nodeOwnerCache
                                          |//10.10.25.232:40001/org.alfresco.cache.personCache
                                          |//10.10.25.232:40001/org.alfresco.cache.ticketsCache
                                          |//10.10.25.232:40001/org.alfresco.cache.sysAdminCache
                                          |//10.10.25.232:40001/org.alfresco.cache.aclCache
                                          |//10.10.25.232:40001/org.alfresco.cache.globalConfigCache
                                          |//10.10.25.232:40001/org.alfresco.cache.resourceBundleBaseNamesCache
                                          |//10.10.25.232:40001/org.alfresco.cache.loadedResourceBundlesCache
                                          |//10.10.25.232:40001/org.alfresco.cache.messagesCache
                                          |//10.10.25.232:40001/org.alfresco.cache.compiledModelsCache
                                          |//10.10.25.232:40001/org.alfresco.cache.prefixesCache
                                          |//10.10.25.232:40001/org.alfresco.cache.tenantsCache
                                          |//10.10.25.232:40001/org.alfresco.cache.tenantFileStoresCache
                                          |//10.10.25.232:40001/org.alfresco.cache.webScriptsRegistryCache"
    />

    <cacheManagerPeerListenerFactory
            class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
            properties="hostName=10.10.25.231, port=40001,socketTimetoutMillis=90000"
    />

     <defaultCache
         maxElementsInMemory="500000"
         eternal="true"
         timeToIdleSeconds="0"
         timeToLiveSeconds="0"
        overflowToDisk="false" >

         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=false,
                             replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>


     </defaultCache>

     <!– Hibernate usage –>
     <cache
         name="org.hibernate.cache.StandardQueryCache"
         maxElementsInMemory="5000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 0.4MB memory required –>
     <cache
         name="org.hibernate.cache.UpdateTimestampsCache"
         maxElementsInMemory="200000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 40MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.NodeImpl"
         maxElementsInMemory="1000000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 0.1 MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.QNameEntityImpl"
         maxElementsInMemory="10000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 40MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.NodeStatusImpl"
         maxElementsInMemory="1000000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 15MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.NodeImpl.aspects"
         maxElementsInMemory="1000000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 10MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.NodeImpl.properties"
         maxElementsInMemory="1000000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– approx 250MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.ChildAssocImpl"
         maxElementsInMemory="20000000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– general use node associations are not common  –>
     <cache
         name="org.alfresco.repo.domain.hibernate.NodeAssocImpl"
         maxElementsInMemory="500000"
         eternal="true"
        overflowToDisk="false">
        <cacheEventListenerFactory
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                properties="replicateAsynchronously=true, replicatePuts=true,
                            replicateUpdates=true, replicateUpdatesViaCopy=true,
                            replicateRemovals=true"/>

        <bootstrapCacheLoaderFactory
                class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
        </cache>

     <!– low numbers of objects expected –>
     <cache
         name="org.alfresco.repo.domain.hibernate.StoreImpl"
         maxElementsInMemory="10000"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– version counters –>
     <!– approx 0.4MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.VersionCountImpl"
         maxElementsInMemory="10000"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– approx 0.1MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.AppliedPatchImpl"
         maxElementsInMemory="10000"
         timeToLiveSeconds="300"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– Permission related caches –>
     <!– approx 1MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.DbAccessControlListImpl"
         maxElementsInMemory="100000"       
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– approx 1MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.DbAccessControlListImpl.entries"
         maxElementsInMemory="100000"       
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– approx 5MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.DbAccessControlEntryImpl"
         maxElementsInMemory="50000"       
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– approx 1MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.DbPermissionImpl"
         maxElementsInMemory="50000"         
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– approx 10MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.DbAuthorityImpl"
         maxElementsInMemory="1000000"       
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <!– approx 5MB memory required –>
     <cache
         name="org.alfresco.repo.domain.hibernate.DbAuthorityImpl.externalKeys"
         maxElementsInMemory="500000"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <!– Audit caches –>
     <cache
         name="org.alfresco.repo.audit.hibernate.AuditConfigImpl"
         maxElementsInMemory="200"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.repo.audit.hibernate.AuditDateImpl"
         maxElementsInMemory="200"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.repo.audit.hibernate.AuditSourceImpl"
         maxElementsInMemory="200000"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
        <!– Attribute Service Caches. –>
        <cache
            name="org.alfresco.repo.attributes.AttributeImpl"
            maxElementsInMemory="500000"
            eternal="true"
            overflowToDisk="false">
             <cacheEventListenerFactory
                     class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                     properties="replicateAsynchronously=true, replicatePuts=true,
                                 replicateUpdates=true, replicateUpdatesViaCopy=true,
                                 replicateRemovals=true"/>

             <bootstrapCacheLoaderFactory
                     class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                     properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
            </cache>
        <cache
            name="org.alfresco.repo.attributes.ListEntryImpl"
            maxElementsInMemory="200000"
            eternal="true"
            overflowToDisk="false">
             <cacheEventListenerFactory
                     class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                     properties="replicateAsynchronously=true, replicatePuts=true,
                                 replicateUpdates=true, replicateUpdatesViaCopy=true,
                                 replicateRemovals=true"/>

             <bootstrapCacheLoaderFactory
                     class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                     properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
            </cache>
        <cache
                name="org.alfresco.repo.attributes.MapEntryImpl"
                maxElementsInMemory="200000"
                eternal="true"
                overflowToDisk="false">
                 <cacheEventListenerFactory
                         class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                         properties="replicateAsynchronously=true, replicatePuts=true,
                                     replicateUpdates=true, replicateUpdatesViaCopy=true,
                                     replicateRemovals=true"/>

                 <bootstrapCacheLoaderFactory
                         class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                         properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
                </cache>
        <cache
            name="org.alfresco.repo.attributes.GlobalAttributeEntryImpl"
            maxElementsInMemory="100000"
            eternal="true"
            overflowToDisk="false">
             <cacheEventListenerFactory
                     class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                     properties="replicateAsynchronously=true, replicatePuts=true,
                                 replicateUpdates=true, replicateUpdatesViaCopy=true,
                                 replicateRemovals=true"/>

             <bootstrapCacheLoaderFactory
                     class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                     properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
            </cache>

     <!– AVM caches –>
      <cache
         name="org.alfresco.repo.avm.AVMNodeImpl"
         maxElementsInMemory="500000"
         eternal="true"
         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.AVMStoreImpl"
         maxElementsInMemory="10000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.VersionRootImpl"
         maxElementsInMemory="20000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.ChildEntryImpl"
         maxElementsInMemory="1000000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.HistoryLinkImpl"
         maxElementsInMemory="20000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.MergeLinkImpl"
         maxElementsInMemory="20000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.AVMNodePropertyImpl"
         maxElementsInMemory="200000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.AVMStorePropertyImpl"
         maxElementsInMemory="50000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
      <cache
         name="org.alfresco.repo.avm.AVMAspectNameImpl"
         maxElementsInMemory="100000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>

     <!– Internally used caches –>
     <cache
         name="org.alfresco.cache.parentAssocsCache"
         maxElementsInMemory="1000000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.cache.userToAuthorityCache"
         maxElementsInMemory="1000000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.cache.permissionsAccessCache"
         maxElementsInMemory="5000000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.cache.nodeOwnerCache"
         maxElementsInMemory="2000000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.cache.personCache"
         maxElementsInMemory="100000"
         eternal="true"

         overflowToDisk="false">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
     <cache
         name="org.alfresco.cache.ticketsCache"
         maxElementsInMemory="100000"
         eternal="true"

         overflowToDisk="true">
         <cacheEventListenerFactory
                 class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                 properties="replicateAsynchronously=true, replicatePuts=true,
                             replicateUpdates=true, replicateUpdatesViaCopy=true,
                             replicateRemovals=true"/>

         <bootstrapCacheLoaderFactory
                 class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                 properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/>
         </cache>
</ehcache>
LOG:

10:08:48,344 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServlet] Initialised Web Script Servlet (authenticator='webscripts.authenticator.basic')
10:08:48,345 DEBUG [org.alfresco.web.scripts.servlet.WebScriptServlet] Processing request (GET) http://digit1.celdra-silef.it:8080/alfresco/service/api/login?u=ARCANGELO.CHIACCHIO&pw=ALFRESCO
10:08:48,370 DEBUG [org.alfresco.web.scripts.AbstractRuntime] (Runtime=ServletRuntime, Container=Repository) Processing script url (GET) /api/login
10:08:48,370 DEBUG [net.sf.ehcache.Cache] org.alfresco.cache.webScriptsRegistryCache Memory cache hit, but element expired
10:08:48,373 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Initialising Web Scripts (Container: Repository, URI index: org.alfresco.web.scripts.JaxRSUriIndex)
10:08:48,373 DEBUG [org.alfresco.web.scripts.DeclarativeRegistry] Locating Web Scripts within workspace://SpacesStore/app:company_home/app:dictionary/cm:extensionwebscripts

Now it has been removed and enabled default ehcache configuration (clustering removed): everything it is ok but without clustering.

helen
Champ in-the-making
Champ in-the-making
This happens in cluster only. Only if servers in this cluster have different number/version of webscripts. To fix it sync code and webscripts on all your servers. In few minutes after ehcache expires and webscripts are refreshed and the same on all servers autoreloading will stop.