-
15. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
asimoes Oct 4, 2011 10:24 AM (in response to galder.zamarreno)In the zip I had "use_synchronization=false" because I was testing the effect of that option.
I really don't see any differente using it to false or true...
But after that, i set it to true and make all my tests using "use_synchronization=true"
Its seams to me that the problem is related to "com.arjuna.ats.internal.arjuna.objectstore.ShadowingStore.write_state()"
I'm not an expert, but its strange the huge use of cpu by this method.
-
16. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Oct 10, 2011 6:17 AM (in response to asimoes)It could be down to the JBoss Transactions configuration in AS 5.1.0. It might be worth testing the same app in AS7 or AS6 and see if you still have issues.
-
17. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
filipe_c Oct 18, 2011 9:47 AM (in response to galder.zamarreno)Hi Galder,
Thanks for your support.
Just some toughts:
1. AS7 has beed release just some time ago; and if we've changed from 5.1.0 to 6.0.0 we're had commit an error, since 7.0 just has been release some time after 6.0.
2. JBoss 5.1.0 is not on EOL target for short term; And is used still on very production systems;
3. you've a official user guide to use infinispan on jboss 5.1.0
https://docs.jboss.org/author/display/ISPN/Infinispan+as+Hibernate+2nd-Level+Cache+in+JBoss+AS+5.x
If you 've official doc to put inifispan working on 5.1.0 , dont you think that it shall like "work" !?
So for sure that we're making something wrong, so I suggest if you can make an example that shows Inifinspan working correctly working on jboss 5.1.0 ?
rgds
Filipe
-
18. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Oct 24, 2011 3:55 AM (in response to filipe_c)Sorry, our docs have got out of date, we are targeting latest releases of Infinispan at JBoss AS 7. There we can help you :-)
Also, are you using JBoss AS or JBoss EAP?
Anyway, in 5.1 you have a clustered Hibernate 2LC already available via JBoss Cache.
-
19. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
filipe_c Oct 24, 2011 4:44 AM (in response to galder.zamarreno)Hi Galder,
Infinispan official doc says "A JBoss AS 5.x application can be configured to use Infinispan 4.x as the Hibernate 2nd-level cache, replacing JBoss Cache."
So, how can now justify that we loose time trying to put that working, and now we cant cause doc july 2011 is outdated !?
We are using JBoss as 5.1.0 (but we will get EAP so we can have support.)
suggestion: remove the doc saying that works on jboss5.1.0
-
20. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Oct 24, 2011 6:35 AM (in response to filipe_c)There's some context missing here. That document was originally (http://community.jboss.org/wiki/InfinispanAsHibernate2nd-LevelCacheInJBossAS5x) wrote by one of our consultants who got it to work in November 2010. I'm not aware of him doing any performance work in this environment.
The reason for it appearing as being created in July 2011 is cos we migrated the documentation to the new location at that time.
We're in the process of moving this document away from the ofiicial documentation to avoid further confusion.
Btw, if you're planning to use EAP 5.1, you'll find out that Infinispan is not supported in EAP 5.1. Support for Infinispan based 2LC will come in EAP 6.0 which is based on AS7
-
21. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
nadirx Oct 28, 2011 1:47 AM (in response to galder.zamarreno)Hi all,
I want to add to Galder's statement.
The rule is: don't try to use Infinispan within JBoss AS 5.1.x. There are too many issues you have to work around and it's not worth the effort.
Since you are using the community edition you should upgrade to JBoss AS 6.0.x where it works well. I speak from real world experience here, as I ported a large EAR application from 5.1.x to 6.0.x and integrated Infinispan as a result. You can't really speak of EOL for the AS versions as there is no L to speak of: they are explicitly marked as community supported.
If you are using EAP 5.1.x (the supported, paid for release of JBoss) then Infinispan is not supported there at all. As Galder says, it will be in EAP 6.0.x.
-
22. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
filipe_c Oct 28, 2011 4:56 AM (in response to nadirx)This document is not mine ! but ok, what can we do ?
https://docs.jboss.org/author/display/ISPN/Infinispan+as+Hibernate+2nd-Level+Cache+in+JBoss+AS+5.x
A JBoss AS 5.x application can be configured to use Infinispan 4.x as the Hibernate 2nd-level cache, replacing JBoss Cache.
- Add the attached jar files to the ear lib directory. These include the core 4.1.0.GA Infinispan jar (infinispan-core.jar), the Hibernate/Infinispan integration jar back-ported from Hibernate 3.5 (hibernate-infinispan-3.3.2.GA_CP03.jar), the JGroups jar required by Infinispan 4.1.0 (jgroups-2.10.0.GA.jar), and other required 3rd party jars (river-1.2.3.GA.jar, marshalling-api-1.2.3.GA.jar)
- Isolate the classloading to be ear-scoped by adding META-INF/jboss-classloading.xml
<
classloading
xmlns
=
"urn:jboss:classloading:1.0"
domain
=
"simple-scoped"
parent-first
=
"false"
/>
- Configure persistence.xml to use Infinispan instead of JBoss Cache:
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
persistence
xmlns
=
"http://java.sun.com/xml/ns/persistence"
xmlns:xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation
=
"https://docs.jboss.org/author/display/ISPN/Infinispan+as+Hibernate+2nd-Level+Cache+in+JBoss+AS+5.xhttp://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version
=
"1.0"
>
<
persistence-unit
name
=
"jpa-test"
>
<
jta-data-source
>java:/PostgresDS</
jta-data-source
>
<
properties
>
<
property
name
=
"hibernate.dialect"
value
=
"org.hibernate.dialect.HSQLDialect"
/>
<
property
name
=
"hibernate.session_factory_name"
value
=
"SessionFactories/infinispan"
/>
<
property
name
=
"hibernate.cache.use_query_cache"
value
=
"true"
/>
<
property
name
=
"hibernate.cache.use_second_level_cache"
value
=
"true"
/>
<
property
name
=
"hibernate.generate_statistics"
value
=
"true"
/>
<
property
name
=
"hibernate.cache.use_structured_entries"
value
=
"true"
/>
<
property
name
=
"hibernate.cache.region_prefix"
value
=
"infinispan"
/>
<
property
name
=
"hibernate.show_sql"
value
=
"true"
/>
<
property
name
=
"hibernate.hbm2ddl.auto"
value
=
"validate"
/>
<!-- Infinispan second level cache configuration -->
<
property
name
=
"hibernate.cache.region.factory_class"
value
=
"org.hibernate.cache.infinispan.InfinispanRegionFactory"
/>
</
properties
>
</
persistence-unit
>
</
persistence
>
-
23. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
filipe_c Oct 28, 2011 9:43 AM (in response to nadirx)Since you are using the community edition you should upgrade to JBoss AS 6.0.x where it works well. I speak from real world experience here, as I ported a large EAR application from 5.1.x to 6.0.x and integrated Infinispan as a result. You can't really speak of EOL for the AS versions as there is no L to speak of: they are explicitly marked as community supported.
If you are using EAP 5.1.x (the supported, paid for release of JBoss) then Infinispan is not supported there at all. As Galder says, it will be in EAP 6.0.x.
Hi,
Also on this comment, and to help more people (If i´m pls wrong correct):
Opensource releases like JBoss AS 6.0 are for developers to work around not for productions enviroments.
Like described by Mr Rich Sharples on JBoss world (check
http://www.redhat.com/promo/summit/2010/presentations/jbossworld/enterprise-insights/wed/rsharples-2-eap/JBossEAPRoadmap.pdf ) JBoss EAP 6 will be a result from JBoss AS 6,7. And you still do not have EAP6 available.
So for production / EAP / supported versions we´ve only JBoss EAP 5.
Regards,
Filipe
-
24. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Nov 9, 2011 9:04 AM (in response to galder.zamarreno)Filipe/Andre, if JBoss TS' ShadowingStore is giving you problems, you could try using the volatile store instead:
This is done by changing this property in conf/jbossts-properties.xml
<property name="com.arjuna.ats.arjuna.objectstore.objectStoreType" value="VolatileStore"/>
That'll result in an im memory object store being used instead of a file based, which should give better performance, but at the expense of storing pending transactions in memory as opposed to FS.
-
25. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
asimoes Nov 10, 2011 11:04 AM (in response to galder.zamarreno)@Galder Zamarreño.
I made the changes that you suggested but they do not interfere at all with the problem.
I took some screenshots to show you that.
As you can see, they have exactly the same behavior.
Monitor window with ShadowNoFileLockStore
Monitor window with VolatileStore
Sampler window with ShadowNoFileLockStore
Sampler window with VolatileStore
Snapshot window with ShadowNoFileLockStore
Snapshot window with VolatileStore
Tracer window with ShadowNoFileLockStore
Tracerwindow with VolatileStore
What am I doind wrong?
-
26. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Nov 11, 2011 8:30 AM (in response to asimoes)It seems like my suggested changes did not have the effect cos the shadow/file object store is still in use. I'd suggest some remote debugging to see what happens with that configuration option :|
-
27. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
asimoes Nov 11, 2011 10:05 AM (in response to galder.zamarreno)Remote debugging?
That's what I did!
Its very clear, on the previous screenshot, where the cpu is being spent!
What kind of debug do you suggest?
-
28. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Nov 11, 2011 10:15 AM (in response to galder.zamarreno)Try the attached configuration file.
If it still does not work, try
<property
name="com.arjuna.ats.arjuna.objectstore.objectStoreType" value="com.arjuna.ats.internal.arjuna.objectstore.VolatileStore"/>
Instead of:
<property
name="com.arjuna.ats.arjuna.objectstore.objectStoreType" value="VolatileStore"/>
-
jbossts-properties.xml 14.5 KB
-
-
29. Re: Infinispan on Jboss 510 - Low performance issue or missing conf?
galder.zamarreno Nov 11, 2011 10:16 AM (in response to asimoes)That's called remote monitoring, or remote profiling.
Remote debugging means remote debugging, or stepping through the code, as shown in http://docs.jboss.org/arquillian/reference/latest/en-US/html/debugging.html#d0e1272 - A very useful for tip for debugging JBoss AS