Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
LUNA is slow to respond

The problem stems from how we use an internal service called ehcache to propagate sessions between the various LUNA tools. This propagation allows a user to login to one tool and then have access to other LUNA tools like the Library or the Administrator without needing to login again.

This all becomes a problem when the LUNA Viewer has many collections open to the public and web crawlers traverse the content. Each web crawler connection makes a session that then propagates across all the tools. Eventually this eats up server resources to the point that the site slows then becomes inaccessible.

We have implemented and now have completed testing on a propagation method where only logged in users sessions are propagated. This will be the default in post 7.1.6.5 releases.

To make this change

Edit ehcache.xml in the following location.

LunaImaging/7.x/LUNA/tomcat/luna_apps/luna.war/WEB-INF/classes/

Code Block
languagehtml/xml
           
            <cacheEventListenerFactory
                properties="replicateAsynchronously=true, 
                            replicatePuts=true, 
                            replicateUpdates=true,
                            replicateUpdatesViaCopy=true, 
                            replicateRemovals=true"
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" />
        
            <!--  replicate only authenticated sessions -->
<!--           
            <cacheEventListenerFactory
                class="com.lunaimaging.security.ehcache.LunaRMICacheReplicatorFactory" />
-->     

Change this section to comment out the top  "cacheEventListenerFactory" using this comment block syntax <!--       --> and remove the comment block from the second one as shown.

Code Block
languagehtml/xml
<!--             
            <cacheEventListenerFactory
                properties="replicateAsynchronously=true, 
                            replicatePuts=true, 
                            replicateUpdates=true,
                            replicateUpdatesViaCopy=true, 
                            replicateRemovals=true"
                class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" />
-->             
            <!--  replicate only authenticated sessions -->
           
            <cacheEventListenerFactory
                class="com.lunaimaging.security.ehcache.LunaRMICacheReplicatorFactory" />
 

This will make the sessions propagate only when logged in.

Restart LUNA 7's tomcat.