infinispan 4.2.0 memory heap keep on increasing constant which cause server crash.
maniv Jul 28, 2011 9:16 AMIssue details :-
Infinispan 4.2.0 server heap memory utilisation is constantly growing above 80% of the allocated memory.
though eviction is happening periodically but the memory utilization doesn’t come down the 80% mark. With time memory utilization increases and reaches the maximum allocated memory which leads to server crash.
OS Environment detail : - linux – solaris
Infinispan version :- 4.2.0
Please find Server side configuration files(jgroups-udp.xml , application-specific-infinispan-config.xml) in attachement
Please find hotrod client side configuration as below
------------------------------------------------
infinispan.client.hotrod.transport_factory = org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory
infinispan.client.hotrod.server_list = <server name>\:11322
infinispan.client.hotrod.marshaller = org.infinispan.marshall.jboss.GenericJBossMarshaller
infinispan.client.hotrod.async_executor_factory = org.infinispan.client.hotrod.impl.async.DefaultAsyncExecutorFactory
infinispan.client.hotrod.default_executor_factory.pool_size = 1
infinispan.client.hotrod.default_executor_factory.queue_size = 10000
infinispan.client.hotrod.hash_function_impl.1 = org.infinispan.client.hotrod.impl.consistenthash.ConsistentHashV1
infinispan.client.hotrod.tcp_no_delay = true
infinispan.client.hotrod.ping_on_startup = true
infinispan.client.hotrod.request_balancing_strategy = org.infinispan.client.hotrod.impl.transport.tcp.RoundRobinBalancingStrategy
infinispan.client.hotrod.key_size_estimate = 64
infinispan.client.hotrod.value_size_estimate = 512
infinispan.client.hotrod.force_return_values = false
------------------------------------------------
Please find below code which uses to fetch and put data from remote cache,
..............
...........
.........
Object objMsg = message.getOtaResponse();
.........
//access the named cache
RemoteCacheManager cacheManager = CacheManager.getCacheManager();
Cache cache = cacheManager.getCache(cacheName);;
// to put the data object into cache
- cache.putAsync(message.getMessageKey(), objMsg ,message.getCacheExpiry(),TimeUnit.SECONDS);
.........
...........
................
.........
// to fetch the data object from cache
Object otaResponse = cache.get(message.getMessageKey());
---------------------------
Please suggest to resolve as soon as possible
-
jgroups-udp.xml 2.2 KB