[jboss-user] [JBossCache] - statistics not refreshing
jzmmek2k2
do-not-reply at jboss.com
Wed Oct 18 01:17:53 EDT 2006
We are currently integrate jboss-cache in our project and it works really good. But the only thing not working is the statistic-mbeans (neither in jmx-console nor in jconsole). The only attribute which refreshes is the time elapsed since starting/reset.
This is our environment:
- Linux
- JBossCache-1.4.0.SP1
- Sun JDK 1.5
- jboss-4.0.4.GA-ejb3
And this is out configuration (this is very similar to 'local-service.xml'):
<?xml version="1.0" encoding="UTF-8"?>
|
| <server>
|
| <mbean code="org.jboss.cache.aop.PojoCache" name="jboss.cache:service=TreeCacheXX">
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
| <attribute name="CacheMode">LOCAL</attribute>
|
| <attribute name="ClusterName">TreeCache-Cluster</attribute>
|
| <attribute name="ClusterConfig">
| <config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address -->
| <!-- 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_addr="228.1.2.3" mcast_port="48866"
| ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
| ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
| loopback="false"/>
| <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>
| <attribute name="InitialStateRetrievalTimeout">20000</attribute>
| <attribute name="SyncReplTimeout">20000</attribute>
| <attribute name="LockAcquisitionTimeout">5000</attribute>
| <attribute name="EvictionPolicyClass"></attribute>
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <!-- Cache wide default -->
| <region name="/bookmarks">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">1000</attribute>
| </region>
| <region name="/friendships">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">1000</attribute>
| </region>
| </config>
| </attribute>
|
| <attribute name="UseRegionBasedMarshalling">false</attribute>
|
| </mbean>
|
| </server>
|
In our tests have simply get/put some java.lang.String objects in the cache:
We have used both ways (jndi & programmatic) to embedd the cache in jboss, but without any difference.
...
| Object x = cache.getObject(Fqn.fromString("/a1"));
| cache.putObject(Fqn.fromString("/a1"), "hello world");
| x = cache.getObject(Fqn.fromString("/a1"));
| ...
|
It would be really great if someone can help me, because we cannot do any production-planning without any statistics.
Regards,
Jan Zimmek
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978967#3978967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978967
More information about the jboss-user
mailing list