-
15. Re: Tuning/Optimization HornetQ
raymanf Aug 28, 2012 9:56 AM (in response to raymanf)But ill try your measurement method anyway!
-
16. Re: Tuning/Optimization HornetQ
ataylor Aug 28, 2012 10:07 AM (in response to raymanf)System.currentTimeInMillis is not very exact, depending on the clock, jdk implementation (sun/linux), the time is too small on windows so cant be calculated, think about it 0 ms is impossible. Also the jvm could be garbage collecting at the point between your count. you have to send lots of messages and calculate it from that. this is the same with any performance calculations not just messaging, you take a large sample and calculate the average.
-
17. Re: Tuning/Optimization HornetQ
raymanf Aug 29, 2012 9:50 AM (in response to ataylor)Now I minimized the latency to avg of 2 ms.
But something else happend. after around 200000 msgs the application stopped recieving messages from the remote topic but keep running.
am using Spring3.1 (in standalone env)
having mdb(DLMC) in order to recieve the messages.
Mybe it will be recommened to leave Spring's DLMC and use jms libraries ?
-
18. Re: Tuning/Optimization HornetQ
ataylor Aug 29, 2012 10:04 AM (in response to raymanf)But something else happend. after around 200000 msgs the application stopped recieving messages from the remote topic but keep running.
check the messages are being acknowledged
Mybe it will be recommened to leave Spring's DLMC and use jms libraries ?
Personally I would never use Spring with JMS, we have far to many forum posts of people having trouble using it, use JMS and be in complete control of whats going on
-
19. Re: Tuning/Optimization HornetQ
raymanf Aug 29, 2012 10:09 AM (in response to ataylor)check the messages are being acknowledged
I have this <property name="sessionAcknowledgeModeName" value="AUTO_ACKNOWLEDGE" />
should I remine it there?
Personally I would never use Spring with JMS, we have far to many forum posts of people having trouble using it, use JMS and be in complete control of whats going on
You mean I shouldnt use Jms inside Spring container? or you meant that I only shouldnt use JMS libraries (for example jms template) and I should go into the native jms libraries>
-
20. Re: Tuning/Optimization HornetQ
ataylor Aug 29, 2012 10:15 AM (in response to raymanf)You mean I shouldnt use Jms inside Spring container? or you meant that I only shouldnt use JMS libraries (for example jms template) and I should go into the native jms libraries>
i should use whats best for your application, im just saying that I wouldnt use the spring jms template, i would write my clients to use JMS.
-
21. Re: Tuning/Optimization HornetQ
raymanf Aug 29, 2012 10:48 AM (in response to ataylor)Mybe this will help to trace the problem:
I couldnt even stop my application after this situation is happening(stop getting messges from remote topic on jboss 4)
so I did thread dump with jstack and look:
[Loaded sun.reflect.GeneratedConstructorAccessor17 from __JVM_DefineClass__]
2012-08-29 14:45:37,771 org.springframework.jms.connection.CachingConnectionFactory [WARN] Encountered a JMSException - resetting the underlying JMS Connection
javax.jms.JMSException: Failure on underlying remoting connection
at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:102)
at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:608)
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor88 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor89 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor90 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor91 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor92 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor93 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedSerializationConstructorAccessor94 from __JVM_DefineClass__]
-
22. Re: Tuning/Optimization HornetQ
raymanf Aug 29, 2012 10:50 AM (in response to raymanf)What about the AUTO_ACKNOWLEDGE should I turn it off or keep it there?
-
23. Re: Tuning/Optimization HornetQ
raymanf Aug 30, 2012 2:45 AM (in response to ataylor)Hi,
In a case I want to implement the listener myself I need to take in place those considirations:
Caching, Recovery, Multithreaded.
all those things spring DMLC(DefaultMessageListenerContainer) taking care of.
Do you have any recommended example for implementation such a listener mechanisem?(in a standalone env)
thanks.