-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Distributed ehcache errors
PostPosted: Tue Jan 13, 2009 10:15 am 
Newbie

Joined: Mon Dec 15, 2008 7:10 am
Posts: 12
I've set up ehcache 1.5 in a distributed way to function as second level cache in Hibernate. Everything seems to work as expected. It all runs just fine - but I'm having loads of exceptions thrown in background.

Somebody has a clue where these come from ?

=========================================
When receiving cache elements from other nodes in the cluster
=========================================
13:48:42,703 INFO [STDOUT] 13:48:42,703 DEBUG [RMICachePeer] Remote put received. Element is: [ key = xxxxxxxxxxxxxxx,value=Item{version=0,freshTimestamp=5045661082497025, version=1, hitCount=0, CreationTime = 1231850850219, LastAccessTime = 0 ]

13-jan-2009 13:48:42 sun.rmi.server.UnicastServerRef logCall
FINER: RMI TCP Connection(5)-xx.xx.xx.xx: [xx.xx.xx.xx: net.sf.ehcache.distribution.RMICachePeer[-43c5d83:11ed007afcf:-7ff5, 1641872292130560718]: public abstract void net.sf.ehcache.distribution.CachePeer.put(net.sf.ehcache.Element) throws
java.lang.IllegalArgumentException,java.lang.IllegalStateException,java.rmi.Rem
oteException]

===================================
When checking the cache statistics using jconsole/jmx
===================================

13-jan-2009 13:45:55 sun.rmi.server.UnicastServerRef logCall
FINER: RMI TCP Connection(3)-10.7.110.48: [10.7.110.48: javax.management.remote.
rmi.RMIConnectionImpl[5a7cbbe1:11ed005d320:-7ff0, 5723279399195844843]: public a
bstract javax.management.AttributeList javax.management.remote.rmi.RMIConnection
.getAttributes(javax.management.ObjectName,java.lang.String[],javax.security.aut
h.Subject) throws javax.management.InstanceNotFoundException,javax.management.Re
flectionException,java.io.IOException]

Code:
<?xml version="1.0"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.sf.net/ehcache.xsd">

    <cacheManagerPeerProviderFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
                                     properties="peerDiscovery=automatic,multicastGroupAddress=230.0.0.1,multicastGroupPort=4446"/>

    <cacheManagerPeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
            properties="port=40000,socketTimeoutMillis=120000"
            propertySeparator="," />


    <defaultCache
       maxElementsInMemory       = "1000000"
       eternal                   = "false"
       timeToLiveSeconds         = "3600"
       overflowToDisk            = "false"
            memoryStoreEvictionPolicy = "LRU"/>

    <cache name="local"
       maxElementsInMemory="1000000"
       eternal="false"
       overflowToDisk="false"
       timeToLiveSeconds="3600"
       memoryStoreEvictionPolicy="LRU"/>


    <cache name="distributed"
       maxElementsInMemory="100000"
       eternal="false"
       overflowToDisk="false"
       timeToLiveSeconds="3600"
       memoryStoreEvictionPolicy="LRU">
            <cacheEventListenerFactory   class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
                                         properties="replicateAsynchronously=false,replicatePuts=true,replicateUpdates=true,replicateUpdatesViaCopy=true,replicateRemovals=true"
                                         propertySeparator="," />
          <bootstrapCacheLoaderFactory class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory"
                                         properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"
                                         propertySeparator="," />
       </cache>

     <cache name="org.hibernate.cache.StandardQueryCache"
            maxElementsInMemory="500"
            eternal="true"
            overflowToDisk="false"/>

     <cache name="org.hibernate.cache.UpdateTimestampsCache"
            maxElementsInMemory="500"
            eternal="true"
            overflowToDisk="false"
            memoryStoreEvictionPolicy = "LFU"/>
</ehcache>



Hibernate version: 3.2.6

Mapping documents: n/a

Code between sessionFactory.openSession() and session.close():n/a

Full stack trace of any exception that occurs:see above

Name and version of the database you are using:Oracle10g

The generated SQL (show_sql=true):n/a

Debug level Hibernate log excerpt:n/a


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.