Wes,
It seems that you are accumulating senders in the service process. You
create one per response but never close them. Try adding
"sender.close()" after the send in the service program.
-Ted
On 04/24/2013 11:50 AM, Wes Parish wrote:
I have been seeing some strange behavior with the 0.20 C++ broker (I see the
same behavior in the 0.14 broker as well) when sending / receiving messages
with the Python API. It seems that the response time increases for each
consecutive message.
The client sends a message with a reply-to field and waits for a response.
The service receives all messages and immediately replies to the reply-to
address.
I have attached my test code to the bottom of this email. Please let me know
if I am not cleaning something up properly or misusing a class.
Here is the result of running the client code 10 times in a row without cycling
the service.
Sent 100 messages in 5.32662820816 seconds at 18.7736023789 messages / second
Sent 100 messages in 6.41928505898 seconds at 15.578058784 messages / second
Sent 100 messages in 6.92662286758 seconds at 14.4370499032 messages / second
Sent 100 messages in 7.94101595879 seconds at 12.5928471267 messages / second
Sent 100 messages in 8.71410989761 seconds at 11.475641365 messages / second
Sent 100 messages in 9.71762895584 seconds at 10.290576071 messages / second
Sent 100 messages in 10.6746881008 seconds at 9.36795520914 messages / second
Sent 100 messages in 11.2466139793 seconds at 8.89156506871 messages / second
Sent 100 messages in 12.0393908024 seconds at 8.30606810938 messages / second
Sent 100 messages in 12.906840086 seconds at 7.74782978125 messages / second
Cycled the service.
And another result of running the same client code 10 more times.
Sent 100 messages in 5.36381697655 seconds at 18.643440005 messages / second
Sent 100 messages in 6.09826803207 seconds at 16.3980985214 messages / second
Sent 100 messages in 7.14273500443 seconds at 14.0002393954 messages / second
Sent 100 messages in 8.16057085991 seconds at 12.2540446884 messages / second
Sent 100 messages in 8.86364603043 seconds at 11.2820389777 messages / second
Sent 100 messages in 9.45885896683 seconds at 10.5720996952 messages / second
Sent 100 messages in 10.3048520088 seconds at 9.70416653382 messages / second
Sent 100 messages in 11.9087610245 seconds at 8.39717916872 messages / second
Sent 100 messages in 12.8042399883 seconds at 7.80991297345 messages / second
Sent 100 messages in 12.7495720387 seconds at 7.84340052332 messages / second
Thanks,
Wes
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]