[JBoss JIRA] Created: (ISPN-1047) Cache performance slow in a JTA transaction with many cache operations
by Tom Waterhouse (JIRA)
Cache performance slow in a JTA transaction with many cache operations
----------------------------------------------------------------------
Key: ISPN-1047
URL: https://issues.jboss.org/browse/ISPN-1047
Project: Infinispan
Issue Type: Bug
Affects Versions: 4.2.1.FINAL
Environment: Infinispan 4.2.1.FINAL/Hibernate 3.6.1.Final/Spring 3.0.5/JBossJTA 4.14.0
Reporter: Tom Waterhouse
Assignee: Manik Surtani
When running Infinispan in a JTA transaction the performance of cache operations decreases as the number of operations increases in the transaction. If adding to the cache, adding 50k items is much faster when done 1k items per transaction than all 50k in one transaction.
Using JProfiler the bulk of the time was spent in LockingInterceptor.doAfterCall() for the all 50k in one transaction test.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ISPN-1051) Potential concurrency issues when retrieving a cache concurrently (for the first time)
by Emmanuel Bernard (JIRA)
Potential concurrency issues when retrieving a cache concurrently (for the first time)
--------------------------------------------------------------------------------------
Key: ISPN-1051
URL: https://issues.jboss.org/browse/ISPN-1051
Project: Infinispan
Issue Type: Bug
Reporter: Emmanuel Bernard
Assignee: Manik Surtani
My code initialize the CacheManager but retrieve the cache only "on demand". Several threads do access cacheManager.getCache(namedCache); concurrently.
I am experiencing the following exceptions
{code}Caused by: org.infinispan.config.ConfigurationException: Component factory class org.infinispan.factories.EmptyConstructorFactory incorrectly registered! Debug stack: null
[java] at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:365)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:317)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:131)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:133)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:133)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:133)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:102)
[java] at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:77)
[java] at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:61)
[java] at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:538)
[java] at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:443)
[java] at org.hibernate.ogm.metadata.GridMetadataManagerHelper.getEntityCache(GridMetadataManagerHelper.java:68)
[java] at org.hibernate.ogm.metadata.GridMetadataManagerHelper.getEntityCache(GridMetadataManagerHelper.java:63)
{code}
As well as rarely
{code} [java] Caused by: java.util.ConcurrentModificationException
[java] at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
[java] at java.util.AbstractList$Itr.next(AbstractList.java:343)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:131)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:133)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:133)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:326)
[java] at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:254)
[java] at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:843)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:228)
[java] at org.infinispan.factories.ComponentRegistry.registerComponent(ComponentRegistry.java:133)
[java] at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:185)
[java] at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:102)
[java] at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:77)
[java] at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:61)
[java] at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:538)
[java] at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:443)
[java] at org.hibernate.ogm.metadata.GridMetadataManagerHelper.getIdentifierCache(GridMetadataManagerHelper.java:74)
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ISPN-1035) Servers should avoid reading key/values multiple times per request
by Galder Zamarreño (JIRA)
Servers should avoid reading key/values multiple times per request
------------------------------------------------------------------
Key: ISPN-1035
URL: https://issues.jboss.org/browse/ISPN-1035
Project: Infinispan
Issue Type: Bug
Components: Cache Server
Affects Versions: 5.0.0.BETA1, 4.2.1.FINAL
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Priority: Critical
Fix For: 4.2.2.BETA1, 5.0.0.BETA2, 5.0.0.FINAL
When Infinispan servers need to decode keys and values only once per request, otherwise it can generate a lot of garbage byte[]s instances. This is particularly important when bigger key/values are used. The way to do that is tell Netty about intermediate stages of reading a request so that the entire request is not re-read if the entire request has not been read in one go.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ISPN-779) DefaultCacheManager.removeListener throwing NPE when server stopped
by Galder Zamarreño (JIRA)
DefaultCacheManager.removeListener throwing NPE when server stopped
-------------------------------------------------------------------
Key: ISPN-779
URL: https://jira.jboss.org/browse/ISPN-779
Project: Infinispan
Issue Type: Bug
Components: Cache Server
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 4.2.0.CR1
I'm seeing a NPE when Memcached server shutdowns:
Exception in thread "Thread-2" java.lang.RuntimeException: Exception encountered in shutting down the server
at org.infinispan.server.core.ShutdownHook.run(Main.scala:239)
Caused by: java.util.concurrent.ExecutionException: org.infinispan.CacheException: Unable to invoke method private void org.infinispan.transaction.xa.TransactionTable.stop() on object
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.infinispan.server.core.ShutdownHook.run(Main.scala:235)
Caused by: org.infinispan.CacheException: Unable to invoke method private void org.infinispan.transaction.xa.TransactionTable.stop() on object
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:173)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:861)
at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:709)
at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:603)
at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:166)
at org.infinispan.CacheDelegate.stop(CacheDelegate.java:325)
at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:521)
at org.infinispan.server.core.ShutdownHook$$anon$5.call(Main.scala:230)
at org.infinispan.server.core.ShutdownHook$$anon$5.call(Main.scala:226)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)
... 13 more
Caused by: java.lang.NullPointerException
at org.infinispan.manager.DefaultCacheManager.removeListener(DefaultCacheManager.java:541)
at org.infinispan.transaction.xa.TransactionTable.stop(TransactionTable.java:87)
... 18 more
The origin seems to be in ISPN-771
Maybe since transaction table now removes the listener, it needs to stop *before* the cache manager notifier does?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (ISPN-1050) Make Infinispan Core pom.xml compatible with latest Eclipse m2
by Sanne Grinovero (JIRA)
Make Infinispan Core pom.xml compatible with latest Eclipse m2
--------------------------------------------------------------
Key: ISPN-1050
URL: https://issues.jboss.org/browse/ISPN-1050
Project: Infinispan
Issue Type: Enhancement
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Priority: Minor
Fix For: 5.0.0.BETA2
Latest M2 plugin for eclipse generates an error which prevents Eclipse from compiling anything unless we manually delete the error, but the event repeats every time the plugin is triggered (very often when coding).
There's a configuration to add to pom.xml to configure it properly - affecting only Eclipse.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months