-
1. Re: Performance when starting up many TopicSubscribers
timfox Apr 29, 2010 12:15 PM (in response to matthewspleep)I can't replicate this.
On my laptop - IBM thinkpad, Linux, using Netty it take about 3 seconds to create 1000 topic subscribers.
Also I'd bear in mind that things like session creation, consumer creation aren't really optimised as it's assumed you will re-use these objects.
-
2. Re: Performance when starting up many TopicSubscribers
roklee Apr 30, 2010 1:38 PM (in response to timfox)Me neither. Can you share the code?
-
3. Re: Performance when starting up many TopicSubscribers
matthewspleep May 7, 2010 6:53 AM (in response to matthewspleep)Hi Guys.
Thanks for your responses, sorry I couldn't answer sooner. I've enclosed links below to the full code that I am running.
AsynchronousTopicListenerManager creates a single connection and a single session and creates a number of AsynchronousTopicListeners which create a consumer based on the session. I've also tried it creating a session per listener but the performance was similar.
Cheers,
Matthew
-
4. Re: Performance when starting up many TopicSubscribers
clebert.suconic May 7, 2010 11:05 AM (in response to matthewspleep)Matthew,
I don't mean to be rude, but you just wasted my time.
I have removed everything not belonging to HornetQ in your code (Spring.. etc).. replicated your code exactly as it is. and I didn't see any performance issues:
I could create 5000 listeners in 30 seconds. 1000 in 8.
I suggest you profile your example and do your own investigation before jumping to conclusions.
-
5. Re: Performance when starting up many TopicSubscribers
clebert.suconic May 7, 2010 11:08 AM (in response to matthewspleep)If someone wants to try Matthew tests with 100% JMS and hornetQ code, take this attached diff:
svn co http://anonsvn.jboss.org/repos/hornetq/trunk/ trunk
cd trunk
patch -p0 < matthew.diff
./build.sh
Open an IDE
and execute the unit test mainTest under tests/src/tsts/MainTest
-
matthew.diff.zip 1.9 KB
-
-
6. Re: Performance when starting up many TopicSubscribers
clebert.suconic May 7, 2010 11:51 AM (in response to clebert.suconic)Also, if you still believe there's an issue with HornetQ, please read this post:
http://community.jboss.org/wiki/Howtoreportabugissue
And provide a self contained code (without any thirdparty code) that reproduces your possible issue.
At this point I believe your issue is at some spring code while instantiating this many clients. (Which is already beyond what I should be investigating)