<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Disregard, I found the issue.&nbsp;Sorry for the spam.<BR>&nbsp;<BR>
&gt; From: dlmarion@hotmail.com<BR>&gt; To: infinispan-dev@lists.jboss.org<BR>&gt; Date: Tue, 18 Jan 2011 20:39:21 -0500<BR>&gt; Subject: Re: [infinispan-dev] ISPN-863 - Thoughts / Questions<BR>&gt; <BR>&gt; Hah, might be because the POM is configured to run tests in parallel with a<BR>&gt; max heap size of 1GB. Can someone update<BR>&gt; http://community.jboss.org/wiki/ParallelTestSuite or<BR>&gt; http://community.jboss.org/wiki/InfinispanQuickStartGuideforDevelopers#Testi<BR>&gt; ng with instructions on how to run test serially (I didn’t find anything wrt<BR>&gt; Maven surefire plugin)? Thanks<BR>&gt; <BR>&gt; -----Original Message-----<BR>&gt; From: infinispan-dev-bounces@lists.jboss.org<BR>&gt; [mailto:infinispan-dev-bounces@lists.jboss.org] On Behalf Of Galder<BR>&gt; Zamarreño<BR>&gt; Sent: Tuesday, January 18, 2011 6:12 AM<BR>&gt; To: infinispan -Dev List<BR>&gt; Subject: Re: [infinispan-dev] ISPN-863 - Thoughts / Questions<BR>&gt; <BR>&gt; Hmmm, try increasing -Xmx? Start with -XX:+HeapDumpOnOutOfMemoryError<BR>&gt; -XX:HeapDumpPath=/tmp/java_heap and inspect the dump with Eclipse MAT?...<BR>&gt; <BR>&gt; On Jan 17, 2011, at 4:51 PM, david marion wrote:<BR>&gt; <BR>&gt; &gt; same result.<BR>&gt; &gt; <BR>&gt; &gt; Date: Mon, 17 Jan 2011 11:54:15 -0300<BR>&gt; &gt; From: vblagoje@redhat.com<BR>&gt; &gt; To: infinispan-dev@lists.jboss.org<BR>&gt; &gt; Subject: Re: [infinispan-dev] ISPN-863 - Thoughts / Questions<BR>&gt; &gt; <BR>&gt; &gt; Its easier to run everything from command line for two reason I can think<BR>&gt; of:<BR>&gt; &gt; - everyone has same env to compare results with you<BR>&gt; &gt; - it is all ready to go<BR>&gt; &gt; <BR>&gt; &gt; See http://community.jboss.org/wiki/InfinispanandMaven<BR>&gt; &gt; <BR>&gt; &gt; On 11-01-17 11:38 AM, Dave wrote:<BR>&gt; &gt; All,<BR>&gt; &gt; <BR>&gt; &gt; I am trying to test some changes that I made using Eclipse and the TestNG<BR>&gt; plugin. I am not familiar with TestNG. Are there any settings that I should<BR>&gt; make? Any ideas?<BR>&gt; &gt; <BR>&gt; &gt; java.lang.OutOfMemoryError: Java heap space<BR>&gt; &gt; at<BR>&gt; org.infinispan.util.concurrent.BoundedConcurrentHashMap$HashEntry.newArray(B<BR>&gt; oundedConcurrentHashMap.java:295)<BR>&gt; &gt; at<BR>&gt; org.infinispan.util.concurrent.BoundedConcurrentHashMap$Segment.&lt;init&gt;(Bound<BR>&gt; edConcurrentHashMap.java:898)<BR>&gt; &gt; at<BR>&gt; org.infinispan.util.concurrent.BoundedConcurrentHashMap.&lt;init&gt;(BoundedConcur<BR>&gt; rentHashMap.java:1367)<BR>&gt; &gt; at<BR>&gt; org.infinispan.container.DefaultDataContainer.&lt;init&gt;(DefaultDataContainer.ja<BR>&gt; va:78)<BR>&gt; &gt; at<BR>&gt; org.infinispan.container.DefaultDataContainer.&lt;init&gt;(DefaultDataContainer.ja<BR>&gt; va:47)<BR>&gt; &gt; at<BR>&gt; org.infinispan.container.DefaultDataContainer.unBoundedDataContainer(Default<BR>&gt; DataContainer.java:93)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.DataContainerFactory.construct(DataContainerFactory<BR>&gt; .java:53)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(Abst<BR>&gt; ractComponentRegistry.java:315)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(Abs<BR>&gt; tractComponentRegistry.java:251)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry$Component.injectDependenc<BR>&gt; ies(AbstractComponentRegistry.java:840)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.registerComponent(Abstrac<BR>&gt; tComponentRegistry.java:225)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegist<BR>&gt; ry.java:120)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.registerComponent(Abstrac<BR>&gt; tComponentRegistry.java:192)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(Abst<BR>&gt; ractComponentRegistry.java:323)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(Abs<BR>&gt; tractComponentRegistry.java:251)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry$Component.injectDependenc<BR>&gt; ies(AbstractComponentRegistry.java:840)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.registerComponent(Abstrac<BR>&gt; tComponentRegistry.java:225)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegist<BR>&gt; ry.java:120)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.registerComponent(Abstrac<BR>&gt; tComponentRegistry.java:192)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(Abst<BR>&gt; ractComponentRegistry.java:323)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(Abs<BR>&gt; tractComponentRegistry.java:251)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry$Component.injectDependenc<BR>&gt; ies(AbstractComponentRegistry.java:840)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.registerComponent(Abstrac<BR>&gt; tComponentRegistry.java:225)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegist<BR>&gt; ry.java:120)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.AbstractComponentRegistry.registerComponent(Abstrac<BR>&gt; tComponentRegistry.java:192)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory<BR>&gt; .java:92)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFac<BR>&gt; tory.java:78)<BR>&gt; &gt; at<BR>&gt; org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFacto<BR>&gt; ry.java:62)<BR>&gt; &gt; at<BR>&gt; org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.j<BR>&gt; ava:510)<BR>&gt; &gt; at<BR>&gt; org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java<BR>&gt; :440)<BR>&gt; &gt; at<BR>&gt; org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java<BR>&gt; :409)<BR>&gt; &gt; at<BR>&gt; org.infinispan.config.ConfigurationValidationTest.testDefaultMemoryGuardConf<BR>&gt; iguration(ConfigurationValidationTest.java:100)<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; -----Original Message-----<BR>&gt; &gt; From: infinispan-dev-bounces@lists.jboss.org<BR>&gt; [mailto:infinispan-dev-bounces@lists.jboss.org] On Behalf Of Vladimir<BR>&gt; Blagojevic<BR>&gt; &gt; Sent: Friday, January 14, 2011 11:05 AM<BR>&gt; &gt; To: infinispan -Dev List<BR>&gt; &gt; Subject: Re: [infinispan-dev] ISPN-863 - Thoughts / Questions<BR>&gt; &gt; <BR>&gt; &gt; Hey David,<BR>&gt; &gt; <BR>&gt; &gt; First of all kudos for taking on such a non-trivial task!<BR>&gt; &gt; <BR>&gt; &gt; On 11-01-14 12:22 AM, david marion wrote:<BR>&gt; &gt; 1. Modify configuration in some way so that the following can be<BR>&gt; specified:<BR>&gt; &gt; a. The percentage value of used JVM memory (i.e. 95) at which<BR>&gt; entries should be evicted to try and avoid an OOM error.<BR>&gt; &gt; b. The number of items that should be evicted when memory reaches<BR>&gt; this threshold<BR>&gt; &gt; 2. Modify LRU and LIRS Eviction class so that the accessQueue member<BR>&gt; can be accessed by the new Eviction class so that two access queues don’t<BR>&gt; have to be maintained.<BR>&gt; &gt; 3. Create a new Eviction class, a subclass of LIRS, where the<BR>&gt; accessQueue is used from the Eviction strategy the user specifies and the<BR>&gt; for loop in the execute method is exited when the evicted set equals value<BR>&gt; from 1.b above.<BR>&gt; &gt; 4. Modify DataContainerFactory.construct() to call<BR>&gt; DefaultDataContainer.boundedDataContainer() regardless of eviction policy.<BR>&gt; This will always create a BoundedConcurrentHashMap<BR>&gt; &gt; <BR>&gt; &gt; I don't think you have to extend LRU and LIRS, as long as you implement<BR>&gt; EvictionPolicy you are fullfilling the contract. What extending LRU and LIRS<BR>&gt; can do is give you some order in selecting proper elements for eviction. I<BR>&gt; think the precise technical term in research literature is "eviction<BR>&gt; precision". <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; 1. <BR>&gt; &gt; 2. Create an instance of the new Eviction class in each segment.<BR>&gt; &gt; 3. Modify BoundedConcurrentHashMap.Segment put and replace methods<BR>&gt; such that when new values are going to be put into the Segment, the memory<BR>&gt; usage is checked and the execute method is called on the new Eviction class.<BR>&gt; &gt; <BR>&gt; &gt; Sounds right!<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; 1. <BR>&gt; &gt; <BR>&gt; &gt; Questions:<BR>&gt; &gt; <BR>&gt; &gt; 1. What are the implications of using a BoundedConcurrentHashMap<BR>&gt; instead of a ConcurrentHashMap when maxEntries is set to -1?<BR>&gt; &gt; <BR>&gt; &gt; I think none except you turn on eviction by using<BR>&gt; BoundedConcurrentHashMap.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; 1. <BR>&gt; &gt; <BR>&gt; &gt; Thoughts<BR>&gt; &gt; <BR>&gt; &gt; 1. This will not guarantee that an OOM error does not occur. It will<BR>&gt; attempt to guard against an OOM caused by putting new values into the cache.<BR>&gt; This will probably be more effective when the cache is being used in<BR>&gt; client/server mode, and less effective when used in embedded mode as to<BR>&gt; other code running in the JVM.<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; -- Dave Marion<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Cheers,<BR>&gt; &gt; Vladimir<BR>&gt; &gt; <BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; infinispan-dev mailing list<BR>&gt; &gt; <BR>&gt; &gt; infinispan-dev@lists.jboss.org<BR>&gt; &gt; https://lists.jboss.org/mailman/listinfo/infinispan-dev<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; _______________________________________________ infinispan-dev mailing<BR>&gt; list infinispan-dev@lists.jboss.org<BR>&gt; https://lists.jboss.org/mailman/listinfo/infinispan-dev_____________________<BR>&gt; __________________________<BR>&gt; &gt; infinispan-dev mailing list<BR>&gt; &gt; infinispan-dev@lists.jboss.org<BR>&gt; &gt; https://lists.jboss.org/mailman/listinfo/infinispan-dev<BR>&gt; <BR>&gt; --<BR>&gt; Galder Zamarreño<BR>&gt; Sr. Software Engineer<BR>&gt; Infinispan, JBoss Cache<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; infinispan-dev mailing list<BR>&gt; infinispan-dev@lists.jboss.org<BR>&gt; https://lists.jboss.org/mailman/listinfo/infinispan-dev<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; infinispan-dev mailing list<BR>&gt; infinispan-dev@lists.jboss.org<BR>&gt; https://lists.jboss.org/mailman/listinfo/infinispan-dev<BR>                                               </body>
</html>