[gatein-issues] [JBoss JIRA] (GTNPORTAL-2801) Add eviction to indexer-config.xml

Marek Posolda (JIRA) issues at jboss.org
Tue Jan 14 04:27:33 EST 2014


    [ https://issues.jboss.org/browse/GTNPORTAL-2801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935531#comment-12935531 ] 

Marek Posolda commented on GTNPORTAL-2801:
------------------------------------------

So Nicolas confirmed on jbossexo ML that this configuration can't be used by default. It's by design that JBC configuration for indexer doesn't have eviction enabled. Enabling eviction could break the index and cause inconsistencies in JCR query results. 

On the other hand, for some people it may be still useful as there are not so many places in GateIn where are JCR queries used (I am aware that queries are used in  PageManagementPortlet and WSRP). So for someone, it may be good to save some memory with the disadvantage of broken index, which means that some functionalities (like mentioned PageManagementPortlet and WSRP) may not work correctly.

Maybe it worth to mention this into perf tuning guide? But it seems that it must be properly tested first and all consequences should be documented as well.
                
> Add eviction to indexer-config.xml
> ----------------------------------
>
>                 Key: GTNPORTAL-2801
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2801
>             Project: GateIn Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JCR integration
>    Affects Versions: 3.5.0.Final
>            Reporter: Toshiya Kobayashi
>
> gatein.ear/portal.war/WEB-INF/conf/jcr/jbosscache/cluster/indexer-config.xml doesn't have eviction configuration. It may cause a memory leak in slave nodes.
> {code:xml}
> <jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.1">
>   <locking useLockStriping="false" concurrencyLevel="64" lockParentForChildInsertRemove="false"
>            lockAcquisitionTimeout="20000"/>
>   <!-- Configure the TransactionManager -->
>   <transaction transactionManagerLookupClass="org.jboss.cache.transaction.JBossStandaloneJTAManagerLookup"/>
>   <clustering mode="replication" clusterName="${jboss.partition.name:DefaultPartition}-${jbosscache-cluster-name}">
>     <stateRetrieval timeout="20000" fetchInMemoryState="false"/>
>     <jgroupsConfig configFile="jgroups/gatein-${gatein.default.jgroups.stack:udp}.xml"/>
>     <sync/>
>   </clustering>
> </jbosscache>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list