[JBossCache] - Distributed cache crash after four days of operation
by xxxz
Hi,
we are using jboss cache in a cluster of two machines. The caches in the cluster are propagating asynchronous invalidations.
We observed strange behavior after four days in production environment. One instance of cache sent 8MB of state info and the other cache instance crashed. We suspect that the second instance crashed because the first one sent a lot of data. What is weird is the first intance sending 8MB of state info. How is this possible when we only use invalidation ?
The log from the two machines :
MACHINE A
| [10/29/07 13:26:39:745 CET] 00000029 TreeCache I org.jboss.cache.TreeCache viewAccepted viewAccepted(): [192.168.200.33:4045|5] [192.168.200.33:4045, 192.168.200.32:1211]
| [10/29/07 13:26:46:917 CET] 00000029 StateTransfer I org.jboss.cache.statetransfer.StateTransferGenerator_140 generateStateTransfer returning the state for tree rooted in /(8388608 bytes)
|
MACHINE B
| [10/29/07 13:26:38:836 CET] 00000079 TreeCache I org.jboss.cache.TreeCache viewAccepted viewAccepted(): [192.168.200.33:4045|5] [192.168.200.33:4045, 192.168.200.32:1211]
| [10/29/07 13:26:39:945 CET] 00000075 JChannel I org.jgroups.JChannel$CloserThread run fetching the state (auto_getstate=true)
| [10/29/07 13:26:44:961 CET] 00000075 JChannel I org.jgroups.JChannel$CloserThread run state transfer failed
| [10/29/07 13:26:59:788 CET] 00000078 STATE_TRANSFE W org.jgroups.protocols.pbcast.STATE_TRANSFER handleViewChange discovered that the state provider (192.168.200.33:4045) crashed; will return null state to application
| [10/29/07 13:26:59:788 CET] 00000078 STATE_TRANSFE W org.jgroups.protocols.pbcast.STATE_TRANSFER handleStateRsp digest received from 192.168.200.32:1211 is null, skipping setting digest !
| [10/29/07 13:26:59:788 CET] 00000078 STATE_TRANSFE W org.jgroups.protocols.pbcast.STATE_TRANSFER handleStateRsp state received from 192.168.200.32:1211 is null, will return null state to application
| [10/29/07 13:26:59:788 CET] 00000078 TreeCache I org.jboss.cache.TreeCache viewAccepted viewAccepted(): [192.168.200.32:1211|6] [192.168.200.32:1211]
|
cahce configuration:
| <server>
| <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar" />
| <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=ISRTreeCache">
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.GenericTransactionManagerLookup</attribute>
|
| <!-- depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends -->
|
| <!--
| Node locking scheme :
| PESSIMISTIC (default)
| OPTIMISTIC
| -->
| <attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
| <!--
| Node locking isolation level :
| SERIALIZABLE
| REPEATABLE_READ (default)
| READ_COMMITTED
| READ_UNCOMMITTED
| NONE
| (ignored if NodeLockingScheme is OPTIMISTIC)
| -->
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
| <!-- Lock parent before doing node additions/removes -->
| <attribute name="LockParentForChildInsertRemove">true</attribute>
| <!-- Valid modes are LOCAL
| REPL_ASYNC
| REPL_SYNC
| INVALIDATION_ASYNC
| INVALIDATION_SYNC
| -->
| <attribute name="CacheMode">INVALIDATION_ASYNC</attribute>
| <!-- Name of cluster. Needs to be the same for all TreeCache nodes in a
| cluster, in order to find each other -->
| <attribute name="ClusterName">ISR</attribute>
| <!-- Whether each interceptor should have an mbean
| registered to capture and display its statistics. -->
| <attribute name="UseInterceptorMbeans">false</attribute>
|
| <attribute name="ClusterConfig">
| <config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address
| bind_addr="192.168.200.32"
| -->
| <!-- UDP: On Windows machines, because of the media sense feature
| being broken with multicast (even after disabling media sense)
| set the loopback attribute to true
| -->
| <UDP mcast_port="45454" mcast_addr="228.1.2.3" tos="16"
| ucast_recv_buf_size="20000000" ucast_send_buf_size="640000"
| mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
| loopback="true" discard_incompatible_packets="true"
| max_bundle_size="10000" max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false" ip_ttl="2"
| enable_diagnostics="false" down_thread="false" up_thread="false"
| enable_bundling="true" />
| <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
| <MERGE2 min_interval="10000" max_interval="20000" />
| <FD shun="true" up_thread="true" down_thread="true" />
| <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
| <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" max_xmit_size="8192" up_thread="false"
| down_thread="false" />
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
| <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
| <FRAG frag_size="8192" down_thread="false" up_thread="false" />
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
| <pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
| </config>
|
| </attribute>
|
| ...
| ...
|
| </mbean>
| </server>
|
JBoss cache version: 1.4.1.SP4
JGroups version: 2.4.1
Has anyone any idea's what is going on ? Any Help Is Appreciated.
martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100531#4100531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100531
18Â years, 5Â months
[JBoss Seam] - Problem with cache config in unit tests
by endremr
Hi!
I have a Seam application (v1.2.1) where I have started to use JBoss Cache as an entity cache. The application is deployed within JBoss 4.0.4, and things seems to work. I use the following config in "persistence.xml":
| <persistence-unit name="NewsAdminSesamNoDatabase">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/NewsAdminSesamNoDS</jta-data-source>
| <properties>
| <!-- Uses JBoss Cache as entity cache. -->
| <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>
| <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/>
| <!-- Enabled query cache. -->
| <property name="hibernate.cache.use_query_cache" value="true"/>
| </properties>
| </persistence-unit>
|
The problem is that my tests now breaks because I can't manage to get things running in the embedded jboss. Usually I use ehcache in my tests using the provider class "HashtableCacheProvider", defined in "default.persistence.properties".
But the TreeCache config in "persistence.xml" seems to override my test config. I have tried to include jboss-cache in my test classpath, but then my tests fail since "EJB3EntityTreeCache" is not deployed, and I don't know how I can do this.
Anybody that can give me an advice how to solve this?
Thanks :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100522#4100522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100522
18Â years, 5Â months
[JBoss Portal] - Can not be back to home(default page)any more when you click
by tomoon
Hi,
I found a strange thing in JBoss CMS portal2.6.2.
I want to integrate a small web site (some static html pages) into JBoss CMS.
Step 1:
I create a clean JBoss portal with instruments--http://wiki.jboss.org/wiki/Wiki.jsp?page=CleanPortalSamplesF...
Step 2:
I changed the content in one config file to:
<portlet-preferences>
| <preference>
| <name>indexpage</name>
| <!--value>/default/index.html</value-->
| <value>/myfolder/pages/index.html</value>
| </preference>
| </portlet-preferences>
|
And change another config file to:
<window>
| <window-name>CMSWindow</window-name>
| <content>
| <content-type>cms</content-type>
| <content-uri>/myfolder/pages/index.html</content-uri>
| </content>
| <region>left</region>
| <height>0</height>
| </window>
|
BTW?I just use left column to show something here.
Step 3:
I created some menu and sub-menu using JBoss portal, just like below:
Home About Us Help
Sub-menu1
Sub-menu2
There are some html pages including Legal link fragment:
?
| <!--footer-->
| <div id="footer">
| <ul id="navFooter">
| <li>© 2007 MyCompany. All rights reserved.</li>
| <li><a HREF="/portal/content/myfolder/pages/legal.html">Legal Information.</a></li>
| </ul>
| </div>
| <!--/footer-->
| ?
|
Reproduce the problem as follows:
Step 1:
Using http://localhost:8080/portal can be linked to default page
Step 2:
Click the home menu can display default page and browser URL will be http://localhost:8080/portal/portal/default/default
Step3:
Click the menu sub_memu1 can display the right page as well other menus, click home menu, you can get the default page without any problem.
Step4:
In default page, click the Legal link at the bottom of default pages, the Legal page can be displayed. PROBLEM comes at this point now, if we click the Home menu, the page will stay in legal page, we can not be back to default page any more!!!. I verified it with other pages which includes a link (link to Html page, not images) in page, the same thing happened, it is so weird!!. However if you click logout, you will get the default page again.
The url is http://localhost:8080/portal/portal/default .
Is it a Bug or something I missed?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100517#4100517
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100517
18Â years, 5Â months